Initial creation

This commit is contained in:
Koichiro Iwao 2025-02-13 18:19:36 +09:00
commit bdfda19e98
4 changed files with 59 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/v2025.01.22-2712.tar.gz

1
.rpi-eeprom.metadata Normal file
View File

@ -0,0 +1 @@
5954e38fdb30d7c7c3fa2b5cfe49be23310087bb SOURCES/v2025.01.22-2712.tar.gz

0
SOURCES/.keep Normal file
View File

57
SPECS/rpi-eeprom.spec Normal file
View File

@ -0,0 +1,57 @@
%global gh_tag v%{version}-2712
%global srcdir %{name}-%{version}-2712
Name: rpi-eeprom
Version: 2025.01.22
Release: 1%{?dist}
Summary: Raspberry Pi 4/5 boot EEPROM updater (experimental)
BuildArch: noarch
ExclusiveArch: aarch64
License: BSD-3-Clause AND MIT AND Custom
URL: https://github.com/raspberrypi/rpi-eeprom
Source0: https://github.com/raspberrypi/rpi-eeprom/archive/refs/tags/%{gh_tag}.tar.gz
#Requires:
%description
Raspberry Pi 4/5 boot EEPROM updater and configuration tool to edit the
bootloader configuration such as boot order and more.
%prep
%setup -n %{srcdir}
%build
# nothing to build
%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d %{buildroot}%{_bindir}
%{__install} -m 555 rpi-eeprom-config %{buildroot}%{_bindir}
%{__install} -m 555 rpi-eeprom-digest %{buildroot}%{_bindir}
%{__install} -m 555 rpi-eeprom-update %{buildroot}%{_bindir}
# These tools are not installed due to lack of pycryptdome
#%{__install} -m 555 tools/rpi-bootloader-key-convert %{buildroot}%{_bindir}
#%{__install} -m 555 tools/rpi-otp-private-key %{buildroot}%{_bindir}
#%{__install} -m 555 tools/rpi-sign-bootcode %{buildroot}%{_bindir}
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712
%{__cp} -r firmware-2711/default %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711/
%{__cp} -r firmware-2711/latest %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711/
%{__cp} -r firmware-2712/default %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712/
%{__cp} -r firmware-2712/latest %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712/
%files
%license LICENSE
%doc README.md releases.md
%dir %{_prefix}/lib/firmware/raspberrypi
%{_bindir}/rpi-eeprom-config
%{_bindir}/rpi-eeprom-digest
%{_bindir}/rpi-eeprom-update
%{_prefix}/lib/firmware/raspberrypi/*
%changelog
* Thu Feb 13 2025 Koichiro Iwao <meta@almalinux.org> - 2025.01.22-1
- Initial creation