From 2d59881635ce7d170a2f97b26ca64af77a48883f Mon Sep 17 00:00:00 2001 From: Anton Bambura Date: Tue, 4 Oct 2022 02:42:48 +0300 Subject: [PATCH] google-damu: new device (MR 3489) --- device/testing/device-google-damu/APKBUILD | 46 +++++++++++++++++++ device/testing/device-google-damu/deviceinfo | 28 +++++++++++ .../modules-load.d/sound.conf | 1 + 3 files changed, 75 insertions(+) create mode 100644 device/testing/device-google-damu/APKBUILD create mode 100644 device/testing/device-google-damu/deviceinfo create mode 100644 device/testing/device-google-damu/modules-load.d/sound.conf diff --git a/device/testing/device-google-damu/APKBUILD b/device/testing/device-google-damu/APKBUILD new file mode 100644 index 000000000..0eb16f70c --- /dev/null +++ b/device/testing/device-google-damu/APKBUILD @@ -0,0 +1,46 @@ +# Reference: +# Maintainer: Jenneron +pkgname=device-google-damu +pkgdesc="ASUS Chromebook Flip CM3 (CM3200, MT8183)" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + alsa-ucm-conf-google-kukui + depthcharge-tools + linux-postmarketos-mtk-mt8183 + mesa-dri-gallium + postmarketos-base + postmarketos-update-depthcharge-kernel +" +makedepends="devicepkg-dev" +source=" + deviceinfo + modules-load.d/sound.conf +" +subpackages="$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" +} + +sha512sums=" +8172d3d8c7095b1155509e46c991d91fa2160462ba982a415421cb09a600b36ebf38f42eb12d30ed14995b06253a9b16005594a9cefd3e8581357096bdc696b6 deviceinfo +37f11d243c4ecfd07bfb74e2d34e4c261db3a6aff755bf2dd08dad998de47e511c21082ca0d181e77e093e6f940fc570d8aef87fbc3a73ba55cb9f34b8c510f2 sound.conf +" diff --git a/device/testing/device-google-damu/deviceinfo b/device/testing/device-google-damu/deviceinfo new file mode 100644 index 000000000..b003b53d9 --- /dev/null +++ b/device/testing/device-google-damu/deviceinfo @@ -0,0 +1,28 @@ +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="ASUS Chromebook Flip CM3 (CM3200, MT8183)" +deviceinfo_manufacturer="ASUS" +deviceinfo_codename="google-damu" +deviceinfo_year="2020" +deviceinfo_dtb="mediatek/mt8183-kukui-jacuzzi-damu" +deviceinfo_modules_initfs="gpu-sched elan-i2c-core 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="1366" +deviceinfo_screen_height="912" +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-damu/modules-load.d/sound.conf b/device/testing/device-google-damu/modules-load.d/sound.conf new file mode 100644 index 000000000..6fdf5a188 --- /dev/null +++ b/device/testing/device-google-damu/modules-load.d/sound.conf @@ -0,0 +1 @@ +mt8183-da7219-max98357