2021-01-25 11:13:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package raspberrypi-eeprom
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: raspberrypi-eeprom
|
2021-01-25 19:25:16 +01:00
|
|
|
Version: 2020.09.03138a1.63~g3ae6694
|
2021-01-25 11:13:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Raspberry Pi 4 EEPROM firmware
|
|
|
|
License: SUSE-Firmware
|
|
|
|
Group: System/Boot
|
|
|
|
URL: https://github.com/raspberrypi/rpi-eeprom
|
2021-01-25 19:25:16 +01:00
|
|
|
Source0: %{name}-%{version}.tar
|
2021-01-25 11:13:01 +01:00
|
|
|
Patch0: add-suse-config.patch
|
|
|
|
Patch1: dont-use-env.patch
|
|
|
|
Provides: rpi-eeprom
|
|
|
|
Supplements: modalias(of:N*T*Cbrcm,bcm2711*C*)
|
|
|
|
Requires: raspberrypi-firmware >= 2021.01.21
|
|
|
|
Requires: raspberrypi-firmware-dt >= 2020.12.07
|
|
|
|
Provides: rpi-eeprom-config = %{version}
|
|
|
|
Obsoletes: rpi-eeprom-config < %{version}
|
|
|
|
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
|
|
|
|
First stage bootloader packages for Raspberry Pi 4
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%package firmware
|
|
|
|
Summary: Raspberry Pi 4 EEPROM firmware blobs
|
|
|
|
License: SUSE-Firmware
|
|
|
|
Group: System/Boot
|
|
|
|
Provides: raspberrypi-firmware-eeprom = %{version}
|
|
|
|
Obsoletes: raspberrypi-firmware-eeprom < %{version}
|
|
|
|
Requires: raspberrypi-eeprom
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
|
|
|
%description firmware
|
|
|
|
First stage bootloader fimware blobs for Raspberry Pi 4
|
|
|
|
|
|
|
|
%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}
|
|
|
|
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
|
|
|
|
|
2021-01-25 13:03:29 +01:00
|
|
|
mkdir -p %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
mv firmware/beta %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
mv firmware/critical %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
mv firmware/stable %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
cp -a firmware/latest %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
cp -a firmware/default %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
|
|
|
%fdupes -s %{buildroot}/%{_firmwaredir}/raspberrypi/bootloader
|
2021-01-25 11:13:01 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/rpi-eeprom-config
|
|
|
|
%{_bindir}/rpi-eeprom-update
|
|
|
|
%config /etc/default/rpi-eeprom-update
|
|
|
|
|
|
|
|
%files firmware
|
2021-01-25 13:03:29 +01:00
|
|
|
%{_firmwaredir}
|
|
|
|
%{_firmwaredir}/raspberrypi
|
|
|
|
%{_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
|