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