update to 5.4.51.20200902 [release 5.4.51.20200902-1mamba;Thu Oct 01 2020]
This commit is contained in:
parent
5556bafd8e
commit
90910dd10e
@ -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.
|
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 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.
|
||||||
|
|
||||||
|
@ -18,44 +18,17 @@
|
|||||||
%define kernel_majver %(echo %version | cut -d. -f1-2)
|
%define kernel_majver %(echo %version | cut -d. -f1-2)
|
||||||
%define gitdirver 1.%(echo %version | cut -d. -f4)
|
%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 short kernel target name for Lilo
|
||||||
%define KERNEL_TARGET_SHORT %{KERNEL_TARGET}
|
%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"
|
%if "%{_target_cpu}" == "arm"
|
||||||
%define KIMAGE arch/arm/boot/zImage
|
%define KIMAGE arch/arm/boot/zImage
|
||||||
%define KIMAGE_DEST zImage
|
%define KIMAGE_DEST kernel
|
||||||
%define DEPMOD /sbin/depmod
|
%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}
|
%define target_cpu %{_target_cpu}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -63,7 +36,7 @@
|
|||||||
%define _use_internal_dependency_generator 1
|
%define _use_internal_dependency_generator 1
|
||||||
|
|
||||||
Name: kernel-rpi
|
Name: kernel-rpi
|
||||||
Version: 5.4.51.20200819
|
Version: 5.4.51.20200902
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI
|
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
@ -207,6 +180,7 @@ Firmware files used by the Linux Kernel.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n linux-%{version}
|
%setup -q -n linux-%{version}
|
||||||
#-D -T
|
#-D -T
|
||||||
|
#:<< _EOF
|
||||||
%if "%{?KERNEL_TARGET}" == ""
|
%if "%{?KERNEL_TARGET}" == ""
|
||||||
echo "No target specified, aborting."
|
echo "No target specified, aborting."
|
||||||
exit 1
|
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}
|
(cd %{buildroot}/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}
|
||||||
rm -f build && ln -sf /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET} build )
|
rm -f build && ln -sf /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET} build )
|
||||||
|
|
||||||
cp %{KIMAGE} %{buildroot}/boot/%{KIMAGE_DEST}-%{kernel_ver}-%{?KERNEL_TARGET}
|
%if %{_target_cpu} == arm
|
||||||
cp System.map %{buildroot}/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
|
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
|
# install dtbs
|
||||||
#cp arch/arm/boot/dts/*.dtb %{buildroot}/boot/
|
#cp arch/arm/boot/dts/*.dtb %{buildroot}/boot/
|
||||||
@ -415,8 +397,8 @@ exit 0
|
|||||||
|
|
||||||
%files -n kernel-%{KERNEL_TARGET}
|
%files -n kernel-%{KERNEL_TARGET}
|
||||||
%defattr (-, root, root)
|
%defattr (-, root, root)
|
||||||
/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
|
#/boot/System.map-%{kernel_ver}-%{?KERNEL_TARGET}
|
||||||
/boot/%{KIMAGE_DEST}-%{kernel_ver}-%{?KERNEL_TARGET}
|
/boot/kernel*.img
|
||||||
|
|
||||||
#/boot/*.dtb*
|
#/boot/*.dtb*
|
||||||
#/boot/overlays/*.dtb*
|
#/boot/overlays/*.dtb*
|
||||||
@ -486,6 +468,9 @@ exit 0
|
|||||||
#/lib/firmware/*
|
#/lib/firmware/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Sep 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.51.20200819-1mamba
|
||||||
- update to 5.4.51.20200819
|
- update to 5.4.51.20200819
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user