pmaports/device/testing/firmware-lg-m216/APKBUILD
Johannes Marbach 95d375879c
treewide: firmware: use pmb:cross-native/!tracdeps (MR 2468)
Add pmb:cross-native/!tracedeps to applicable firmware packages and
secure both with a test.

This sets the pmb:cross-native and !tracedeps options on all firmware-*
packages that are compatible with the native compilation method. A unit
test ensures the presence of both options while maintaining a list of
exempted packages.

Fixes: #718
[ci:ignore-count] [ci:skip-vercheck] [ci:skip-build]
2021-09-19 18:57:36 +02:00

29 lines
892 B
Text

pkgname=firmware-lg-m216
pkgver=1
pkgrel=0
pkgdesc="Firmware for LG K10"
url="https://github.com/cristianc/firmware"
subpackages="$pkgname-modem $pkgname-wcnss-nv:wcnss_nv"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
source="https://github.com/cristianc/firmware/raw/main/m216.tar.xz"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
modem() {
pkgdesc="LG K10 modem firmware"
install -Dm644 "$srcdir"/mba.mbn -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
}
wcnss_nv() {
pkgdesc="LG K10 WiFi/BT firmware"
install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="8b236fc772bfa857d7dfb6ad2d815af554605e3f89bf66f2a2e0cbc2562146a7b5888298abc8f7010ed7e5b5e7f7555aacd7d9d73ec33f0474078705e61d3a38 m216.tar.xz"