Ajouts de flags enable/disable

This commit is contained in:
Olivier 2023-11-30 20:02:44 +01:00
parent 0e3258e2c5
commit 530f239ef0
2 changed files with 75 additions and 7 deletions

View File

@ -25,9 +25,13 @@ sudo bash kernel.sh 6.x 6.6.1
* trouver comment rendre compatible le kernel pour une VM avec drivers Nvidia
* ajouter le test de la signature du kernel après téléchargement
## CHANGELOG
### 2023-11-30
* Amélioration des sélections dans les options (enable/disable)
* Ajout d'un flag TESTING conditionnant l'appel de la fonction doDefaultsTesting _(pour tester d'autres options...)_
### 2023-11-24
* Correction de bugs liés aux disable/enable _(options du .config)_

View File

@ -1,13 +1,19 @@
#!/bin/bash
UPDATED="2023-11-24"
UPDATED="2023-11-30"
doBuildSystem() {
echo "v$UPDATED"
}
TESTING=0
# Display introduction
doIntro() {
echo
if [ $TESTING == 1 ]; then
echo "Debian Kernel Builder: $HOSTNAME [TESTING]"
else
echo "Debian Kernel Builder: $HOSTNAME"
fi
doBuildSystem
echo
}
@ -486,7 +492,6 @@ doDefaultsDisable() {
./scripts/config --disable CONFIG_XFS_SUPPORT_V4
./scripts/config --disable USB_NET_DRIVER
./scripts/config --disable WIRELESS
./scripts/config --disable CONFIG_MODULE_SIG
./scripts/config --disable CONFIG_KERNEL_GZIP
./scripts/config --disable CONFIG_KERNEL_BZIP2
@ -494,6 +499,37 @@ doDefaultsDisable() {
./scripts/config --disable CONFIG_KERNEL_LZO
./scripts/config --disable CONFIG_KERNEL_LZ4
./scripts/config --disable CONFIG_KERNEL_ZSTD
./scripts/config --disable CONFIG_NET_VENDOR_AMAZON
./scripts/config --disable CONFIG_NET_VENDOR_ASIX
./scripts/config --disable CONFIG_NET_VENDOR_CORTINA
./scripts/config --disable CONFIG_NET_VENDOR_DAVICOM
./scripts/config --disable CONFIG_NET_VENDOR_ENGLEDER
./scripts/config --disable CONFIG_NET_VENDOR_FUNGIBLE
./scripts/config --disable CONFIG_NET_VENDOR_GOOGLE
./scripts/config --disable CONFIG_GVE
./scripts/config --disable CONFIG_NET_VENDOR_LITEX
./scripts/config --disable CONFIG_NET_VENDOR_MELLANOX
./scripts/config --disable CONFIG_MLX4_EN
./scripts/config --disable CONFIG_MLX4_DEBUG
./scripts/config --disable CONFIG_MLX4_CORE_GEN2
./scripts/config --disable CONFIG_MLX5_CORE
./scripts/config --disable CONFIG_MLXFW
./scripts/config --disable CONFIG_NET_VENDOR_MICROSEMI
./scripts/config --disable CONFIG_NET_VENDOR_MICROSOFT
./scripts/config --disable CONFIG_MICROSOFT_MANA
./scripts/config --disable CONFIG_NET_VENDOR_NI
./scripts/config --disable CONFIG_NET_VENDOR_PENSANDO
./scripts/config --disable CONFIG_NET_VENDOR_SOCIONEXT
./scripts/config --disable CONFIG_NET_VENDOR_VERTEXCOM
./scripts/config --disable CONFIG_NET_VENDOR_WANGXUN
./scripts/config --disable CONFIG_NET_VENDOR_XILINX
./scripts/config --disable CONFIG_WLAN
./scripts/config --disable CONFIG_PPS
./scripts/config --disable CONFIG_INFINIBAND
./scripts/config --disable CONFIG_COMEDI
./scripts/config --disable CONFIG_SURFACE_PLATFORMS
./scripts/config --disable CONFIG_SOUNDWIRE
./scripts/config --disable CONFIG_DEBUG_KERNEL
}
doDefaultsEnable() {
./scripts/config --enable CONFIG_ADDRESS_MASKING
@ -698,7 +734,6 @@ doDefaultsEnable() {
./scripts/config --enable FAIR_GROUP_SCHED
./scripts/config --enable VIRTIO_MENU
./scripts/config --enable ZRAM_DEF_COMP_ZSTD
./scripts/config --enable CONFIG_WERROR
./scripts/config --enable CONFIG_KERNEL_XZ
./scripts/config --enable CONFIG_EXT4_FS
@ -729,6 +764,31 @@ doDefaultsEnable() {
./scripts/config --enable CONFIG_IRQ_REMAP
./scripts/config --enable CONFIG_HYPERV_IOMMU
./scripts/config --enable CONFIG_VIRTIO_IOMMU
./scripts/config --enable CONFIG_COMPILE_TEST
./scripts/config --enable CONFIG_BPF_JIT_ALWAYS_ON
./scripts/config --enable CONFIG_SCHED_CORE
./scripts/config --enable CONFIG_X86_X2APIC
./scripts/config --enable CONFIG_X86_CPU_RESCTRL
./scripts/config --enable CONFIG_PARAVIRT_SPINLOCKS
./scripts/config --enable CONFIG_PVH
./scripts/config --enable CONFIG_PROCESSOR_SELECT
./scripts/config --enable CONFIG_CPU_SUP_INTEL
./scripts/config --enable CONFIG_X86_5LEVEL
./scripts/config --enable CONFIG_X86_KERNEL_IBT
./scripts/config --enable CONFIG_KVM_PROVE_MMU
./scripts/config --enable CONFIG_TRIM_UNUSED_KSYMS
./scripts/config --enable CONFIG_IXGBEVF
./scripts/config --enable CONFIG_VFIO
./scripts/config --enable CONFIG_CRYPTO_PCRYPT
./scripts/config --enable CONFIG_CRYPTO_CRYPTD
./scripts/config --enable CONFIG_CRYPTO_LZO
./scripts/config --enable CONFIG_CRYPTO_LZ4
./scripts/config --enable CONFIG_CRYPTO_ZSTD
}
doDefaultsTesting() {
doEchoStep "Testings flags activated..."
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg-testing'
}
doDefaults() {
cd $WORKDIR
@ -737,9 +797,13 @@ doDefaults() {
doDefaultsDisable
doDefaultsEnable
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg'
if [ $TESTING == 1 ]; then
doDefaultsTesting
fi
cp .config .config.5.defaulted
}