pmaports/device/testing/firmware-xiaomi-kenzo/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

32 lines
1.2 KiB
Text

pkgname=firmware-xiaomi-kenzo
pkgver=1
pkgrel=2
_commit="a95bb1dcd92fb301d8e4401679f6c19d93f5875c"
pkgdesc="Firmware files for Xiaomi Redmi Note 3"
url="https://postmarketos.org"
arch="aarch64"
license="proprietary"
depends="wcnss-wlan"
source="$pkgname-$_commit.tar.gz::https://gitlab.com/IdanHoro/vendor_xiaomi_kenzo/-/archive/$_commit/vendor_xiaomi_kenzo-$_commit.tar.gz"
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
builddir="$srcdir/vendor_xiaomi_kenzo-$_commit"
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06
wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt"
_files_prima="WCNSS_wlan_dictionary.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin WCNSS_cfg.dat"
package() {
# /lib/firmware/postmarketos
for _i in $_files; do
install -D -m644 "$_i" \
"$pkgdir"/lib/firmware/postmarketos/"$_i"
done
# /lib/firmware/postmarketos/wlan/prima
for _i in $_files_prima; do
install -D -m644 wlan/prima/"$_i" \
"$pkgdir"/lib/firmware/postmarketos/wlan/prima/"$_i"
done
}
sha512sums="804a69851e13d7ebcc90782b6bf246150327ad4282d67195bb7018bbeae93670e4896a336dadf3bd992110517afd2116df165a132545a0f62072bb6261a7588d firmware-xiaomi-kenzo-a95bb1dcd92fb301d8e4401679f6c19d93f5875c.tar.gz"