CONFIGOLD=0 pour désactiver le .config depuis celui actif, mise à jour de standard-amd64 avec config-6.16.3+deb14-amd64 et ajout du paramètre STANDARDSTANDARD

This commit is contained in:
2025-08-30 13:15:52 +02:00
parent 9d986e8559
commit 9fadcebeb5
3 changed files with 472 additions and 250 deletions

View File

@@ -38,6 +38,11 @@ sudo bash kernel.sh 6.x 6.16.4
## CHANGELOG
### 2025-08-30
- CONFIGOLD=0 pour désactiver le .config depuis celui actif
- mise à jour de standard-amd64 avec config-6.16.3+deb14-amd64
### 2025-08-29
- Ajout du paramètre DEBUG permettant d'activer/désactiver la gestion des options de type 'debug'

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
#!/bin/bash
UPDATED="2025-08-29"
UPDATED="2025-08-30"
DISABLE=1 # (1) 'disable' options
ENABLE=1 # (1) 'enable' options
@@ -20,17 +20,21 @@ TESTING=0 # (1) add testing options
NVIDIA=1 # (1) add support for nvidia
BARE=1 # (1) compile kernel for bare-metal
DEBUG=1 # (1) enable / (0) disable options debug.txt (removal of debugging)
STANDARD=0 # (1) do a standard kernel / (0) do an optimized kernel
# specific options for 'bare metal' setup
if [ $BARE == 1 ]; then
DISABLE=0 # don't do 'disable' options
ENABLE=1 # do 'enable' options
O3=0 # don't do O3 optimisations
ARCH="native" # compile unsing native optimisations
SECURED=1 # make a secured kernel
CLANG=0 # don't use clang, but use gcc
NVIDIA=1 # do 'nvidia' options
DEBUG=0 # don't remove 'debug' options
DISABLE=0 # don't do 'disable' options
ENABLE=1 # do 'enable' options
SECURED=1 # make a secured kernel
DEBUG=0 # don't remove 'debug' options
STANDARD=1 # do a standard kernel
fi
# specific options to build a standard kernel
if [ $STANDARD == 1 ]; then
CONFIGSTANDARD=1 # make a standard kernel
CONFIGOLD=0 # don't use old kernel config
fi
# Sources:
@@ -163,18 +167,25 @@ cd $CURRENT
# Perform specific distribution adjustments
doTarget() {
case ${TARGET} in
ubuntu)
DISABLE=0
PATCHES=0
UARCH=0
ARCH="native"
CONFIGCLOUD=0
CONFIGSTANDARD=0
CONFIGMOD=0
CONFIGOLD=1
SCRATCH=0
;;
*) ;;
ubuntu)
DISABLE=0
ENABLE=1
PATCHES=0
UARCH=0
O3=0
ARCH="native"
CONFIGCLOUD=0
CONFIGSTANDARD=0
CONFIGOLD=1
CONFIGMOD=0
SCRATCH=0
SECURED=1
CLANG=0
NVIDIA=1
BARE=1
DEBUG=1
;;
*) ;;
esac
}
@@ -322,7 +333,7 @@ doCleanup() {
cd $WORKDIR
doEchoStep "Cleanup"
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
make -j${NPROC} LLVM=1 CC="ccache clang" distclean
result=$? && doFail $result ">>> Error in cleanup!"
else
@@ -379,7 +390,7 @@ doOldOne() {
result=$? && doFail $result ">>> Error .config copy (before)!"
fi
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
make -j${NPROC} LLVM=1 CC="ccache clang" olddefconfig
result=$? && doFail $result ">>> Error in generate .config!"
else
@@ -402,7 +413,7 @@ doAllMods() {
result=$? && doFail $result ">>> Error .config copy (before)!"
fi
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
make -j${NPROC} LLVM=1 CC="ccache clang" allmodconfig
result=$? && doFail $result ">>> Error in set all modules not in kernel!"
else
@@ -547,7 +558,7 @@ doDefaultsEnable() {
result=$? && doFail $result ">>> Error .config copy (before)!"
fi
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
doScriptsConfigFile enable $ENABLED/clang.txt
fi
@@ -640,12 +651,12 @@ doDefaults() {
doApplyPatches
SEC="-unsecure"
if [ "$SECURED" == "1" ]; then
if [ $SECURED == 1 ]; then
SEC="-secure"
fi
doEchoStep "Define options"
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
./scripts/config --set-str CONFIG_LOCALVERSION "${SEC}-clang"
result=$? && doFail $result ">>> Error in script-config!"
else
@@ -672,7 +683,7 @@ doEditSettings() {
result=$? && doFail $result ">>> Error .config copy (before)!"
fi
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
make -j${NPROC} LLVM=1 CC="ccache clang" menuconfig
result=$? && doFail $result ">>> Error in settings edit!"
else
@@ -782,7 +793,7 @@ doCompile() {
doEchoStep "Compilation time... Be patient!"
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
doEchoStep "Compiler: CLANG"
else
doEchoStep "Compiler: GCC"
@@ -805,7 +816,7 @@ doCompile() {
doEchoStep "make bindeb-pkg"
if [ "$CLANG" == "1" ]; then
if [ $CLANG == 1 ]; then
make \
-j${NPROC} \
LLVM=1 LLVM_IAS=1 \