From 457ee8a4c59450f5015086fdb7c7ede94cb40bba Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Wed, 10 Jul 2024 15:47:31 +0900
Subject: [PATCH] Fix wrong symlink for RPi CM4 and set ExclusiveArch
---
SPECS/linux-firmware-raspberrypi.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/SPECS/linux-firmware-raspberrypi.spec b/SPECS/linux-firmware-raspberrypi.spec
index 9ecc2d5..e051212 100644
--- a/SPECS/linux-firmware-raspberrypi.spec
+++ b/SPECS/linux-firmware-raspberrypi.spec
@@ -8,9 +8,10 @@
Name: linux-firmware-raspberrypi
Version: 20240528
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Supplemental firmware used by Linux kernel for some Raspberry Pi models
BuildArch: noarch
+ExclusiveArch: aarch64
# LICENSE file installed by linux-firmware package also covers these suppremental firmware
# /usr/share/licenses/linux-firmware/LICENCE.broadcom_bcm43xx
@@ -58,7 +59,7 @@ xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM4345C5.hcd
# Raspberry Pi CM 4
ln -s brcmfmac43455-sdio.bin.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.bin.xz
ln -s brcmfmac43455-sdio.clm_blob.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.clm_blob.xz
-ln -s brcmfmac43455-sdio.bin.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt.xz
+ln -s brcmfmac43455-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt.xz
# Raspberry Pi 400
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
@@ -73,6 +74,10 @@ ln -s brcmfmac43455-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-
%{_firmwarepath}/brcm/*
%changelog
+* Wed Jul 10 2024 Koichiro Iwao - 20240528-4
+- Fix wrong symlink for RPi CM4
+- Set ExclusiveArch to aarch64
+
* Mon Jun 03 2024 Koichiro Iwao - 20240528-3
- Add symlink for RPi CM4
@@ -87,4 +92,4 @@ ln -s brcmfmac43455-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-
- 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