kernel: bump version 6.12.7 -> 6.12.33
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright 2018, 2020, 2021, 2023, 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||
# Copyright 2018, 2020, 2021, 2023, 2024, 2025 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
@@ -28,13 +28,13 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
||||
TMP=${TMP:-/tmp}
|
||||
PKG=$TMP/package-$PKGNAM
|
||||
|
||||
# If a $VERSION is not passed to this script, use the newest linux-*.tar.xz
|
||||
# If a $VERSION is not passed to this script, use the newest linux-*.tar.?z
|
||||
# found in this directory:
|
||||
VERSION=${VERSION:-$(/bin/ls -t linux-*.tar.?z | head -n 1 | rev | cut -f 3- -d . | rev | cut -f2- -d -)}
|
||||
if ! /bin/ls linux-*.tar.?z 1> /dev/null 2> /dev/null ; then
|
||||
echo "Error: kernel source not found. (/bin/ls linux-*.tar.?z)"
|
||||
else
|
||||
USINGVER="Using kernel source linux-${VERSION}.tar.xz."
|
||||
USINGVER="Using kernel source linux-${VERSION}.tar.?z."
|
||||
fi
|
||||
|
||||
# This function will revert or apply patches that are present here.
|
||||
@@ -226,7 +226,7 @@ echo "Untarring $CWD/linux-${VERSION}.tar.?z in $PKG/usr/src..."
|
||||
|
||||
# Use the version number found in the Makefile in the package name. This is not
|
||||
# always the same as the version in the source tarball's filename. For example,
|
||||
# linux-4.14.tar.xz will have 4.14.0 as the version in the Makefile:
|
||||
# linux-4.14.tar.?z will have 4.14.0 as the version in the Makefile:
|
||||
PACKAGE_VERSION=$(grep "^VERSION = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " Makefile | rev | cut -f 1 -d ' ' | rev)
|
||||
|
||||
if [ ! -r $KERNEL_CONFIGDIR/config-${PACKAGE_VERSION}${LOCALVERSION}${CONFIG_SUFFIX} ]; then
|
||||
@@ -264,11 +264,11 @@ echo "Untarring $CWD/linux-${VERSION}.tar.?z in $PKG/usr/src..."
|
||||
rm .*.d
|
||||
# Still some dotfiles laying around... probably fine though
|
||||
# Get rid of any ELF (non-eBPF) binaries that are not executable:
|
||||
find . -type f -perm 0644 | xargs file | grep ELF | grep -v eBPF | grep stripped | cut -f 1 -d : | while read elf_binary ; do
|
||||
find . -type f -perm 0644 ! -name "*.c" ! -name "*.h" ! -name "*.S" ! -name "*.dts*" ! -name "Makefile*" ! -name Kbuild ! -name "*config" ! -name ".git*" ! -name "*.rst" ! -name "*.txt" | xargs file | grep ELF | grep -v eBPF | grep stripped | cut -f 1 -d : | while read elf_binary ; do
|
||||
rm -f -v $elf_binary
|
||||
done
|
||||
# Strip any remaining binaries:
|
||||
find . | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . -type f ! -name "*.c" ! -name "*.h" ! -name "*.S" ! -name "*.dts*" ! -name "Makefile*" ! -name Kbuild ! -name "*config" ! -name ".git*" ! -name "*.rst" ! -name "*.txt" | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
) || exit 1
|
||||
|
||||
# Just staging the sources? Then leave.
|
||||
@@ -279,7 +279,7 @@ fi
|
||||
cd $PKG/usr/src/linux-*
|
||||
# Use the version number found in the Makefile in the package name. This is not
|
||||
# always the same as the version in the source tarball's filename. For example,
|
||||
# linux-4.14.tar.xz will have 4.14.0 as the version in the Makefile:
|
||||
# linux-4.14.tar.?z will have 4.14.0 as the version in the Makefile:
|
||||
PACKAGE_VERSION=$(grep "^VERSION = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " Makefile | rev | cut -f 1 -d ' ' | rev)
|
||||
|
||||
## Let's not do this because out-of-tree modules might not like it.
|
||||
|
||||
Reference in New Issue
Block a user