2019-12-22 17:23:03 +00:00
|
|
|
# Maintainer: David Heidelberg <david@ixit.cz>
|
2017-09-27 17:41:25 +00:00
|
|
|
pkgname=firmware-aosp-broadcom-wlan
|
|
|
|
pkgver=1
|
2019-12-22 17:23:03 +00:00
|
|
|
pkgrel=3
|
2017-10-19 22:40:14 +00:00
|
|
|
pkgdesc="Broadcom Wi-Fi firmware from AOSP"
|
|
|
|
url="https://android.googlesource.com/platform/hardware/broadcom/wlan/+/android-8.0.0_r12"
|
2019-04-06 19:12:51 +00:00
|
|
|
arch="armhf armv7 aarch64"
|
2019-12-22 17:23:03 +00:00
|
|
|
license="custom:proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
|
2017-09-27 17:41:25 +00:00
|
|
|
|
2017-10-19 22:40:14 +00:00
|
|
|
# Sources
|
2019-02-09 16:12:30 +00:00
|
|
|
_commit="6c8ef5b600cec5d36a54a0276fe8c97b9ab8d6bb"
|
2020-01-06 17:44:33 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/zhuowei/android_hardware_broadcom_wlan/archive/$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/android_hardware_broadcom_wlan-$_commit"
|
2019-12-22 17:23:03 +00:00
|
|
|
subpackages="$pkgname-mainline:mainline"
|
2017-10-19 22:40:14 +00:00
|
|
|
|
2017-09-27 17:41:25 +00:00
|
|
|
package() {
|
2020-01-06 17:44:33 +00:00
|
|
|
cd bcmdhd/firmware
|
2017-10-19 22:40:14 +00:00
|
|
|
for _i in */*.bin; do
|
|
|
|
install -Dm644 "$_i" \
|
2020-01-06 17:44:33 +00:00
|
|
|
"$pkgdir"/lib/firmware/postmarketos/bcmdhd/"$_i"
|
2017-09-27 17:41:25 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-12-22 17:23:03 +00:00
|
|
|
mainline() {
|
|
|
|
cd "$srcdir/android_hardware_broadcom_wlan-$_commit/bcmdhd/firmware"
|
|
|
|
install -Dm644 bcm4330/fw_bcm4330_apsta_bg.bin \
|
|
|
|
"$subpkgdir"/lib/firmware/postmarketos/brcm/brcmfmac4330-sdio.bin
|
|
|
|
}
|
|
|
|
|
2017-09-27 17:41:25 +00:00
|
|
|
sha512sums="ffd125833076a257b6ad4bf9d3f1cb262331e0ce5b1a15b12b6a5b375fa82ea37c17876dada4cab8fe74c4c66dfc499bd9a00526c1a9c31664add3d4e45d5cf0 firmware-aosp-broadcom-wlan-6c8ef5b600cec5d36a54a0276fe8c97b9ab8d6bb.tar.gz"
|