2021-01-25 11:13:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package raspberrypi-eeprom
|
|
|
|
#
|
2023-01-23 13:25:27 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-01-25 11:13:01 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2021-02-19 20:46:40 +01:00
|
|
|
|
2021-01-27 13:25:13 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
%define _firmwaredir /lib/firmware
|
|
|
|
%endif
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
Name: raspberrypi-eeprom
|
2023-11-24 08:22:50 +01:00
|
|
|
Version: 2023.10.30
|
2021-01-25 11:13:01 +01:00
|
|
|
Release: 0
|
2023-11-24 08:22:50 +01:00
|
|
|
Summary: Raspberry Pi 4 and Pi 5 EEPROM firmware
|
2021-01-25 11:13:01 +01:00
|
|
|
License: SUSE-Firmware
|
|
|
|
Group: System/Boot
|
|
|
|
URL: https://github.com/raspberrypi/rpi-eeprom
|
2021-01-25 19:57:54 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2021-01-25 11:13:01 +01:00
|
|
|
Patch0: add-suse-config.patch
|
|
|
|
Patch1: dont-use-env.patch
|
2021-02-19 20:46:40 +01:00
|
|
|
Patch2: rpi-eeprom-update-Use-tr-instead-of-strings.patch
|
2021-01-25 11:13:01 +01:00
|
|
|
Provides: rpi-eeprom
|
2021-02-04 15:32:36 +01:00
|
|
|
Supplements: modalias(of:N*T*Cbrcm%2Cbcm2711*C*)
|
2021-07-12 08:42:27 +02:00
|
|
|
Requires: raspberrypi-firmware >= 2021.03.03
|
|
|
|
Requires: raspberrypi-firmware-dt >= 2021.03.03
|
2021-01-25 11:13:01 +01:00
|
|
|
Provides: rpi-eeprom-config = %{version}
|
|
|
|
Obsoletes: rpi-eeprom-config < %{version}
|
2021-02-19 20:46:40 +01:00
|
|
|
Requires: pciutils
|
2021-01-25 11:13:01 +01:00
|
|
|
Requires: raspberrypi-eeprom-firmware
|
2021-01-25 15:09:12 +01:00
|
|
|
BuildArch: noarch
|
2021-01-25 11:13:01 +01:00
|
|
|
|
2021-01-25 15:09:12 +01:00
|
|
|
%description
|
2023-11-24 08:22:50 +01:00
|
|
|
First stage bootloader packages for Raspberry Pi 4 and Pi 5
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%package firmware
|
|
|
|
Summary: Raspberry Pi 4 EEPROM firmware blobs
|
|
|
|
Group: System/Boot
|
|
|
|
Provides: raspberrypi-firmware-eeprom = %{version}
|
|
|
|
Obsoletes: raspberrypi-firmware-eeprom < %{version}
|
|
|
|
Requires: raspberrypi-eeprom
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
|
|
|
%description firmware
|
2023-11-24 08:22:50 +01:00
|
|
|
First stage bootloader fimware blobs for Raspberry Pi 4 and Pi 5
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%prep
|
2021-01-25 15:09:12 +01:00
|
|
|
%autosetup -p1
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 rpi-eeprom-config %{buildroot}%{_bindir}
|
2022-03-08 14:53:36 +01:00
|
|
|
install -m 0755 rpi-eeprom-digest %{buildroot}%{_bindir}
|
2021-01-25 11:13:01 +01:00
|
|
|
install -m 0755 rpi-eeprom-update %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}/etc/default
|
|
|
|
install -m 644 rpi-eeprom-update-default %{buildroot}/etc/default/rpi-eeprom-update
|
|
|
|
|
2023-11-24 08:22:50 +01:00
|
|
|
for model in 2711 2712; do
|
|
|
|
mkdir -p %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
mv firmware-$model/beta %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
mv firmware-$model/critical %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
mv firmware-$model/stable %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
cp -a firmware-$model/latest %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
cp -a firmware-$model/default %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
%fdupes -s %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader-$model
|
|
|
|
done
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/rpi-eeprom-config
|
2022-03-08 14:53:36 +01:00
|
|
|
%{_bindir}/rpi-eeprom-digest
|
2021-01-25 11:13:01 +01:00
|
|
|
%{_bindir}/rpi-eeprom-update
|
|
|
|
%config /etc/default/rpi-eeprom-update
|
|
|
|
|
|
|
|
%files firmware
|
2021-01-25 13:03:29 +01:00
|
|
|
%{_firmwaredir}
|
|
|
|
%{_firmwaredir}/raspberrypi
|
2023-11-24 08:22:50 +01:00
|
|
|
%{_firmwaredir}/raspberrypi/bootloader-*/beta
|
|
|
|
%{_firmwaredir}/raspberrypi/bootloader-*/critical
|
|
|
|
%{_firmwaredir}/raspberrypi/bootloader-*/stable
|
|
|
|
%{_firmwaredir}/raspberrypi/bootloader-*/latest
|
|
|
|
%{_firmwaredir}/raspberrypi/bootloader-*/default
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%changelog
|