google-cherry: new device (MR 4806)

This commit is contained in:
Anton Bambura 2024-01-10 20:24:32 +02:00
parent c79b58d23c
commit 6c2241d917
No known key found for this signature in database
GPG key ID: 1441EAFE8D7F4C2D
3 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-cherry
pkgdesc="Google Cherry Chromebooks"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
alsa-ucm-conf
depthcharge-tools
linux-postmarketos-mediatek-mt81xx
postmarketos-base
postmarketos-cros-common
postmarketos-update-depthcharge-kernel
soc-mediatek-mt8183
"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT Firmware"
depends="linux-firmware-mediatek"
mkdir "$subpkgdir"
}
sha512sums="
75974456a94b0e1ed877b39e394366ed4d7ac18bbe6914446b383f316225d69e85d749e266bbafe011b124191ee755e0cadc5bddd736288e1c50d65cfb0309e0 deviceinfo
bb7f9a426bfa151c53089f07fd4e874b1fb69fd8180a584b4c9824e2d5ea1e7678602d74eb641b2640b692fec73b88acc78ca26ba9c9f3b8ac8366c6fb63dd5f modules-initfs
"

View file

@ -0,0 +1,34 @@
# 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 Cherry Chromebook"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-cherry"
deviceinfo_year="2021"
deviceinfo_dtb="mediatek/mt8195-cherry*"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="laptop"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_kernel_cmdline="console=null"
deviceinfo_flash_method="none"
deviceinfo_cgpt_kpart="/boot/vmlinuz.kpart"
deviceinfo_cgpt_kpart_start="8192"
# 128M kernel partition
deviceinfo_cgpt_kpart_size="262144"
# We are supposed to use "cherry" board here, but cherry dts does
# not include cherry compatible which results in loading a wrong
# dtb. "mt8195" board may result in including dtbs that are for
# mt8195 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 "mt8195"
# board here.
deviceinfo_depthcharge_board="mt8195"
deviceinfo_generate_depthcharge_image="true"

View file

@ -0,0 +1,6 @@
panel-edp
hid-generic
hid-multitouch
i2c-hid-of
elan-i2c
cros-ec-keyb