From 263d00790eb0ad49c451ebd6dfef45342796874e Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Mon, 10 Jun 2024 12:19:08 -0700 Subject: [PATCH] firmware-brcm43752: install symlinks to fix driver loading (MR 5224) At some point the driver started using symlinks w/ machine IDs for finding/loading fw, and for some reason I thought it was a good idea to not install those symlinks. Fixes this failure when loading the brcmfmac driver: brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.purism,librem5r4.bin failed with error -2 [ci:skip-build]: already built successfully in CI --- device/main/firmware-brcm43752/APKBUILD | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/device/main/firmware-brcm43752/APKBUILD b/device/main/firmware-brcm43752/APKBUILD index 6a50c1d09..04f874245 100644 --- a/device/main/firmware-brcm43752/APKBUILD +++ b/device/main/firmware-brcm43752/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Clayton Craft pkgname=firmware-brcm43752 -pkgver=0.3_git20230613 -pkgrel=0 +pkgver=3_git20230613 +pkgrel=1 _commit="84b8b00f57a9495c05190477c5895cd66f69b873" pkgdesc="Firmware for the Broadcom brcm43752 Wifi/BT adapter" url="https://source.puri.sm/Librem5/firmware-brcm43752-nonfree" @@ -12,10 +12,8 @@ source="https://source.puri.sm/Librem5/firmware-brcm43752-nonfree/-/archive/$_co builddir="$srcdir/firmware-brcm43752-nonfree-$_commit" package() { - - for f in brcmfmac43752-sdio.bin brcmfmac43752-sdio.clm_blob brcmfmac43752-sdio.txt BCM4362A2.hcd; do - install -Dm644 firmware/brcm/"$f" "$pkgdir/lib/firmware/postmarketos/brcm/$f" - done + mkdir -p "$pkgdir/lib/firmware/postmarketos" + cp -r "$builddir/firmware/brcm" "$pkgdir/lib/firmware/postmarketos" } sha512sums="