update to 5.4.51.20200902 [release 5.4.51.20200902-1mamba;Thu Oct 01 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 01:27:46 +01:00
parent 5556bafd8e
commit 90910dd10e
2 changed files with 22 additions and 37 deletions

View File

@ -5,5 +5,5 @@ The kernel package contains the Linux kernel (%{KIMAGE_DEST}), the operating sys
The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.
This is the source package used to build kernel for different architectures and targets.
This kernel was build for %{_target_cpu} architecture and the following target: .
This kernel was build for %{_target_cpu} architecture and the following target: rpi-v7l.

View File

@ -18,44 +18,17 @@
%define kernel_majver %(echo %version | cut -d. -f1-2)
%define gitdirver 1.%(echo %version | cut -d. -f4)
#% define KERNEL_TARGET rpi-v7l
%if "%{?KERNEL_TARGET}" == ""
%define KERNEL_TARGET rpi-v7l
%endif
# define short kernel target name for Lilo
%define KERNEL_TARGET_SHORT %{KERNEL_TARGET}
%if "%{_target_cpu}" == "i586"
%define KIMAGE arch/i386/boot/bzImage
%define KIMAGE_DEST vmlinuz
%define DEPMOD /sbin/depmod
%endif
%if "%{_target_cpu}" == "arm"
%define KIMAGE arch/arm/boot/zImage
%define KIMAGE_DEST zImage
%define KIMAGE_DEST kernel
%define DEPMOD /sbin/depmod
%endif
%if "%{_target_cpu}" == "x86_64"
%if "%{KERNEL_TARGET}" == "mamba-xen"
%define KIMAGE arch/x86_64/boot/vmlinuz
%define KIMAGE_DEST vmlinuz
%define DEPMOD /sbin/depmod
%else
%define KIMAGE arch/x86_64/boot/bzImage
%define KIMAGE_DEST vmlinuz
%define DEPMOD /sbin/depmod
%endif
%endif
%if "%{_target_cpu}" == "ppc"
%define KIMAGE vmlinux
%define KIMAGE_DEST vmlinux
%define DEPMOD /bin/true
%endif
%if "%{_target_cpu}" == "i586"
%define target_cpu i386
%else
%define target_cpu %{_target_cpu}
%endif
@ -63,7 +36,7 @@
%define _use_internal_dependency_generator 1
Name: kernel-rpi
Version: 5.4.51.20200819
Version: 5.4.51.20200902
Release: 1mamba
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI
Group: System/Kernel and Hardware
@ -207,6 +180,7 @@ Firmware files used by the Linux Kernel.
%prep
%setup -q -n linux-%{version}
#-D -T
#:<< _EOF
%if "%{?KERNEL_TARGET}" == ""
echo "No target specified, aborting."
exit 1
@ -262,8 +236,16 @@ install -m0644 modules.order %{buildroot}/lib/modules/%{kernel_ver}-%{?KERNEL_TA
(cd %{buildroot}/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}
rm -f build && ln -sf /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET} build )
cp %{KIMAGE} %{buildroot}/boot/%{KIMAGE_DEST}-%{kernel_ver}-%{?KERNEL_TARGET}
cp System.map %{buildroot}/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
%if %{_target_cpu} == arm
case %{?KERNEL_TARGET} in
rpi) kimage_dest="kernel.img" ;;
rpi-v7) kimage_dest="kernel7.img" ;;
rpi-v7l) kimage_dest="kernel7l.img" ;;
esac
%endif
cp %{KIMAGE} %{buildroot}/boot/${kimage_dest}
#cp System.map %{buildroot}/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
# install dtbs
#cp arch/arm/boot/dts/*.dtb %{buildroot}/boot/
@ -415,8 +397,8 @@ exit 0
%files -n kernel-%{KERNEL_TARGET}
%defattr (-, root, root)
/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
/boot/%{KIMAGE_DEST}-%{kernel_ver}-%{?KERNEL_TARGET}
#/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
/boot/kernel*.img
#/boot/*.dtb*
#/boot/overlays/*.dtb*
@ -486,6 +468,9 @@ exit 0
#/lib/firmware/*
%changelog
* Thu Oct 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.51.20200902-1mamba
- update to 5.4.51.20200902
* Wed Sep 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.51.20200819-1mamba
- update to 5.4.51.20200819