%global debug_package %{nil} %define commit 35441eb8dfd922f3c283bb1a75b22412e3e06c54 %define gitshort %(c=%{commit}; echo ${c:0:7}) Name: bcm283x-firmware Version: 20250724 Release: %{gitshort}%autorelease Summary: Firmware to boot the Raspberry Pi # see LICENSE.broadcom License: Redistributable, no modification permitted URL: https://github.com/raspberrypi/ ExclusiveArch: %{arm} aarch64 BuildRequires: efi-filesystem BuildRequires: efi-srpm-macros Requires: efi-filesystem # Get sources with 'spectool -gf bcm283x-firmware.spec' Source0: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/bootcode.bin Source1: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup.dat Source2: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup4.dat Source3: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup4cd.dat Source4: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup4db.dat Source5: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup4x.dat Source6: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup_cd.dat Source7: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup_db.dat Source8: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/fixup_x.dat Source9: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start.elf Source10: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start4.elf Source11: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start4cd.elf Source12: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start4db.elf Source13: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start4x.elf Source14: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start_cd.elf Source15: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start_db.elf Source16: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/start_x.elf Source17: https://github.com/raspberrypi/firmware/raw/%{commit}/boot/LICENCE.broadcom %description Bootcode to start some models of Raspberry Pi %prep %autosetup -T -c %build %install mkdir -p %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE0} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE1} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE2} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE3} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE4} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE5} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE6} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE7} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE8} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE9} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE10} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE11} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE12} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE13} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE14} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE15} %{buildroot}%{efi_esp_root} install -m 0600 %{SOURCE16} %{buildroot}%{efi_esp_root} install %{SOURCE17} . %files %license LICENCE.broadcom %{efi_esp_root}/bootcode.bin %{efi_esp_root}/fixup.dat %{efi_esp_root}/fixup_*.dat %{efi_esp_root}/fixup4*.dat %{efi_esp_root}/start.elf %{efi_esp_root}/start_*.elf %{efi_esp_root}/start4*.elf %changelog %autochangelog