update to 5.10.11.20210201 [release 5.10.11.20210201-1mamba;Sun Feb 21 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 01:27:47 +01:00
parent c41bd0d00a
commit ee3ef48d4f
5 changed files with 3371 additions and 1548 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@
%define KERNEL_TARGET rpi-v8
%else
%if "%{?KERNEL_TARGET}" == ""
%define KERNEL_TARGET rpi-v7l
%define KERNEL_TARGET rpi-v7
%endif
%endif
@ -44,15 +44,16 @@
%define _use_internal_dependency_generator 1
Name: kernel-rpi
Version: 5.4.51.20200902
Release: 2mamba
Version: 5.10.11.20210201
Release: 1mamba
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/raspberrypi/linux
Source0: git://github.com/raspberrypi/linux.git/raspberrypi-kernel_%{gitdirver}-1/linux-%{version}.tar.bz2
Source0: https://github.com/raspberrypi/linux/archive/raspberrypi-kernel_%{gitdirver}-1.tar.gz
#Source0: git://github.com/raspberrypi/linux.git/raspberrypi-kernel_%{gitdirver}-1/linux-%{version}.tar.bz2
Source20: kernel-rpi-logo.png
Source100: %{name}-v7-%{kernel_majver}-arm-config
Source101: %{name}-%{kernel_majver}-arm-config
@ -69,13 +70,12 @@ BuildRequires: /bin/sh
BuildRequires: /usr/bin/perl
BuildRequires: kmod
Provides: kernel-%{KERNEL_TARGET}-modules
Obsoletes: kernel-%{KERNEL_TARGET}-modules
Obsoletes: kernel-%{KERNEL_TARGET}-modules < 5.10.11.20210201
Provides: kernel
Provides: kernelmodules
Requires(post): dracut
Requires: linux_firmware
Requires: raspberrypi-firmware
BuildRoot: %{_tmppath}/%{name}-build
%description
The Linux Kernel, the operating system core itself for the Raspberry PI.
@ -90,12 +90,13 @@ This kernel was build for %{_target_cpu} architecture and the following target:
Group: Development/Kernel
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI (%{KERNEL_TARGET})
Provides: kernel-%{KERNEL_TARGET}-modules
Obsoletes: kernel-%{KERNEL_TARGET}-modules
Obsoletes: kernel-%{KERNEL_TARGET}-modules < 5.10.11.20210201
Requires: kernel-rpi-dtbs = %{?epoch:%epoch:}%{version}-%{release}
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2
Obsoletes: kernel-rpi2
Obsoletes: kernel-rpi2 < 5.10.11.20210201
Provides: kernel-rpi2-modules
Obsoletes: kernel-rpi2-modules
Obsoletes: kernel-rpi2-modules < 5.10.11.20210201
%endif
Provides: kernel
Provides: kernelmodules
@ -115,11 +116,11 @@ This kernel was build for %{_target_cpu} architecture and the following target:
%package -n kernel-%{KERNEL_TARGET}-source
Group: Development/Kernel
Summary: The source code for the Linux kernel
Requires: kernel-%{KERNEL_TARGET}-headers == %{version}-%{release}
Requires: kernel-%{KERNEL_TARGET}-headers = %{?epoch:%epoch:}%{version}-%{release}
Provides: kernelsource
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2-source
Obsoletes: kernel-rpi2-source
Obsoletes: kernel-rpi2-source < 5.10.11.20210201
%endif
%description -n kernel-%{KERNEL_TARGET}-source
@ -133,7 +134,7 @@ Summary: Headers, scripts, configuration and Makefile for the linux kernel
Provides: kernelheaders
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2-headers
Obsoletes: kernel-rpi2-headers
Obsoletes: kernel-rpi2-headers < 5.10.11.20210201
%endif
%description -n kernel-%{KERNEL_TARGET}-headers
@ -147,7 +148,7 @@ Summary: Sanitised kernel headers used for glibc build
Provides: kernelsanitisedheaders
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2-headers-sanitised
Obsoletes: kernel-rpi2-headers-sanitised
Obsoletes: kernel-rpi2-headers-sanitised < 5.10.11.20210201
%endif
%description -n kernel-%{KERNEL_TARGET}-headers-sanitised
@ -157,27 +158,26 @@ This kernel sanitised headers are configured for %{TARGET_CPU} architecture and
%package -n kernel-%{KERNEL_TARGET}-firmware
Group: System/Kernel and Hardware
Summary: Firmware files used by %{name}
Requires: kernel-%{KERNEL_TARGET} == %{version}-%{release}
Requires: kernel-%{KERNEL_TARGET} = %{?epoch:%epoch:}%{version}-%{release}
Provides: kernelfirmware = %{version}
Provides: linux_firmware
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2-firmware
Obsoletes: kernel-rpi2-firmware
Obsoletes: kernel-rpi2-firmware < 5.10.11.20210201
%endif
%description -n kernel-%{KERNEL_TARGET}-firmware
Firmware files used by the Linux Kernel.
%package -n kernel-%{KERNEL_TARGET}-dtbs
%package -n kernel-rpi-dtbs
Group: System/Kernel and Hardware
Summary: Device Tree blobs provided with %{name}
Requires: kernel-%{KERNEL_TARGET} == %{version}-%{release}
%description -n kernel-%{KERNEL_TARGET}-dtbs
%description -n kernel-rpi-dtbs
Device Tree blobs provided with %{name}.
%prep
%setup -q -n linux-%{version}
%setup -q -n linux-raspberrypi-kernel_%{gitdirver}-1
#-D -T
#:<< _EOF
%if "%{?KERNEL_TARGET}" == ""
@ -196,14 +196,14 @@ make mrproper
# create build dirs for each kernel
# and copy proper configuration
%if %{_target_cpu} == arm
%if "%{_target_cpu}" == "arm"
case %{?KERNEL_TARGET} in
rpi) kernel_cfg=%{SOURCE101} ;;
rpi-v7) kernel_cfg=%{SOURCE100} ;;
rpi-v7l) kernel_cfg=%{SOURCE102} ;;
esac
%endif
%if %{_target_cpu} == aarch64
%if "%{_target_cpu}" == "aarch64"
case %{?KERNEL_TARGET} in
rpi-v8) kernel_cfg=%{SOURCE103} ;;
esac
@ -240,7 +240,7 @@ 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 )
%if %{_target_cpu} == arm
%if "%{_target_cpu}" == "arm"
case %{?KERNEL_TARGET} in
rpi) kimage_dest="kernel.img" ;;
rpi-v7) kimage_dest="kernel7.img" ;;
@ -248,7 +248,7 @@ rm -f build && ln -sf /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET} build )
esac
%endif
%if %{_target_cpu} == aarch64
%if "%{_target_cpu}" == "aarch64"
case %{?KERNEL_TARGET} in
rpi-v8) kimage_dest="kernel8.img" ;;
esac
@ -265,11 +265,11 @@ cp arch/arm/boot/dts/overlays/*.dtb* %{buildroot}/boot/overlays/
# recreate kernel sources
[ -e kernel-headers.files ] && rm -f kernel-headers.files
[ -e kernel-source.files ] && rm -f kernel-source.files
cp -R %{_builddir}/linux-%{version} %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
cp -R %{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1 %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
cd %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
ARCH=%{target_cpu} make mrproper
%if %{_target_cpu} == arm
%if "%{_target_cpu}" == "arm"
case %{?KERNEL_TARGET} in
rpi) kernel_cfg=%{SOURCE101} ;;
rpi-v7) kernel_cfg=%{SOURCE100} ;;
@ -277,14 +277,14 @@ ARCH=%{target_cpu} make mrproper
esac
%endif
%if %{_target_cpu} == aarch64
%if "%{_target_cpu}" == "aarch64"
case %{?KERNEL_TARGET} in
rpi-v8) kernel_cfg=%{SOURCE103} ;;
esac
%endif
cp $kernel_cfg %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/.config
cp %{_builddir}/linux-%{version}/Module.symvers %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
cp %{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/Module.symvers %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
ARCH=%{target_cpu} make oldconfig
#cp Makefile Makefile.orig
#sed -i "s/\(EXTRAVERSION =.*\)/\1-%{?KERNEL_TARGET}/" Makefile
@ -322,14 +322,14 @@ esac
find $splitdirs -name *.h -exec \
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/"{} >> \
%{_builddir}/linux-%{version}/kernel-headers.files \;
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-headers.files \;
%if "%{with_full_source}" == "1"
find $splitdirs -not -type d -a -not -name *.h -exec \
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/"{} >> \
%{_builddir}/linux-%{version}/kernel-source.files \;
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files \;
%else
touch %{_builddir}/linux-%{version}/kernel-source.files
touch %{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files
find $splitdirs -not -type d -a -not -name *.h -exec rm -f {} \;
rm -rf firmware samples virt
%endif
@ -340,13 +340,13 @@ for i in $archs; do
[ "$i" == "$headers_arch" ] || \
%if "%{with_full_source}" == "1"
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/arch/$i" >> \
%{_builddir}/linux-%{version}/kernel-source.files
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files
%else
rm -rf arch/$i
%endif
done
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/arch/$headers_arch" >> \
%{_builddir}/linux-%{version}/kernel-headers.files
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-headers.files
# install sanitised headers used by glibc
ARCH=%{target_cpu} make headers_install \
@ -402,7 +402,7 @@ touch %{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/include/config/MARKER
%dir /lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/kernel
/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/kernel/*
%files -n kernel-%{KERNEL_TARGET}-dtbs
%files -n kernel-rpi-dtbs
%defattr (-, root, root)
#/boot/*.dtb*
/boot/overlays/*.dtb*
@ -411,13 +411,15 @@ touch %{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/include/config/MARKER
#-f kernel-source.files
%defattr(-,root,root)
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/.clang-format
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/.gitignore
%dir /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/LICENSES
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/LICENSES/*
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/arch/.gitignore
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/Documentation
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/certs
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/init
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/gen_initramfs_list.sh
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/default_cpio_list
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/gen_initramfs.sh
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/gen_init_cpio.c
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/initramfs_data*.S
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/usr/Kconfig
@ -461,6 +463,9 @@ touch %{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/include/config/MARKER
#/lib/firmware/*
%changelog
* Sun Feb 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.11.20210201-1mamba
- update to 5.10.11.20210201
* Sun Oct 04 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.51.20200902-2mamba
- merge kernel-*-modules into main kernel package; fix depmod after moving System.map away from /boot