samsung-cprime: new device (MR 3103)
[ci:skip-build] Already built successfuly on CI in MR
This commit is contained in:
parent
d4762ed74f
commit
a8dbcc046f
4 changed files with 123 additions and 0 deletions
51
device/testing/device-samsung-cprime/APKBUILD
Normal file
51
device/testing/device-samsung-cprime/APKBUILD
Normal file
|
@ -0,0 +1,51 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-samsung-cprime
|
||||
pkgdesc="Samsung Galaxy Core Prime"
|
||||
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
|
||||
phoc.ini
|
||||
"
|
||||
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-cprime-wcnss-nv"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname postmarketos-ui-phosh"
|
||||
install -Dm644 "$srcdir"/phoc.ini \
|
||||
"$subpkgdir"/etc/phosh/phoc.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
46e147f19e42996cf7c230a2b66bcfebd53f657b8baf410984e3a0a39826b610547687251bd9a2bac409319fa90954229dc536b189e320d9cdf8a9e3260098f9 deviceinfo
|
||||
9793dfd1ea066fbadeca874401a0c7c9b735b98054ccfbafa0b8d99e47ef78e28c971c544905ae556da50b55037e6970ab79be2e0a28672d9acb6f9d7d77093b phoc.ini
|
||||
"
|
38
device/testing/device-samsung-cprime/deviceinfo
Normal file
38
device/testing/device-samsung-cprime/deviceinfo
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Samsung Galaxy Core Prime"
|
||||
deviceinfo_manufacturer="Samsung"
|
||||
deviceinfo_codename="samsung-cprime"
|
||||
deviceinfo_year="2014"
|
||||
deviceinfo_dtb="qcom/msm8916-samsung-cprime"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="panel-samsung-sc7798a-bv045wvm msm imagis"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="480"
|
||||
deviceinfo_screen_height="800"
|
||||
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"
|
||||
|
||||
# Samsung Electronics Co., Ltd
|
||||
deviceinfo_usb_idVendor="0x04e8"
|
||||
# Galaxy (MTP)
|
||||
deviceinfo_usb_idProduct="0x6860"
|
2
device/testing/device-samsung-cprime/phoc.ini
Normal file
2
device/testing/device-samsung-cprime/phoc.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
[output:DSI-1]
|
||||
scale = 1.25
|
32
device/testing/firmware-samsung-cprime/APKBUILD
Normal file
32
device/testing/firmware-samsung-cprime/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
pkgname=firmware-samsung-cprime
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
_name="Samsung Galaxy Core Prime"
|
||||
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/2vBcF82L"
|
||||
|
||||
_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="
|
||||
e8ed6f0e5fe9789821fd4bf90d682dff7aae6f4fed33f6aa62aabb7ae97bb50e7033d5e2f51ed2308b88fe27313ca4bdfa479a2a5d9c80762b22c4b4fdcc337c firmware-samsung-cprime-WCNSS_qcom_wlan_nv.bin.base64
|
||||
"
|
Loading…
Reference in a new issue