From f686057b99ace67e9fe82ff8fd1aa182abdc7ebb Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Mon, 3 Jun 2024 04:05:17 +0000
Subject: [PATCH] Add symlink for RPi CM4
---
SPECS/linux-firmware-raspberrypi.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/SPECS/linux-firmware-raspberrypi.spec b/SPECS/linux-firmware-raspberrypi.spec
index a9ed21c..9ecc2d5 100644
--- a/SPECS/linux-firmware-raspberrypi.spec
+++ b/SPECS/linux-firmware-raspberrypi.spec
@@ -8,7 +8,7 @@
Name: linux-firmware-raspberrypi
Version: 20240528
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Supplemental firmware used by Linux kernel for some Raspberry Pi models
BuildArch: noarch
@@ -55,6 +55,10 @@ 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
+# 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
# 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
@@ -69,6 +73,9 @@ ln -s brcmfmac43455-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-
%{_firmwarepath}/brcm/*
%changelog
+* Mon Jun 03 2024 Koichiro Iwao - 20240528-3
+- Add symlink for RPi CM4
+
* Tue May 28 2024 Koichiro Iwao - 20240528-2
- Fix symlink typo and add missing file