2024-03-24 13:40:39 +00:00
|
|
|
# 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"
|
2024-06-06 13:45:06 +00:00
|
|
|
pkgver=2
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
2024-03-24 13:40:39 +00:00
|
|
|
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="
|
2024-06-18 19:53:59 +00:00
|
|
|
0894e6a63f69062d4c9e744cdda700b30c68795fdfdc866b8c60c0d0d27b97f3ad915615d87baede2fdaceb5c2773240c649eb95d82b2d58acd5b59f1e5190c0 deviceinfo
|
2024-06-06 13:45:06 +00:00
|
|
|
80b037998756dab0c6b2a3bb438fb2d6bf727148c4af29648074b85c3beacdbbbffb2fefd477e68904d4c3bedb76bf0e532719a15a3bb7c8ef5f922be0d73c1d modules-initfs
|
2024-03-24 13:40:39 +00:00
|
|
|
"
|