diff --git a/device/testing/device-samsung-gprimeltecan/APKBUILD b/device/testing/device-samsung-gprimeltecan/APKBUILD new file mode 100644 index 000000000..58efdd8ec --- /dev/null +++ b/device/testing/device-samsung-gprimeltecan/APKBUILD @@ -0,0 +1,43 @@ +# Reference: + +pkgname=device-samsung-gprimeltecan +pkgdesc="Samsung Galaxy Grand Prime CAN (G530W)" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 + soc-qcom-msm8916 soc-qcom-msm8916-rproc" +makedepends="devicepkg-dev" +source="deviceinfo" +subpackages=" + $pkgname-nonfree-firmware:nonfree_firmware + $pkgname-phosh +" +_pmb_select="soc-qcom-msm8916-rproc" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +nonfree_firmware() { + pkgdesc="GPU/WiFi/BT/Modem/Video firmware" + depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-gprimeltecan-wcnss-nv" + mkdir "$subpkgdir" +} + +phosh() { + install_if="$pkgname postmarketos-ui-phosh" + depends="device-samsung-gprimeltexx-phosh" + mkdir "$subpkgdir" +} + +sha512sums=" +d2f0499365e8a634ce94ed2eb1008a10786372486a62e9cb6f669ffed0b3cc8dcf80b9faf010ecbb07d57073c7e15ff00a7f67d731fa8aab37582dd97abb11d6 deviceinfo +" diff --git a/device/testing/device-samsung-gprimeltecan/deviceinfo b/device/testing/device-samsung-gprimeltecan/deviceinfo new file mode 100644 index 000000000..933e62a52 --- /dev/null +++ b/device/testing/device-samsung-gprimeltecan/deviceinfo @@ -0,0 +1,33 @@ +# 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 (G530W)" +deviceinfo_manufacturer="Samsung" +deviceinfo_codename="samsung-gprimeltecan" +deviceinfo_year="2014" +deviceinfo_dtb="qcom/msm8916-samsung-gprimeltecan" +deviceinfo_append_dtb="true" +deviceinfo_modules_initfs="panel-samsung-s6d78a0-gh9607501a msm zinitix" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="handset" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_screen_width="540" +deviceinfo_screen_height="960" +deviceinfo_getty="ttyMSM0;115200" + +# 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" diff --git a/device/testing/firmware-samsung-gprimeltecan/APKBUILD b/device/testing/firmware-samsung-gprimeltecan/APKBUILD new file mode 100644 index 000000000..4b9f6e429 --- /dev/null +++ b/device/testing/firmware-samsung-gprimeltecan/APKBUILD @@ -0,0 +1,32 @@ +pkgname=firmware-samsung-gprimeltecan +pkgver=1 +pkgrel=0 +_name="Samsung Galaxy Grand Prime CAN (G530W)" +pkgdesc="Firmware for $_name" +url="https://postmarketos.org" +subpackages="$pkgname-wcnss-nv:wcnss_nv" +arch="aarch64" +license="proprietary" +options="!check !strip !archcheck !tracedeps pmb:cross-native" +source="$pkgname-WCNSS_qcom_wlan_nv.bin.base64::https://pastebin.com/raw/BxjvzZhd" + +_fwdir="/lib/firmware/postmarketos" + +unpack() { + default_unpack + base64 -d $pkgname-WCNSS_qcom_wlan_nv.bin.base64 > WCNSS_qcom_wlan_nv.bin +} + +package() { + # parent package is empty + mkdir -p "$pkgdir" +} + +wcnss_nv() { + pkgdesc="$_name WiFi/BT firmware configuration" + install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima +} + +sha512sums=" +7129e4a5ed999d203d5b097abebd434c4293cb65e4eb387e517e52e91ff6e5939a0d8f25eb45efcee986d856689ba0a3e0887087425ce8d0883688891b25fa55 firmware-samsung-gprimeltecan-WCNSS_qcom_wlan_nv.bin.base64 +"