add a .uname file for OPi5

This commit is contained in:
Pratham Patel 2023-10-05 05:05:24 +05:30
parent 3a2980c117
commit 9d148559a1
No known key found for this signature in database

View File

@ -111,6 +111,7 @@ mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/boot mkdir -p $RPM_BUILD_ROOT/boot
cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL} cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
chmod 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL} chmod 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
echo "%{KVERREL}" > $RPM_BUILD_ROOT/boot/.uname-%{KVERREL}
# install DTBs # install DTBs
%ifarch aarch64 || riscv64 %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 /sbin/installkernel %{KVERREL} /boot/.vmlinuz-%{KVERREL}-rpm /boot/.System.map-%{KVERREL}-rpm
rm -f /boot/.vmlinuz-%{KVERREL}-rpm /boot/.System.map-%{KVERREL}-rpm rm -f /boot/.vmlinuz-%{KVERREL}-rpm /boot/.System.map-%{KVERREL}-rpm
fi fi
ln /boot/.uname-%{KVERREL} /boot/.uname
%preun %preun
if [ -x /sbin/new-kernel-pkg ]; then if [ -x /sbin/new-kernel-pkg ]; then