pmaports/device/testing/device-qcom-msm8916/APKBUILD

64 lines
1.9 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Nikita Travkin <nikita@trvn.ru>
pkgname=device-qcom-msm8916
pkgdesc="Generic device package for various Qualcomm MSM8916/MSM8939-based devices"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
postmarketos-base
soc-qcom-msm8916
"
makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-extlinux:kernel_extlinux
$pkgname-kernel-efi:kernel_efi
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT/Modem/Video firmware"
depends="msm-firmware-loader firmware-qcom-adreno-a300 firmware-qcom-adreno-a420 firmware-qcom-db410c-wcnss-nv"
mkdir "$subpkgdir"
# HACK: For devices that don't have a nv file in persist we
# temporarily link the db410c file to the expected location.
# It will be overriden if the file is in persist or when user
# installs the device-specific firmware packages.
mkdir -p "$subpkgdir"/lib/firmware/wlan/prima/
ln -s /lib/firmware/qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin \
"$subpkgdir"/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
}
kernel_extlinux() {
pkgdesc="Use lk2nd to boot via extlinux.conf"
depends="linux-postmarketos-qcom-msm8916"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_efi() {
pkgdesc="Use U-Boot to boot via EFI"
depends="linux-postmarketos-qcom-msm8916 systemd-boot"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
965af8d7c00e4c88883669fa69bd44d340525fa6283cc92f15f2b8c554c432a3e66408b55419a913afe16e317075e0d16d6d19913bddde8394e52adf5e027ef7 deviceinfo
28aae94b3367677dad685901c71bad36d79635942b749a54628922210bbf8bcf962707e25115d3012d653c48106e5e77db2b54216fef05641ac4bc1c8496c6ae modules-initfs
"