google-trogdor: new device (MR 4250)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Anton Bambura 2023-07-14 18:46:56 +03:00 committed by Pablo Correa Gómez
parent 91b0823d57
commit da9d54b44c
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
2 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-trogdor
pkgdesc="Google Trogdor Chromebooks"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
alsa-ucm-conf
depthcharge-tools
eudev-hwids
linux-postmarketos-qcom-sc7180
postmarketos-base
postmarketos-update-depthcharge-kernel
soc-qcom-sc7180
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT, Modem, GPU, Venus firmware"
depends="
linux-firmware-qcom
linux-firmware-qca
linux-firmware-ath10k
firmware-google-trogdor
soc-qcom-sc7180-nonfree-firmware
msm-cros-efs-loader
"
mkdir "$subpkgdir"
}
sha512sums="
3c8c835274e39fcd76ac21ad551ef8bd171f60ab83f9846d6d96d2a5190e00e07ed9ee5a532b96a8cd09d11b5ed9c389c4b3e5c7862290fa4257f1060c47d6df deviceinfo
"

View file

@ -0,0 +1,36 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Google Trogdor Chromebook"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-trogdor"
deviceinfo_year="2021"
deviceinfo_dtb="qcom/sc7180-trogdor*"
deviceinfo_modules_initfs="i2c-hid-of i2c-hid-of-goodix elan-i2c elants-i2c cros-ec-keyb sbs-battery"
deviceinfo_arch="aarch64"
# Device related
# TODO: remove pmbootstrap requirement for deviceinfo_chassis
deviceinfo_chassis="convertible"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_kernel_cmdline="console=null deferred_probe_timeout=30"
deviceinfo_cgpt_kpart="/boot/vmlinuz.kpart"
deviceinfo_cgpt_kpart_start="8192"
# 128M kernel partition
deviceinfo_cgpt_kpart_size="262144"
# We are supposed to use "trogdor" board here, but lazor dts does
# not include trogdor compatible which results in loading a wrong
# dtb. "qc7180" board may result in including dtbs that are for
# sc7180 but not related to Chrome OS devices which would increase
# image size. This doesn't happen for us because we provide only
# dtbs from deviceinfo_dtb variable and nothing more, so use "qc7180"
# board here.
deviceinfo_depthcharge_board="qc7180"
deviceinfo_generate_depthcharge_image="true"