2024-01-05 17:28:56 +01:00
|
|
|
%define pkgver %(echo %version | tr _ -)
|
2024-01-05 17:28:56 +01:00
|
|
|
Name: rpi-eeprom
|
2024-01-05 17:28:56 +01:00
|
|
|
Version: 2020.09.03_138a1
|
2024-01-05 17:28:56 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Raspberry Pi4 boot EEPROM updater
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://rpf.io/eeprom
|
2024-01-05 17:28:56 +01:00
|
|
|
Source: https://github.com/raspberrypi/rpi-eeprom.git/v%{pkgver}/rpi-eeprom-%{version}.tar.bz2
|
2024-01-05 17:28:56 +01:00
|
|
|
Patch0: rpi-eeprom-0.20200209git-rpi-eprom-update.patch
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 17:28:56 +01:00
|
|
|
ExclusiveArch: arm aarch64
|
2024-01-05 17:28:56 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Raspberry Pi4 boot EEPROM updater.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 17:28:56 +01:00
|
|
|
## Patch /opt/vc/bin into PATH in script due to install location of raspberrypi-firmware
|
2024-01-05 17:28:56 +01:00
|
|
|
%patch0 -p0
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
install -D -m 755 firmware/vl805 %{buildroot}%{_bindir}/vl805
|
|
|
|
install -D -m 755 rpi-eeprom-config %{buildroot}%{_bindir}/rpi-eeprom-config
|
|
|
|
install -D -m 755 rpi-eeprom-update %{buildroot}%{_bindir}/rpi-eeprom-update
|
|
|
|
|
|
|
|
# Copy all the firmware and files to the right place
|
2024-01-05 17:28:56 +01:00
|
|
|
install -d -m 755 %{buildroot}/lib/firmware/raspberrypi/bootloader
|
|
|
|
cp -a firmware/* %{buildroot}/lib/firmware/raspberrypi/bootloader
|
2024-01-05 17:28:56 +01:00
|
|
|
|
|
|
|
# Copy the override in place
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/default
|
|
|
|
install -D -m 644 rpi-eeprom-update-default %{buildroot}%{_sysconfdir}/default/rpi-eeprom-update
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/rpi-eeprom-update
|
|
|
|
%{_bindir}/rpi-eeprom-config
|
|
|
|
%{_bindir}/rpi-eeprom-update
|
|
|
|
%{_bindir}/vl805
|
2024-01-05 17:28:56 +01:00
|
|
|
%dir /lib/firmware/raspberrypi
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader
|
|
|
|
/lib/firmware/raspberrypi/bootloader/release-notes.md
|
|
|
|
/lib/firmware/raspberrypi/bootloader/vl805
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/beta
|
|
|
|
/lib/firmware/raspberrypi/bootloader/beta/*.bin
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/critical
|
|
|
|
/lib/firmware/raspberrypi/bootloader/critical/*.bin
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/stable
|
|
|
|
/lib/firmware/raspberrypi/bootloader/stable/*.bin
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/old
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/old/beta
|
|
|
|
/lib/firmware/raspberrypi/bootloader/old/beta/*.bin
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/old/critical
|
|
|
|
/lib/firmware/raspberrypi/bootloader/old/critical/*.bin
|
|
|
|
%dir /lib/firmware/raspberrypi/bootloader/old/stable
|
|
|
|
/lib/firmware/raspberrypi/bootloader/old/stable/*.bin
|
2024-01-05 17:28:56 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:28:56 +01:00
|
|
|
* Wed Mar 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.09.03_138a1-1mamba
|
|
|
|
- update to 2020.09.03_138a1
|
|
|
|
|
2024-01-05 17:28:56 +01:00
|
|
|
* Sun Feb 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20200209git-1mamba
|
|
|
|
- package created using the webbuild interface
|