Blame SPECS/bcm283x-firmware.spec

Pablo Greco d00ad8
%global debug_package %{nil}
Pablo Greco d00ad8
Pablo Greco d00ad8
# Tarfile created using git 		
Pablo Greco d00ad8
# git clone https://github.com/raspberrypi/firmware.git
Pablo Greco d00ad8
# cd firmware/boot
Pablo Greco d00ad8
# tar cJvf ../bcm283x-firmware-%{gitshort}.tar.xz *bin *dat *elf bcm2709*dtb bcm271*dtb LICENCE.broadcom COPYING.linux overlays/
Pablo Greco d00ad8
%define gitshort 18bf532
Pablo Greco d00ad8
Pablo Greco d00ad8
Name:          bcm283x-firmware
Pablo Greco d00ad8
Version:       20190828
Pablo Greco d00ad8
Release:       1.%{gitshort}%{?dist}
Pablo Greco d00ad8
Summary:       Broadcom bcm283x firmware for the Raspberry Pi
Pablo Greco d00ad8
# see LICENSE.broadcom
Pablo Greco d00ad8
# DT Overlays covered under Linux Kernel GPLv2
Pablo Greco d00ad8
License:       Redistributable, no modification permitted
Pablo Greco d00ad8
URL:           https://github.com/raspberrypi/
Pablo Greco d00ad8
Pablo Greco d00ad8
ExclusiveArch: %{arm} aarch64
Pablo Greco d00ad8
Pablo Greco d00ad8
BuildRequires: efi-filesystem
Pablo Greco d00ad8
BuildRequires: efi-srpm-macros
Pablo Greco d00ad8
Requires:      efi-filesystem
Pablo Greco d00ad8
Pablo Greco d00ad8
Source0:       %{name}-%{gitshort}.tar.xz
Pablo Greco d00ad8
Source1:       config.txt
Pablo Greco d00ad8
Source2:       config-64.txt
Pablo Greco d00ad8
Pablo Greco d00ad8
%description
Pablo Greco d00ad8
Firmware for the Broadcom bcm283x SoC as shipped in devices such as the
Pablo Greco d00ad8
Raspberry Pi.
Pablo Greco d00ad8
Pablo Greco d00ad8
%prep
Pablo Greco d00ad8
%setup -q -n %{name}-%{gitshort} -c %{name}-%{gitshort}
Pablo Greco d00ad8
Pablo Greco d00ad8
%build
Pablo Greco d00ad8
Pablo Greco d00ad8
%install
Pablo Greco d00ad8
mkdir -p %{buildroot}%{efi_esp_root}/overlays
Pablo Greco d00ad8
%ifarch %{arm}
Pablo Greco d00ad8
install -p %{SOURCE1} %{buildroot}%{efi_esp_root}/config.txt
Pablo Greco d00ad8
%endif
Pablo Greco d00ad8
%ifarch aarch64
Pablo Greco d00ad8
install -p %{SOURCE2} %{buildroot}%{efi_esp_root}/config.txt
Pablo Greco d00ad8
%endif
Pablo Greco d00ad8
install -p *bin %{buildroot}%{efi_esp_root}
Pablo Greco d00ad8
install -p *dat %{buildroot}%{efi_esp_root}
Pablo Greco d00ad8
install -p *elf %{buildroot}%{efi_esp_root}
Pablo Greco d00ad8
install -p *dtb %{buildroot}%{efi_esp_root}
Pablo Greco d00ad8
install -p overlays/README %{buildroot}%{efi_esp_root}/overlays
Pablo Greco d00ad8
install -p overlays/*.dtbo %{buildroot}%{efi_esp_root}/overlays
Pablo Greco d00ad8
Pablo Greco d00ad8
%pre
Pablo Greco d00ad8
# Remove in Fedora 32 or there abouts
Pablo Greco d00ad8
if [ -d /boot/fw ]; then
Pablo Greco d00ad8
   mkdir /boot/efi
Pablo Greco d00ad8
   echo "`blkid /dev/[sm][dm]*1 |grep vfat |head -1 | awk '{print $3}'`        /boot/efi               vfat    umask=0077,shortname=winnt 0 2"  >> /etc/fstab
Pablo Greco d00ad8
   mount /boot/efi
Pablo Greco d00ad8
   rmdir /boot/fw
Pablo Greco d00ad8
fi
Pablo Greco d00ad8
Pablo Greco d00ad8
%files
Pablo Greco d00ad8
# DT Overlays covered under Linux Kernel GPLv2
Pablo Greco d00ad8
%license LICENCE.broadcom COPYING.linux
Pablo Greco d00ad8
%config(noreplace) %{efi_esp_root}/config.txt
Pablo Greco d00ad8
%{efi_esp_root}/overlays
Pablo Greco d00ad8
%{efi_esp_root}/*bin
Pablo Greco d00ad8
%{efi_esp_root}/*dat
Pablo Greco d00ad8
%{efi_esp_root}/*elf
Pablo Greco d00ad8
%{efi_esp_root}/*.dtb
Pablo Greco d00ad8
Pablo Greco d00ad8
%changelog
Pablo Greco d00ad8
* Wed Aug 28 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190828-1.18bf532
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Aug  4 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190801-1.3822340
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Jul 21 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190715-1.cba4be2
Pablo Greco d00ad8
- Latest firmware, updates for RPi4, fixes for older RPi devices
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Jun 24 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190624-1.64b5649
Pablo Greco d00ad8
- Initial firmware support for the Raspberry Pi 4
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun May 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190403-2.9fd387c
Pablo Greco d00ad8
- Updated device tree bits
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Apr 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190403-1.8b12e99
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Mar 17 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-4.83977fe
Pablo Greco d00ad8
- Ship missing 2836 Raspberry Pi 2 dtb on F-29
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Mar 13 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-3.83977fe
Pablo Greco d00ad8
- Upstream dts for 5.0
Pablo Greco d00ad8
- Add Raspberry Pi 2 dtb
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Mar  7 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-2.83977fe
Pablo Greco d00ad8
- Use upstream kernel DTBs for F-29
Pablo Greco d00ad8
- Minor config updates
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Feb 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190212-1.83977fe
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- config.txt updates for HAT/overlay support
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Jan 22 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190122-1.81cca1a
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Tweak config.txt, add details about gpu_mem for camera
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Jan  9 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190109-1.9baae76
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Ship Raspbery Pi base DTs
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Dec 19 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181218-1.1ea8781
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Updates to config.txt, use eXtended firmware by default
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Dec  5 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181204-1.afd824a
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Nov 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181105-1.55e5912
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Oct 12 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20181009-1.fbad640
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Sep 23 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180921-1.404dfef
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Sep  3 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-3.ec3f856
Pablo Greco d00ad8
- Minor fixup
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sat Sep  1 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-2.ec3f856
Pablo Greco d00ad8
- Tweak migration process
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Aug 31 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180829-1.ec3f856
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Change locations of firmware
Pablo Greco d00ad8
- Migration bits for ARMv7
Pablo Greco d00ad8
- Prepare for supporting HATs/overlays using config.txt
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Aug 13 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180810-1.953a339
Pablo Greco d00ad8
- Latest upstream firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180629-2.93683f1
Pablo Greco d00ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Jul  1 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180629-1.93683f1
Pablo Greco d00ad8
- Latest upstream firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Apr 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180525-1.784fe6c
Pablo Greco d00ad8
- Latest upstream firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Apr 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180416-1.a154f21
Pablo Greco d00ad8
- Firmware fix for some Raspberry Pi 3+ issues
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Apr 12 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180409-1.d46b40b
Pablo Greco d00ad8
- Upstream firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Apr  8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180406-1.3aa8060
Pablo Greco d00ad8
- Upstream firmware fixes
Pablo Greco d00ad8
- Ship DT overlays
Pablo Greco d00ad8
- Update config.txt
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Mar 20 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180316-1.25cf637
Pablo Greco d00ad8
- Upstream firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Mar 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180314-1.086a848
Pablo Greco d00ad8
- Add support for Raspberry Pi 3+ (Happy Pi day)
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Mar  8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180307-1.7fdcd00
Pablo Greco d00ad8
- Upstream firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Feb 25 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180209-1.b1a7f4a
Pablo Greco d00ad8
- Latest firmware, updated license text
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Jan  3 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20171201-1.9426e18
Pablo Greco d00ad8
- Latest firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Oct 15 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20171011-1.a88e126
Pablo Greco d00ad8
- Latest firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Sep 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170912-1.2067241
Pablo Greco d00ad8
- Update to 2067241 firmware with various fixes/improvements
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170703-3.5f54395
Pablo Greco d00ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170703-2.5f54395
Pablo Greco d00ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Jul 13 2017 Peter Robinson <pbrobinson@fedoraproject.org>
Pablo Greco d00ad8
- Allow OS rather than firmware control CEC
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Jul  3 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170703-1.5f54395
Pablo Greco d00ad8
- Update to 5f54395 firmware (upstream fix for serial baud rate regression)
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Jul  3 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170613-2.73f44c6
Pablo Greco d00ad8
- Move back to firmware 73f44c6 (20170515) to fix regresion on serial console
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Jun 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170613-1.7a661e0
Pablo Greco d00ad8
- Latest firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon May 15 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170504-1.284e48a
Pablo Greco d00ad8
- Enable DMA driver in initrd
Pablo Greco d00ad8
- Latest firmware
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Apr 19 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170404-2.b038854
Pablo Greco d00ad8
- Add config-64.txt for default 64 bit options for the RPi3
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Apr 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170404-1.b038854
Pablo Greco d00ad8
- Latest firmware, minor config tweaks
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Mar 26 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170324-1.76fc4dd
Pablo Greco d00ad8
- Drop bcm2835_dma from initrd, it's too unstable
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Mar 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170314-2.509beaa
Pablo Greco d00ad8
- Add bcm2835_dma to initrd list
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Mar 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170314-1.509beaa
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
- Transition mechanism for MMC changes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Feb  9 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170208-1.db5fd5e
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Feb  2 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170131-1.72b44d8
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Dec 28 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20161209-1.6d45dcf
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sat Oct 22 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20161020-1.a0e54e7
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
- Minor config tweaks
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sat Sep 24 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160913-2.c93fb48
Pablo Greco d00ad8
- Minor config tweaks
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Sep 14 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160913-1.c93fb48
Pablo Greco d00ad8
- Numerous config enhancements
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sat Aug 27 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160823-1.d0bc6ce
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Jul 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160712-1.6ab4d20
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon May 16 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160513-1.c17fa41
Pablo Greco d00ad8
- Config options for HW rev 3
Pablo Greco d00ad8
- Latest firmware fixes
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sat Apr 30 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160430-1.611d798
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Mar  7 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160307-1.a192a05
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Mar  2 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160229-1.9cd1c6c
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Build for aarch64
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Feb  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 20160201-1.cb2ffaa
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151219-2.1efc1ec
Pablo Greco d00ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Dec 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20151219-1.1efc1ec
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Oct  5 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20151004-1.b06b317
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Aug 28 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150824-1.c6ae1d6
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Jul 24 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150723-1.43c4847
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Tue Jun 30 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150630-1.89881b5
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Wed Jun 24 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150623-1.856e2e1
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
Pablo Greco d00ad8
* Sun Jun 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150619-1.8b9d7b8
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- update config.txt for default kernel name
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Jun 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150617-2.fc6c989
Pablo Greco d00ad8
- Add cmdline.txt, update config.txt
Pablo Greco d00ad8
Pablo Greco d00ad8
* Fri Jun 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150617-1.fc6c989
Pablo Greco d00ad8
- Latest firmware update
Pablo Greco d00ad8
- Add default config.txt
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Jun 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-3.37600d5
Pablo Greco d00ad8
- Fix license field
Pablo Greco d00ad8
Pablo Greco d00ad8
* Thu Jun 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-2.37600d5
Pablo Greco d00ad8
- Updates for review
Pablo Greco d00ad8
Pablo Greco d00ad8
* Mon Jun 15 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150615-1.37600d5
Pablo Greco d00ad8
- Initial version