diff --git a/device/testing/device-lenovo-kuntao/APKBUILD b/device/testing/device-lenovo-kuntao/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..c5c003bed6594e15f412b9be2d5279b0167a29e4 --- /dev/null +++ b/device/testing/device-lenovo-kuntao/APKBUILD @@ -0,0 +1,38 @@ +# Reference: <https://postmarketos.org/devicepkg> +pkgname=device-lenovo-kuntao +pkgdesc="Lenovo P2" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + linux-postmarketos-qcom-msm8953 + lk2nd-msm8953 + mkbootimg + postmarketos-base +" +makedepends="devicepkg-dev" +source="deviceinfo" +subpackages=" + $pkgname-nonfree-firmware:nonfree_firmware +" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +nonfree_firmware() { + pkgdesc="GPU/Wi-Fi/Bluetooth/Audio/Video/Modem firmware" + depends="msm-firmware-loader" + mkdir "$subpkgdir" +} + +sha512sums=" +d2be963b0e4a53630c99a60c823914564bec6f5c126d86e5ba27f04721bb509705681a6de1822eb63f3f60bcf002f4b8a88ec9c0cbf1563dc4ae26eb8455c81b deviceinfo +" diff --git a/device/testing/device-lenovo-kuntao/deviceinfo b/device/testing/device-lenovo-kuntao/deviceinfo new file mode 100644 index 0000000000000000000000000000000000000000..57c2685802afdd4487c14b6b01051cc9beda1882 --- /dev/null +++ b/device/testing/device-lenovo-kuntao/deviceinfo @@ -0,0 +1,35 @@ +# Reference: <https://postmarketos.org/deviceinfo> +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Lenovo P2" +deviceinfo_manufacturer="Lenovo" +deviceinfo_codename="lenovo-kuntao" +deviceinfo_year="2016" +deviceinfo_dtb="qcom/msm8953-lenovo-kuntao" +deviceinfo_append_dtb="true" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="handset" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1080" +deviceinfo_screen_height="1920" +deviceinfo_getty="ttyMSM0;115200" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_kernel_cmdline="console=earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT" +deviceinfo_generate_bootimg="true" +deviceinfo_bootimg_qcdt="false" +deviceinfo_bootimg_dtb_second="false" +deviceinfo_flash_pagesize="2048" +deviceinfo_flash_offset_base="0x80000000" +deviceinfo_flash_offset_kernel="0x00008000" +deviceinfo_flash_offset_ramdisk="0x01000000" +deviceinfo_flash_offset_second="0x00f00000" +deviceinfo_flash_offset_tags="0x00000100" +deviceinfo_flash_sparse="true"