add a .uname file for OPi5
This commit is contained in:
parent
3a2980c117
commit
9d148559a1
@ -111,6 +111,7 @@ mkdir -p $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/boot
|
||||
cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
|
||||
chmod 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
|
||||
echo "%{KVERREL}" > $RPM_BUILD_ROOT/boot/.uname-%{KVERREL}
|
||||
|
||||
# install DTBs
|
||||
%ifarch aarch64 || riscv64
|
||||
@ -161,6 +162,7 @@ if [ -x /sbin/installkernel -a -r /boot/vmlinuz-%{KVERREL} -a -r /boot/System.ma
|
||||
/sbin/installkernel %{KVERREL} /boot/.vmlinuz-%{KVERREL}-rpm /boot/.System.map-%{KVERREL}-rpm
|
||||
rm -f /boot/.vmlinuz-%{KVERREL}-rpm /boot/.System.map-%{KVERREL}-rpm
|
||||
fi
|
||||
ln /boot/.uname-%{KVERREL} /boot/.uname
|
||||
|
||||
%preun
|
||||
if [ -x /sbin/new-kernel-pkg ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user