-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbcm434xx-firmware.spec
150 lines (117 loc) · 6.24 KB
/
bcm434xx-firmware.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#debug packages make no sense!
%global debug_package %{nil}
#no stripping required either
%global __os_install_post %{nil}
%global snap_date 20211028
%global commit_fw bda9207acee945633464e89614f3717b856579b5
%global commit_bt e7fd166981ab4bb9a36c2d1500205a078a35714d
%global commit_short %(c=%{commit_fw}; echo ${c:0:7})
%global fetch_url https://raw.githubusercontent.com/RPi-Distro
Name: bcm434xx-firmware
Version: %{snap_date}
Release: 1.%{commit_short}%{?dist}
Summary: Binary firmwares for Broadcom BCM434xx modules
Group: System Environment/Kernel
License: Redistributable, no modification permitted
URL: https://github.com/RPi-Distro/
Source0: %{fetch_url}/firmware-nonfree/%{commit_fw}/LICENCE.broadcom_bcm43xx
# RPi3B wifi firmware
Source1: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43430-sdio.bin
Source2: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43430-sdio.txt
# RPi3B bluetooth firmware
Source3: %{fetch_url}/bluez-firmware/%{commit_bt}/broadcom/BCM43430A1.hcd
# RPi3B+ wifi firmware
Source4: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43455-sdio.bin
Source5: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43455-sdio.clm_blob
Source6: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43455-sdio.txt
# RPi3B+ bluetooth firmware
Source7: %{fetch_url}/bluez-firmware/%{commit_bt}/broadcom/BCM4345C0.hcd
# RPi400 wifi firmware
Source8: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43456-sdio.bin
Source9: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43456-sdio.clm_blob
Source10: %{fetch_url}/firmware-nonfree/%{commit_fw}/brcm/brcmfmac43456-sdio.txt
BuildArch: noarch
Conflicts: linux-firmware < 20171215-83.git2451bb22
Conflicts: bcm43438-firmware
Obsoletes: bcm43438-firmware <= 20180306-1.927fa8e
Provides: bcm43438-firmware
%description
This package contains binary firmwares for Broadcom BCM434xx wifi/bluetooth modules.
Wifi is supported by the brcmfmac driver. The BCM43xx wifi/bluetooth modules are used
in the Raspberry Pi 3 Model B (plus).
%prep
%setup -c -T %{name}-%{commit_short}
cp -a %{sources} .
%build
%install
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/brcm/
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
%{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10}; do
%{__install} -p -m0644 $i %{buildroot}%{_prefix}/lib/firmware/brcm/
done
pushd %{buildroot}%{_prefix}/lib/firmware/brcm/
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.raspberrypi,400.txt
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.raspberrypi,4-compute-module.txt
popd
%files
%license LICENCE.broadcom_bcm43xx
%{_prefix}/lib/firmware/brcm/*
%changelog
* Mon Jan 31 2022 Damian Wrobel <[email protected]> - 20211028-2.bda9207
- Sync firmware-nonfree to commit: 20211028gitbda9207
* Wed Sep 22 2021 Damian Wrobel <[email protected]> - 20210922-1.d27b9f1
- Sync firmware-nonfree to commit: 20210922gitd27b9f1
* Thu Jun 24 2021 Damian Wrobel <[email protected]> - 20210623-1.00de319
- Sync firmware-nonfree to commit: 20210623git00de319
- Add RPi400 firmware
* Fri Mar 12 2021 Damian Wrobel <[email protected]> - 20210125-1.83938f7
- Sync firmware-nonfree to commit: 20210125git83938f7
- Sync bluez-firmware to commit: 20210128gite7fd166
* Wed Dec 23 2020 Damian Wrobel <[email protected]> - 20201201-1.b66ab26
- Sync firmware-nonfree to commit: 20201201gitb66ab26
- Sync bluez-firmware to commit: 20201126git1e4ee0c
* Fri Sep 11 2020 Damian Wrobel <[email protected]> - 20200902-2.98e8157
- Fix install dir on aarch64
* Wed Sep 02 2020 Damian Wrobel <[email protected]> - 20200902-1.98e8157
- Sync firmware-nonfree to commit: 20200729git98e8157
- Sync bluez-firmware to commit: 20200805gitafe608e
* Fri May 29 2020 Damian Wrobel <[email protected]> - 20200529-1.616fc2d
- Sync firmware-nonfree to commit: 20200417git616fc2d
- Sync bluez-firmware to commit: 20200518git98cbd44
* Mon Mar 09 2020 Damian Wrobel <[email protected]> - 20200306-1.ce751a8
- Sync firmware-nonfree to commit: 20200306gitce751a8
- Sync bluez-firmware to commit: 20191202gitfff76cb
- Fix rpm warning: "It's not recommended to have unversioned Obsoletes"
* Tue Oct 01 2019 Damian Wrobel <[email protected]> - 20190530-1.130cb86
- Update to the latest available release (fixes lack of wlan on RPi4B)
* Sat Apr 20 2019 Vaughan <devel at agrez dot net> - 20190420-1.b518de4
- Update RPi3B+ bluetooth firmware (BCM4345C0.hcd v003.001.025.0156.0280)
* Wed Oct 10 2018 Vaughan <devel at agrez dot net> - 20181010-1.b518de4
- Refactor sources (all firmware now sourced from https://github.com/RPi-Distro)
- Sync firmware-nonfree to commit b518de45ced519e8f7a499f4778100173402ae43
- Sync bluez-firmware to commit ade2bae1aaaebede09abb8fb546f767a0e4c7804
- Add RPi3B+ bluetooth firmware (BCM4345C0.hcd)
* Mon Mar 19 2018 Vaughan <devel at agrez dot net> - 20180319-1.86e88fbf
- Rename package (it now contains multiple firmwares)
- Add brcmfmac43455 firmware files (for RPi3B+) (v7.45.154)
- Sync to commit 86e88fbf0345da49555d0ec34c80b4fbae7d0cd3
(really brcmfmac43430-sdio.bin v7.45.98.38 this time!)
* Thu Mar 08 2018 Vaughan <devel at agrez dot net> - 20180306-1.927fa8e
- Re-add wifi firmware brcmfmac43430-sdio.bin
- Sync to commit 927fa8ebdf5bcfb90944465b40ec4981e01d6015
(brcmfmac43430-sdio.bin version 7.45.98.38)
- Update spec
* Sat Oct 01 2016 Vaughan <devel at agrez dot net> - 20160627-2.a7491de
- Drop SOURCE0 (brcmfmac43430-sdio.bin) as its now inlcuded upstream
(linux-firmware >= 20160923-68.git42ad5367.fc24)
* Mon Jun 27 2016 Vaughan <devel at agrez dot net> - 20160627-1.a7491de
- Sync to commit a7491de4c4b2f1ceb5d0dfa5350b95e5c6fb9bd4 (this updates
brcmfmac43430-sdio.bin to version 7.45.41.26)
* Fri May 06 2016 Vaughan <devel at agrez dot net> - 20160506-1.54bab3d
- Rename package (whilst the chipset identifies itself as bcm43430
its actually the bcm43438 module that is used in the RPi3.)
- Add bluetooth firmware (sourced from openelec repo as RPi foundation
don't seem to want to make this easily available anywhere.... why??)
- Add Obsoletes / Conflicts: brcm43430-firmware
* Thu Mar 10 2016 Vaughan <devel at agrez dot net> - 20160310-1.54bab3d
- Initial package