diff --git a/device/testing/device-google-cozmo/APKBUILD b/device/testing/device-google-cozmo/APKBUILD new file mode 100644 index 000000000..4ad651a59 --- /dev/null +++ b/device/testing/device-google-cozmo/APKBUILD @@ -0,0 +1,46 @@ +# Reference: +# Maintainer: Jenneron +pkgname=device-google-cozmo +pkgdesc="Acer Chromebook 314 (CB314-2H / CB314-2HT)" +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=" +dd1c4b2dacf03ccb81a51838bc4ebc7ce6114070f5d8a8035b9693bccf2a2aebd026df36f5cb9ec38ca93237026d7e1d5671be8c8d9e3c5821772e10bb2f4302 deviceinfo +bdf45461873b9754bc91d7f72afd6cef1aa6e523ead0a7816c8976ed98ff2d39b66c53dba2f2d92e36162c092360d1524845f27160f6af2bb010cd3259d5b7ed sound.conf +" diff --git a/device/testing/device-google-cozmo/deviceinfo b/device/testing/device-google-cozmo/deviceinfo new file mode 100644 index 000000000..0d52a5ee1 --- /dev/null +++ b/device/testing/device-google-cozmo/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="Acer Chromebook 314 (CB314-2H / CB314-2HT)" +deviceinfo_manufacturer="Acer" +deviceinfo_codename="google-cozmo" +deviceinfo_year="2020" +deviceinfo_dtb="mediatek/mt8183-kukui-jacuzzi-cozmo" +deviceinfo_modules_initfs="gpu-sched i2c-hid-of hid-multitouch cros-ec-keyb sbs-battery" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="laptop" +deviceinfo_keyboard="true" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1920" +deviceinfo_screen_height="1080" +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-cozmo/modules-load.d/sound.conf b/device/testing/device-google-cozmo/modules-load.d/sound.conf new file mode 100644 index 000000000..918153616 --- /dev/null +++ b/device/testing/device-google-cozmo/modules-load.d/sound.conf @@ -0,0 +1 @@ +mt8183-mt6358-ts3a227-max98357