mises à jour kernel 6.14.8

This commit is contained in:
2025-05-31 13:57:25 +02:00
parent 9630c82d47
commit b4701c970f
4 changed files with 11536 additions and 47 deletions

View File

@ -1,55 +1,54 @@
#!/bin/bash
UPDATED="2025-05-15"
UPDATED="2025-05-31"
DISABLE=0 # disable options
ENABLE=1 # enable options
PATCHES=0 # enable/disable patch apply
UARCH=0 # apply more uarch patch
O3=1 # use -O3 vs -O2 (optimisation)
ARCH="native" # target architecture (uarch patch)
CONFIGCLOUD=0 # enable cloud 'from' config
CONFIGOLD=1 # enable old def config
CONFIGMOD=0 # enable all mod config
SCRATCH=0 # perform from scratch (remove preexisting content)
UNCOMPRESS=1 # perform uncompress if already exist
CLEANUP=1 # perform folder cleanup
SECURED=1 # enable/disable security
CLANG=0 # use Clang compiler (if not, use GCC)
TESTING=0 # add testing options
NVIDIA=1 # add support for nvidia
BARE=1 # compile kernel for bare-metal
DISABLE=0 # disable options
ENABLE=1 # enable options
PATCHES=0 # enable/disable patch apply
UARCH=0 # apply more uarch patch
O3=1 # use -O3 vs -O2 (optimisation)
ARCH="native" # target architecture (uarch patch)
CONFIGCLOUD=0 # enable cloud 'from' config
CONFIGSTANDARD=0 # enable standard 'from' config
CONFIGOLD=1 # enable old def config
CONFIGMOD=0 # enable all mod config
SCRATCH=0 # perform from scratch (remove preexisting content)
UNCOMPRESS=1 # perform uncompress if already exist
CLEANUP=1 # perform folder cleanup
SECURED=1 # enable/disable security
CLANG=0 # use Clang compiler (if not, use GCC)
TESTING=0 # add testing options
NVIDIA=1 # add support for nvidia
BARE=1 # compile kernel for bare-metal
#
# Sources:
# https://github.com/sn99/Optimizing-linux#compiling-your-kernel
# https://wiki.gentoo.org/wiki/Kernel/Optimization
#
# config-cloud-amd64:
# config/cloud-amd64:
# https://packages.debian.org/source/sid/linux
# linux-image-6.12.21-cloud-amd64-unsigned
# Go down to download section, select amd64 and download deb.
# Open .deb with archiver, browse to boot folder and grab 'config-6.12.21-cloud-amd64'.
#
# Open .deb with archiver, browse to boot folder and grab 'config-6.12.30-cloud-amd64'.
# config/standard-amd64:
# https://packages.debian.org/source/sid/linux
# linux-image-6.12.30-amd64-unsigned
# Go down to download section, select amd64 and download deb.
# Open .deb with archiver, browse to boot folder and grab 'config-6.12.30-amd64'.
# more-uarches-for-kernel.patch:
# https://github.com/graysky2/kernel_compiler_patch
# more-uarches-for-kernel.patch : more-uarches-for-kernel-6.8-rc4+.patch
#
#
# Prerequisites:
# sudo apt install build-essential fakeroot dpkg-dev perl libssl-dev bc gnupg dirmngr libncurses-dev libelf-dev flex bison lsb-release rsync dwarves clang llvm lld debhelper
#
# sudo apt install build-essential fakeroot dpkg-dev perl libssl-dev bc gnupg dirmngr libncurses-dev libelf-dev flex bison lsb-release rsync dwarves clang llvm lld debhelper libdw-dev
#
# In case of usage of uninstall.sh, you must reinstall 'linux-libc-dev' with the version of used kernel
#
#
# To make a diff of different .config file:
# diff --side-by-side --suppress-common-lines --ignore-tab-expansion --ignore-trailing-space --ignore-space-change --ignore-blank-lines --text CONFIG1 CONFIG2
#
# Ubuntu:
# sudo apt-get install linux-source
@ -155,6 +154,7 @@ doTarget() {
UARCH=0
ARCH="native"
CONFIGCLOUD=0
CONFIGSTANDARD=0
CONFIGMOD=0
CONFIGOLD=1
SCRATCH=0
@ -335,6 +335,24 @@ doConfigCloud() {
fi
}
# Copy .config from standard kernel
doConfigStandard() {
if [ $CONFIGSTANDARD == 1 ]; then
cd $WORKDIR
doEchoStep "Copy standard kernel .config"
if [ -f .config ]; then
cp .config .config.standard.before
result=$? && doFail $result ">>> Error .config copy (before)!"
fi
cp $CONFIGS/standard-amd64 .config
result=$? && doFail $result ">>> Error .config copy!"
cp .config .config.standard.after
fi
}
# Generate .config from old kernel
doOldOne() {
if [ $CONFIGOLD == 1 ]; then
@ -811,6 +829,7 @@ doKernel() {
doCleanup > >(tee -a $LOGFILE) 2>&1
doConfigCloud > >(tee -a $LOGFILE) 2>&1
doConfigStandard > >(tee -a $LOGFILE) 2>&1
doOldOne > >(tee -a $LOGFILE) 2>&1
doAllMods > >(tee -a $LOGFILE) 2>&1
doDefaults > >(tee -a $LOGFILE) 2>&1