From 25a0dbe27d58d6868d12b3dc88a35246dbd1b995 Mon Sep 17 00:00:00 2001 From: WTechNinja Date: Tue, 7 Jul 2020 13:17:02 -0600 Subject: [PATCH] samsung-gprimeltecan: new device (MR 1401) --- .../device-samsung-gprimeltecan/APKBUILD | 31 ++++++++++++++++ .../device-samsung-gprimeltecan/deviceinfo | 35 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 device/testing/device-samsung-gprimeltecan/APKBUILD create mode 100644 device/testing/device-samsung-gprimeltecan/deviceinfo diff --git a/device/testing/device-samsung-gprimeltecan/APKBUILD b/device/testing/device-samsung-gprimeltecan/APKBUILD new file mode 100644 index 000000000..37b005090 --- /dev/null +++ b/device/testing/device-samsung-gprimeltecan/APKBUILD @@ -0,0 +1,31 @@ +# Reference: +pkgname=device-samsung-gprimeltecan +pkgdesc="Samsung Galaxy Grand Prime (CAN)" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends="postmarketos-base mkbootimg soc-qcom-msm8916" +makedepends="devicepkg-dev" +source="deviceinfo" +subpackages=" + $pkgname-kernel-mainline:kernel_mainline +" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +kernel_mainline() { + pkgdesc="Mainline kernel (no charging, no modem, audio routed directly)" + depends="linux-postmarketos-qcom-msm8916" + devicepkg_subpackage_kernel $startdir $pkgname $subpkgname +} + +sha512sums="3250227e307de1f5008ecc4b7214ba07c030b81073cb74fc64f02e0106e4894e668fd6ecbebd32b7af9ecb42cb8335716df8946832a759e66784e0c4c74f27b6 deviceinfo" diff --git a/device/testing/device-samsung-gprimeltecan/deviceinfo b/device/testing/device-samsung-gprimeltecan/deviceinfo new file mode 100644 index 000000000..2a1e39f37 --- /dev/null +++ b/device/testing/device-samsung-gprimeltecan/deviceinfo @@ -0,0 +1,35 @@ +# Reference: +# Please use double quotes only. You can source this file in shell scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Samsung Galaxy Grand Prime (CAN)" +deviceinfo_manufacturer="Samsung" +deviceinfo_codename="samsung-gprimeltecan" +deviceinfo_year="2014" +deviceinfo_dtb_mainline="qcom/msm8916-samsung-gprimeltecan" +deviceinfo_append_dtb="true" +deviceinfo_modules_initfs="" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="handset" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_screen_width="540" +deviceinfo_screen_height="960" +deviceinfo_getty="ttyMSM0;115200" + +# MSM DRM cannot take over the framebuffer from the bootloader at the moment +deviceinfo_no_framebuffer="true" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT" +deviceinfo_generate_bootimg="true" +deviceinfo_flash_offset_base="0x80000000" +deviceinfo_flash_offset_kernel="0x00080000" +deviceinfo_flash_offset_ramdisk="0x02000000" +deviceinfo_flash_offset_second="0x00f00000" +deviceinfo_flash_offset_tags="0x01e00000" +deviceinfo_flash_pagesize="2048" +deviceinfo_flash_sparse="true"