Compare commits
2 Commits
2c56e03c67
...
d8da01df5d
Author | SHA1 | Date | |
---|---|---|---|
d8da01df5d | |||
621246d46c |
@ -5,7 +5,7 @@
|
||||
|
||||
Name: opi5-efi
|
||||
Version: 0.0.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
|
||||
License: GPL
|
||||
Provides: %{name}-%{version}
|
||||
@ -27,15 +27,19 @@ echo "Nothing to build"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/boot/efi
|
||||
cp %{SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd
|
||||
cp %{SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt
|
||||
mkdir -p $RPM_BUILD_ROOT/opt/opi5-efi
|
||||
cp %{SOURCE0} $RPM_BUILD_ROOT/opt/opi5-efi/boot.cmd
|
||||
cp %{SOURCE1} $RPM_BUILD_ROOT/opt/opi5-efi/uEnv.txt
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
set -xeuf -o pipefail
|
||||
|
||||
cp /opt/opi5-efi/boot.cmd $RPM_BUILD_ROOT/boot/efi/boot.cmd
|
||||
cp /opt/opi5-efi/uEnv.txt $RPM_BUILD_ROOT/boot/efi/uEnv.txt
|
||||
|
||||
cp /boot/efi/boot.cmd /boot/efi/boot.cmd-%{full_ver}
|
||||
cp /boot/efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver}
|
||||
if [ -f /boot/.uname ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user