diff --git a/device/testing/device-oneplus-hotdogb/APKBUILD b/device/testing/device-oneplus-hotdogb/APKBUILD new file mode 100644 index 000000000..58fe7771c --- /dev/null +++ b/device/testing/device-oneplus-hotdogb/APKBUILD @@ -0,0 +1,29 @@ +# Reference: + +pkgname=device-oneplus-hotdogb +pkgdesc="OnePlus 7T" +pkgver=0.1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + linux-postmarketos-qcom-sm8150 + mkbootimg + postmarketos-base +" +makedepends="devicepkg-dev" +source="deviceinfo" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +sha512sums=" +047e6e9a072bcbbef2ac8be7813784d1e1776495734df3e0c3b116cb599908cb970dd3f98089298032eeb7870013cd4521d7be71e65b67f02e8d436238581d2b deviceinfo +" diff --git a/device/testing/device-oneplus-hotdogb/deviceinfo b/device/testing/device-oneplus-hotdogb/deviceinfo new file mode 100644 index 000000000..642896e82 --- /dev/null +++ b/device/testing/device-oneplus-hotdogb/deviceinfo @@ -0,0 +1,38 @@ +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="OnePlus 7T" +deviceinfo_manufacturer="OnePlus" +deviceinfo_codename="oneplus-hotdogb" +deviceinfo_year="2019" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="handset" +deviceinfo_keyboard="false" +deviceinfo_external_storage="false" +deviceinfo_screen_width="1080" +deviceinfo_screen_height="2400" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_kernel_cmdline="clk_ignore_unused" +deviceinfo_generate_bootimg="true" +deviceinfo_bootimg_qcdt="false" +deviceinfo_bootimg_mtk_mkimage="false" +deviceinfo_bootimg_dtb_second="false" +deviceinfo_flash_offset_base="0x00000000" +deviceinfo_flash_offset_kernel="0x00008000" +deviceinfo_flash_offset_ramdisk="0x01000000" +deviceinfo_flash_offset_second="0x00f00000" +deviceinfo_flash_offset_tags="0x00000100" +deviceinfo_flash_pagesize="4096" + +# Kernel options +deviceinfo_dtb="qcom/sm8150-oneplus-hotdogb" +deviceinfo_append_dtb="true" + +# Required for devices using UFS as storage (instead of e.g. eMMC) +deviceinfo_rootfs_image_sector_size="4096"