From ade66bb0c1ab39b7a47a415d8ad70cf9e66f5900 Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Tue, 4 Jun 2024 08:52:25 +0000
Subject: [PATCH] Sync specfile with a9
(cherry picked from commit 288bbe374ad6273fe6bd57cd74ec49e08a13a6f9)
---
SPECS/linux-firmware-raspberrypi.spec | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/SPECS/linux-firmware-raspberrypi.spec b/SPECS/linux-firmware-raspberrypi.spec
index eb366ae..01845fb 100644
--- a/SPECS/linux-firmware-raspberrypi.spec
+++ b/SPECS/linux-firmware-raspberrypi.spec
@@ -44,10 +44,18 @@ install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM43430A1.hcd %{buildro
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM4345C0.hcd %{buildroot}%{_firmwarepath}/brcm/
# Bluetooth for RPi 400
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM4345C5.hcd %{buildroot}%{_firmwarepath}/brcm/
+# Other firmware files installed by linux-firmware are compressed, so compress these as well
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.bin
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.clm_blob
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.txt
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM43430A1.hcd
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM43430B0.hcd
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM4345C0.hcd
+xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM4345C5.hcd
# Create model-specific symlinks
-ln -s brcmfmac43456-sdio.bin %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.bin
-ln -s brcmfmac43456-sdio.clm_blob %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.clm_blob
-ln -s brcmfmac43456-sdio.txt %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.txt
+ln -s brcmfmac43456-sdio.bin.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.bin.xz
+ln -s brcmfmac43456-sdio.clm_blob.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.clm_blob.xz
+ln -s brcmfmac43456-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.txt.xz
%files
%{_firmwarepath}/brcm/*
@@ -57,4 +65,4 @@ ln -s brcmfmac43456-sdio.txt %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdi
- Add firmware to support Bluetooth for RPi 3B+, Zero 2 W and 400
* Thu Apr 20 2023 Koichiro Iwao - 20230420-1
-- Initial creation
+- Initial creation