From d5d54b2b500d198cbf26f4d40f0e02cc200158a3 Mon Sep 17 00:00:00 2001 From: bonfire_ Date: Fri, 26 Aug 2022 14:11:10 +0200 Subject: [PATCH] google-krane: new device (MR 3387) - remove kernel_rev4/5 - various notes from @jenneron - update modules initfs - fix tab linter; remove linux-postmarketos-mtk-mt8183 - fixing tabs grrr and skuX values - make deviceinfo_external_storage=true - add hid-multitouch [ci:skip-build]: already built successfully in CI --- device/testing/device-google-krane/APKBUILD | 63 +++++++++++++++++++ device/testing/device-google-krane/deviceinfo | 29 +++++++++ .../modules-load.d/sound.conf | 1 + 3 files changed, 93 insertions(+) create mode 100644 device/testing/device-google-krane/APKBUILD create mode 100644 device/testing/device-google-krane/deviceinfo create mode 100644 device/testing/device-google-krane/modules-load.d/sound.conf diff --git a/device/testing/device-google-krane/APKBUILD b/device/testing/device-google-krane/APKBUILD new file mode 100644 index 000000000..246c35412 --- /dev/null +++ b/device/testing/device-google-krane/APKBUILD @@ -0,0 +1,63 @@ +# Reference: +# Maintainer: Bonfire +# Co-Maintainer: Jenneron +pkgname=device-google-krane +pkgdesc="Lenovo IdeaPad Duet Chromebook" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + alsa-ucm-conf-google-kukui + depthcharge-tools + mesa-dri-gallium + postmarketos-base + postmarketos-update-depthcharge-kernel +" +makedepends="devicepkg-dev" +source=" + deviceinfo + modules-load.d/sound.conf +" +subpackages=" + $pkgname-kernel-sku0:kernel_sku0 + $pkgname-kernel-sku176:kernel_sku176 + $pkgname-nonfree-firmware:nonfree_firmware +" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname + + install -Dm644 "$srcdir"/sound.conf \ + "$pkgdir"/etc/modules-load.d/sound.conf +} + +nonfree_firmware() { + pkgdesc="WiFi/BT firmware" + depends="linux-firmware-ath10k linux-firmware-mediatek" + mkdir "$subpkgdir" +} + +kernel_sku0() { + pkgdesc="Google Krane Sku 0" + depends="linux-postmarketos-mtk-mt8183" + devicepkg_subpackage_kernel $startdir $pkgname $subpkgname +} + +kernel_sku176() { + pkgdesc="Google Krane Sku 176" + depends="linux-postmarketos-mtk-mt8183" + devicepkg_subpackage_kernel $startdir $pkgname $subpkgname +} + + +sha512sums=" +9f54b26fbbb4184dc54727b767b7756ce98bd409e2fbf8566e3d484eadd37b0e99d6383099e29af7d14905756f88b4f14c45d0fe2fd138be37405745c7a8bb34 deviceinfo +bdf45461873b9754bc91d7f72afd6cef1aa6e523ead0a7816c8976ed98ff2d39b66c53dba2f2d92e36162c092360d1524845f27160f6af2bb010cd3259d5b7ed sound.conf +" diff --git a/device/testing/device-google-krane/deviceinfo b/device/testing/device-google-krane/deviceinfo new file mode 100644 index 000000000..fa36aa1f2 --- /dev/null +++ b/device/testing/device-google-krane/deviceinfo @@ -0,0 +1,29 @@ +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Lenovo IdeaPad Duet Chromebook" +deviceinfo_manufacturer="Lenovo" +deviceinfo_codename="google-krane" +deviceinfo_year="2020" +deviceinfo_dtb_sku0="mediatek/mt8183-kukui-krane-sku0" +deviceinfo_dtb_sku176="mediatek/mt8183-kukui-krane-sku176" +deviceinfo_modules_initfs="gpu-sched i2c-hid-of hid-multitouch cros-ec-keyb sbs-battery" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="convertible" +deviceinfo_keyboard="true" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1920" +deviceinfo_screen_height="1200" +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" +deviceinfo_cgpt_kpart_size="65536" +deviceinfo_generate_depthcharge_image="true" diff --git a/device/testing/device-google-krane/modules-load.d/sound.conf b/device/testing/device-google-krane/modules-load.d/sound.conf new file mode 100644 index 000000000..918153616 --- /dev/null +++ b/device/testing/device-google-krane/modules-load.d/sound.conf @@ -0,0 +1 @@ +mt8183-mt6358-ts3a227-max98357