update to 5.15.30.20220328 [release 5.15.30.20220328-1mamba;Thu Mar 31 2022]

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

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
# openmamba kernel specfile for embedded kernels
# Copyright (C) 2011-2021 by Silvan Calarco
# Copyright (C) 2011-2022 by Silvan Calarco
#
# To build a specific target:
#
@ -44,7 +44,7 @@
%define _use_internal_dependency_generator 1
Name: kernel-rpi
Version: 5.10.11.20210201
Version: 5.15.30.20220328
Release: 1mamba
Summary: The Linux Kernel, the operating system core itself for the RaspberryPI
Group: System/Kernel and Hardware
@ -52,7 +52,7 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/raspberrypi/linux
Source0: https://github.com/raspberrypi/linux/archive/raspberrypi-kernel_%{gitdirver}-1.tar.gz
Source0: https://github.com/raspberrypi/linux/archive/%{gitdirver}.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
@ -61,8 +61,12 @@ Source102: kernel-rpi-v7l-%{kernel_majver}-arm-config
Source103: kernel-rpi-v8-%{kernel_majver}-aarch64-config
License: GPL
## AUTOBUILDREQ-BEGIN
#ld-linux.so.3(GLIBC_2.4): .so link not found
#ld-linux.so.3: .so link not found
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
BuildRequires: libperl
BuildRequires: libyaml-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: /bin/bash
@ -91,7 +95,7 @@ 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 < 5.10.11.20210201
Requires: kernel-rpi-dtbs = %{?epoch:%epoch:}%{version}-%{release}
Requires: kernel-rpi-dtbs >= %{?epoch:%epoch:}%{version}-%{release}
%if "%{KERNEL_TARGET}" == "rpi-v7"
Provides: kernel-rpi2
Obsoletes: kernel-rpi2 < 5.10.11.20210201
@ -172,12 +176,14 @@ Firmware files used by the Linux Kernel.
%package -n kernel-rpi-dtbs
Group: System/Kernel and Hardware
Summary: Device Tree blobs provided with %{name}
Provides: kernel-rpi-dtbs = 5.10.11.20210201
Obsoletes: kernel-rpi-dtbs = 5.10.11.20210201
%description -n kernel-rpi-dtbs
Device Tree blobs provided with %{name}.
%prep
%setup -q -n linux-raspberrypi-kernel_%{gitdirver}-1
%setup -q -n linux-%{gitdirver}
#-D -T
#:<< _EOF
%if "%{?KERNEL_TARGET}" == ""
@ -254,7 +260,6 @@ rm -f build && ln -sf /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET} build )
esac
%endif
cp %{KIMAGE} %{buildroot}/boot/${kimage_dest}
cp System.map %{buildroot}/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/System.map
# install dtbs
@ -265,15 +270,18 @@ 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-raspberrypi-kernel_%{gitdirver}-1 %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
cp -R %{_builddir}/linux-%{gitdirver} %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
# Install kernel image
cp %{KIMAGE} %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/${kimage_dest}
cd %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
ARCH=%{target_cpu} make mrproper
%if "%{_target_cpu}" == "arm"
case %{?KERNEL_TARGET} in
rpi) kernel_cfg=%{SOURCE101} ;;
rpi-v7) kernel_cfg=%{SOURCE100} ;;
rpi-v7l) kernel_cfg=%{SOURCE102} ;;
rpi-v7) kernel_cfg=%{SOURCE100} ;;
rpi-v7l) kernel_cfg=%{SOURCE102} ;;
esac
%endif
@ -284,7 +292,7 @@ ARCH=%{target_cpu} make mrproper
%endif
cp $kernel_cfg %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/.config
cp %{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/Module.symvers %{buildroot}/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}
cp %{_builddir}/linux-%{gitdirver}/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 +330,14 @@ esac
find $splitdirs -name *.h -exec \
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/"{} >> \
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-headers.files \;
%{_builddir}/linux-%{gitdirver}/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-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files \;
%{_builddir}/linux-%{gitdirver}/kernel-source.files \;
%else
touch %{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files
touch %{_builddir}/linux-%{gitdirver}/kernel-source.files
find $splitdirs -not -type d -a -not -name *.h -exec rm -f {} \;
rm -rf firmware samples virt
%endif
@ -340,13 +348,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-raspberrypi-kernel_%{gitdirver}-1/kernel-source.files
%{_builddir}/linux-%{gitdirver}/kernel-source.files
%else
rm -rf arch/$i
%endif
done
echo "%{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/arch/$headers_arch" >> \
%{_builddir}/linux-raspberrypi-kernel_%{gitdirver}-1/kernel-headers.files
%{_builddir}/linux-%{gitdirver}/kernel-headers.files
# install sanitised headers used by glibc
ARCH=%{target_cpu} make headers_install \
@ -372,15 +380,23 @@ rm -rf %{buildroot}%{_prefix}/src/linux-%{kernel_ver}-%{KERNEL_TARGET}/.github
if [ $1 -ge 1 ]; then
/sbin/depmod -A -F /lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/System.map \
%{kernel_ver}-%{?KERNEL_TARGET} &>/dev/null
#mkinitrd -f /boot/initramfs-%{kernel_ver}-%{?KERNEL_TARGET}.img %{kernel_ver}-%{?KERNEL_TARGET}
fi
:
%postun -n kernel-%{KERNEL_TARGET}
# erase this package
if [ $1 -eq 0 ]; then
[ -f /boot/%{KIMAGE_DEST}-%{kernel_ver}-%{?KERNEL_TARGET} ] ||
rm -f /boot/initramfs-%{kernel_ver}-%{?KERNEL_TARGET}.img
%if "%{_target_cpu}" == "arm"
case %{?KERNEL_TARGET} in
rpi) kimage_dest="kernel.img"; initramfs_dest="initramfs.gz" ;;
rpi-v7) kimage_dest="kernel7.img"; initramfs_dest="initramfs7.gz" ;;
rpi-v7l) kimage_dest="kernel7l.img"; initramfs_dest="initramfs7l.gz" ;;
esac
%endif
%if "%{_target_cpu}" == "aarch64"
case %{?KERNEL_TARGET} in
rpi-v8) kimage_dest="kernel8.img; initramfs_dest="initramfs8.gz"" ;;
esac
%endif
# Install kernel image into /boot
cp /usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/${kimage_dest} /boot/${kimage_dest}
[ -e /boot/${initramfs_dest} ] && mkinitrd -fH /boot/${initramfs_dest} %{kernel_ver}-%{?KERNEL_TARGET}
fi
:
@ -391,7 +407,7 @@ touch %{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/include/config/MARKER
%files -n kernel-%{KERNEL_TARGET}
%defattr (-, root, root)
/boot/kernel*.img
/usr/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/kernel*.img
%dir /lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}
/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/System.map
/lib/modules/%{kernel_ver}-%{?KERNEL_TARGET}/modules.builtin
@ -463,6 +479,9 @@ touch %{_prefix}/src/linux-%{kernel_ver}-%{?KERNEL_TARGET}/include/config/MARKER
#/lib/firmware/*
%changelog
* Thu Mar 31 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.30.20220328-1mamba
- update to 5.15.30.20220328
* Sun Feb 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.11.20210201-1mamba
- update to 5.10.11.20210201