Blame bcm283x-firmware.spec

1ecaea5
%global debug_package %{nil}
94feaa0
94feaa0
# Tarfile created using git 		
94feaa0
# git clone https://github.com/raspberrypi/firmware.git
94feaa0
# cd firmware/boot
9213386
# tar cJvf ../bcm283x-firmware-%{gitshort}.tar.xz *bin *dat *elf bcm2709*dtb bcm271*dtb LICENCE.broadcom COPYING.linux overlays/
9c23114
%define gitshort f4b5869
94feaa0
94feaa0
Name:          bcm283x-firmware
9c23114
Version:       20200212
21281cd
Release:       1.%{gitshort}%{?dist}
94feaa0
Summary:       Broadcom bcm283x firmware for the Raspberry Pi
94feaa0
# see LICENSE.broadcom
e01cac8
# DT Overlays covered under Linux Kernel GPLv2
94feaa0
License:       Redistributable, no modification permitted
94feaa0
URL:           https://github.com/raspberrypi/
4f5398a
63716f3
ExclusiveArch: %{arm} aarch64
63716f3
e01cac8
BuildRequires: efi-filesystem
e01cac8
BuildRequires: efi-srpm-macros
21281cd
Requires:      efi-filesystem
e01cac8
94feaa0
Source0:       %{name}-%{gitshort}.tar.xz
6281b1c
Source1:       config.txt
3efe600
Source2:       config-64.txt
94feaa0
94feaa0
%description
94feaa0
Firmware for the Broadcom bcm283x SoC as shipped in devices such as the
94feaa0
Raspberry Pi.
94feaa0
94feaa0
%prep
94feaa0
%setup -q -n %{name}-%{gitshort} -c %{name}-%{gitshort}
94feaa0
94feaa0
%build
94feaa0
94feaa0
%install
e01cac8
mkdir -p %{buildroot}%{efi_esp_root}/overlays
e01cac8
%ifarch %{arm}
e01cac8
install -p %{SOURCE1} %{buildroot}%{efi_esp_root}/config.txt
e01cac8
%endif
e01cac8
%ifarch aarch64
e01cac8
install -p %{SOURCE2} %{buildroot}%{efi_esp_root}/config.txt
e01cac8
%endif
e01cac8
install -p *bin %{buildroot}%{efi_esp_root}
e01cac8
install -p *dat %{buildroot}%{efi_esp_root}
e01cac8
install -p *elf %{buildroot}%{efi_esp_root}
63716f3
install -p *dtb %{buildroot}%{efi_esp_root}
e01cac8
install -p overlays/README %{buildroot}%{efi_esp_root}/overlays
e01cac8
install -p overlays/*.dtbo %{buildroot}%{efi_esp_root}/overlays
e01cac8
e01cac8
%pre
4810841
# Remove in Fedora 32 or there abouts
e01cac8
if [ -d /boot/fw ]; then
e01cac8
   mkdir /boot/efi
cddf148
   echo "`blkid /dev/[sm][dm]*1 |grep vfat |head -1 | awk '{print $3}'`        /boot/efi               vfat    umask=0077,shortname=winnt 0 2"  >> /etc/fstab
e01cac8
   mount /boot/efi
e01cac8
   rmdir /boot/fw
e01cac8
fi
94feaa0
94feaa0
%files
7e5450d
# DT Overlays covered under Linux Kernel GPLv2
7e5450d
%license LICENCE.broadcom COPYING.linux
e01cac8
%config(noreplace) %{efi_esp_root}/config.txt
e01cac8
%{efi_esp_root}/overlays
e01cac8
%{efi_esp_root}/*bin
e01cac8
%{efi_esp_root}/*dat
e01cac8
%{efi_esp_root}/*elf
e01cac8
%{efi_esp_root}/*.dtb
94feaa0
94feaa0
%changelog
9c23114
* Sun Feb 16 2020 Peter Robinson <pbrobinson@fedoraproject.org> 20200212-1.f4b5869
9c23114
- Latest firmware update
9c23114
74fda3a
* Fri Jan 31 2020 Peter Robinson <pbrobinson@fedoraproject.org> 20200130-1.63bdbe0
74fda3a
- Latest firmware update
74fda3a
37a3c08
* Wed Jan 15 2020 Peter Robinson <pbrobinson@fedoraproject.org> 20200114-1.d5b8d8d
37a3c08
- Latest firmware update
37a3c08
8cc309c
* Tue Jan  7 2020 Peter Robinson <pbrobinson@fedoraproject.org> 20200106-1.dc56225
8cc309c
- Latest firmware update
8cc309c
1b24853
* Sat Dec  7 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20191205-1.9d6be5b
1b24853
- Latest firmware update
1b24853
f5184dc
* Tue Nov 19 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20191118-1.68ec481
75c187e
- Latest firmware update
75c187e
cb16c68
* Wed Oct  2 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190930-1.a16470a
cb16c68
- Latest firmware update
cb16c68
a59ae42
* Sat Sep 21 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190920-1.c3f9eee
a59ae42
- Latest firmware update
a59ae42
c202043
* Wed Aug 28 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190828-1.18bf532
c202043
- Latest firmware update
c202043
3aa048a
* Sun Aug  4 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190801-1.3822340
3aa048a
- Latest firmware update
3aa048a
9213386
* Sun Jul 21 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190715-1.cba4be2
9213386
- Latest firmware, updates for RPi4, fixes for older RPi devices
9213386
21281cd
* Mon Jun 24 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190624-1.64b5649
21281cd
- Initial firmware support for the Raspberry Pi 4
21281cd
d262b77
* Sun May 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190403-2.9fd387c
d262b77
- Updated device tree bits
d262b77
4810841
* Sun Apr 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190403-1.8b12e99
4810841
- Latest firmware update
4810841
3fe1521
* Sun Mar 17 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-4.83977fe
3fe1521
- Ship missing 2836 Raspberry Pi 2 dtb on F-29
3fe1521
3f3c7ee
* Wed Mar 13 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-3.83977fe
3f3c7ee
- Upstream dts for 5.0
3f3c7ee
- Add Raspberry Pi 2 dtb
3f3c7ee
6e77d61
* Thu Mar  7 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-2.83977fe
6e77d61
- Use upstream kernel DTBs for F-29
6e77d61
- Minor config updates
6e77d61
01f8464
* Thu Feb 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-1.83977fe
01f8464
- Latest firmware update
01f8464
- config.txt updates for HAT/overlay support
01f8464
35639e1
* Tue Jan 22 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190122-1.81cca1a
35639e1
- Latest firmware update
35639e1
- Tweak config.txt, add details about gpu_mem for camera
35639e1
63716f3
* Wed Jan  9 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190109-1.9baae76
63716f3
- Latest firmware update
63716f3
- Ship Raspbery Pi base DTs
63716f3
8c5f35a
* Wed Dec 19 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181218-1.1ea8781
8c5f35a
- Latest firmware update
8c5f35a
- Updates to config.txt, use eXtended firmware by default
8c5f35a
580c148
* Wed Dec  5 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181204-1.afd824a
580c148
- Latest firmware update
580c148
d38e616
* Sun Nov 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181105-1.55e5912
d38e616
- Latest firmware update
d38e616
42c80e0
* Fri Oct 12 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181009-1.fbad640
42c80e0
- Latest firmware update
42c80e0
b4e00bb
* Sun Sep 23 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180921-1.404dfef
b4e00bb
- Latest firmware update
b4e00bb
0a873dd
* Mon Sep  3 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-3.ec3f856
0a873dd
- Minor fixup
0a873dd
cddf148
* Sat Sep  1 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-2.ec3f856
cddf148
- Tweak migration process
cddf148
e01cac8
* Fri Aug 31 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-1.ec3f856
e01cac8
- Latest firmware update
e01cac8
- Change locations of firmware
e01cac8
- Migration bits for ARMv7
e01cac8
- Prepare for supporting HATs/overlays using config.txt
e01cac8
df95779
* Mon Aug 13 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180810-1.953a339
df95779
- Latest upstream firmware
df95779
19f2b1d
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180629-2.93683f1
19f2b1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
19f2b1d
a9607dd
* Sun Jul  1 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180629-1.93683f1
a9607dd
- Latest upstream firmware
a9607dd
34b990e
* Wed Apr 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180525-1.784fe6c
34b990e
- Latest upstream firmware
34b990e
709987e
* Wed Apr 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180416-1.a154f21
709987e
- Firmware fix for some Raspberry Pi 3+ issues
709987e
61fe517
* Thu Apr 12 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180409-1.d46b40b
61fe517
- Upstream firmware fixes
61fe517
4bf316f
* Sun Apr  8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180406-1.3aa8060
4bf316f
- Upstream firmware fixes
4bf316f
- Ship DT overlays
4bf316f
- Update config.txt
4bf316f
4cf0302
* Tue Mar 20 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180316-1.25cf637
4cf0302
- Upstream firmware fixes
4cf0302
0ed4f49
* Wed Mar 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180314-1.086a848
0ed4f49
- Add support for Raspberry Pi 3+ (Happy Pi day)
0ed4f49
8299398
* Thu Mar  8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180307-1.7fdcd00
8299398
- Upstream firmware fixes
8299398
8ad5d6c
* Sun Feb 25 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180209-1.b1a7f4a
8ad5d6c
- Latest firmware, updated license text
580b0b8
f862bd7
* Wed Jan  3 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20171201-1.9426e18
f862bd7
- Latest firmware
f862bd7
02975e8
* Sun Oct 15 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20171011-1.a88e126
02975e8
- Latest firmware
02975e8
bd5e960
* Thu Sep 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170912-1.2067241
bd5e960
- Update to 2067241 firmware with various fixes/improvements
bd5e960
4aca324
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170703-3.5f54395
4aca324
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4aca324
4f71ae4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170703-2.5f54395
4f71ae4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4f71ae4
81a2c95
* Thu Jul 13 2017 Peter Robinson <pbrobinson@fedoraproject.org>
81a2c95
- Allow OS rather than firmware control CEC
81a2c95
65ecf59
* Mon Jul  3 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170703-1.5f54395
65ecf59
- Update to 5f54395 firmware (upstream fix for serial baud rate regression)
65ecf59
1149072
* Mon Jul  3 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170613-2.73f44c6
1149072
- Move back to firmware 73f44c6 (20170515) to fix regresion on serial console
1149072
2e47c8b
* Wed Jun 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170613-1.7a661e0
2e47c8b
- Latest firmware
2e47c8b
0bae1a0
* Mon May 15 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170504-1.284e48a
0bae1a0
- Enable DMA driver in initrd
0bae1a0
- Latest firmware
0bae1a0
3efe600
* Wed Apr 19 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170404-2.b038854
3efe600
- Add config-64.txt for default 64 bit options for the RPi3
3efe600
a3e2414
* Wed Apr 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170404-1.b038854
a3e2414
- Latest firmware, minor config tweaks
a3e2414
eee6fad
* Sun Mar 26 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170324-1.76fc4dd
eee6fad
- Drop bcm2835_dma from initrd, it's too unstable
eee6fad
- Latest firmware fixes
eee6fad
8c5d9b2
* Tue Mar 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170314-2.509beaa
8c5d9b2
- Add bcm2835_dma to initrd list
8c5d9b2
f7938ec
* Tue Mar 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170314-1.509beaa
f7938ec
- Latest firmware fixes
f7938ec
- Transition mechanism for MMC changes
f7938ec
19616ca
* Thu Feb  9 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170208-1.db5fd5e
19616ca
- Latest firmware fixes
19616ca
2c1debe
* Thu Feb  2 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170131-1.72b44d8
2c1debe
- Latest firmware fixes
2c1debe
f194e13
* Wed Dec 28 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20161209-1.6d45dcf
f194e13
- Latest firmware fixes
f194e13
e0c8337
* Sat Oct 22 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20161020-1.a0e54e7
e0c8337
- Latest firmware fixes
e0c8337
- Minor config tweaks
e0c8337
1d951d7
* Sat Sep 24 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160913-2.c93fb48
1d951d7
- Minor config tweaks
1d951d7
2f40d9b
* Wed Sep 14 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160913-1.c93fb48
2f40d9b
- Numerous config enhancements
2f40d9b
- Latest firmware fixes
2f40d9b
804b0e6
* Sat Aug 27 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160823-1.d0bc6ce
804b0e6
- Latest firmware fixes
804b0e6
8ed6851
* Tue Jul 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160712-1.6ab4d20
8ed6851
- Latest firmware fixes
8ed6851
61934ec
* Mon May 16 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160513-1.c17fa41
61934ec
- Config options for HW rev 3
61934ec
- Latest firmware fixes
61934ec
aec8bb9
* Sat Apr 30 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160430-1.611d798
aec8bb9
- Latest firmware update
aec8bb9
29eddcc
* Mon Mar  7 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160307-1.a192a05
29eddcc
- Latest firmware update
29eddcc
34fe08a
* Wed Mar  2 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160229-1.9cd1c6c
34fe08a
- Latest firmware update
34fe08a
- Build for aarch64
34fe08a
04132e6
* Mon Feb  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160201-1.cb2ffaa
04132e6
- Latest firmware update
04132e6
8252685
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151219-2.1efc1ec
8252685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8252685
6b728e1
* Mon Dec 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20151219-1.1efc1ec
6b728e1
- Latest firmware update
6b728e1
6acdc09
* Mon Oct  5 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20151004-1.b06b317
6acdc09
- Latest firmware update
6acdc09
d2363e6
* Fri Aug 28 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150824-1.c6ae1d6
d2363e6
- Latest firmware update
d2363e6
818b016
* Fri Jul 24 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150723-1.43c4847
818b016
- Latest firmware update
818b016
87a8fe8
* Tue Jun 30 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150630-1.89881b5
87a8fe8
- Latest firmware update
87a8fe8
0fd9047
* Wed Jun 24 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150623-1.856e2e1
0fd9047
- Latest firmware update
0fd9047
e923b46
* Sun Jun 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150619-1.8b9d7b8
78cfa40
- Latest firmware update
78cfa40
- update config.txt for default kernel name
78cfa40
4f5398a
* Fri Jun 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150617-2.fc6c989
4f5398a
- Add cmdline.txt, update config.txt
4f5398a
6281b1c
* Fri Jun 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150617-1.fc6c989
6281b1c
- Latest firmware update
6281b1c
- Add default config.txt
6281b1c
94feaa0
* Thu Jun 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-3.37600d5
94feaa0
- Fix license field
94feaa0
94feaa0
* Thu Jun 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-2.37600d5
94feaa0
- Updates for review
94feaa0
94feaa0
* Mon Jun 15 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-1.37600d5
94feaa0
- Initial version