From 059af6cc719d0e45178a510705dd4f2dabdab25d Mon Sep 17 00:00:00 2001 From: Danct12 <danct12@disroot.org> Date: Mon, 7 Mar 2022 11:48:04 +0700 Subject: [PATCH] fxtec-qx1000: new device Initially this was submitted by NotKit, but never got merged because hybris support got dropped in 2019. --- device/testing/device-fxtec-qx1000/APKBUILD | 30 +++++++++++++ device/testing/device-fxtec-qx1000/deviceinfo | 44 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 device/testing/device-fxtec-qx1000/APKBUILD create mode 100644 device/testing/device-fxtec-qx1000/deviceinfo diff --git a/device/testing/device-fxtec-qx1000/APKBUILD b/device/testing/device-fxtec-qx1000/APKBUILD new file mode 100644 index 00000000000..f7e950bafe5 --- /dev/null +++ b/device/testing/device-fxtec-qx1000/APKBUILD @@ -0,0 +1,30 @@ +# Reference: <https://postmarketos.org/devicepkg> +pkgname=device-fxtec-qx1000 +pkgdesc="F(x)tec Pro1" +pkgver=0.1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + linux-postmarketos-qcom-msm8998 + mkbootimg + postmarketos-base + postmarketos-update-kernel + soc-qcom-sdm845 +" +makedepends="devicepkg-dev" +source="deviceinfo" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +sha512sums=" +e31165aa679f7e75fc907bbe8fc6af3f8e400d4074d4920d77de962174992e7eb064f52eb40a391552b4ffb2b0a522e1859de3c98d67d4eff76f1501467190ee deviceinfo +" diff --git a/device/testing/device-fxtec-qx1000/deviceinfo b/device/testing/device-fxtec-qx1000/deviceinfo new file mode 100644 index 00000000000..94f97d2119b --- /dev/null +++ b/device/testing/device-fxtec-qx1000/deviceinfo @@ -0,0 +1,44 @@ +# Reference: <https://postmarketos.org/deviceinfo> +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="F(x)tec Pro1" +deviceinfo_manufacturer="F(x)tec" +deviceinfo_codename="fxtec-qx1000" +deviceinfo_year="2019" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="handset" +deviceinfo_keyboard="true" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1080" +deviceinfo_screen_height="2160" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_kernel_cmdline="clk_ignore_unused" +deviceinfo_generate_bootimg="true" +deviceinfo_bootimg_qcdt="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" +deviceinfo_flash_sparse="true" + +# Kernel options +deviceinfo_dtb="qcom/msm8998-fxtec-pro1" +deviceinfo_append_dtb="true" +deviceinfo_flash_kernel_on_update="true" + +# Initramfs +deviceinfo_modules_initfs="msm i2c-qup panel-boe-bf060y8m-aj0 goodix qcom_fg qcom_spmi_haptics" +deviceinfo_mesa_driver="msm" + +# Required for devices using UFS as storage (instead of e.g. eMMC) +deviceinfo_rootfs_image_sector_size="4096" -- GitLab