Ajouts de flags enable/disable
This commit is contained in:
parent
0e3258e2c5
commit
530f239ef0
@ -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
|
* 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
|
* ajouter le test de la signature du kernel après téléchargement
|
||||||
|
|
||||||
|
|
||||||
## CHANGELOG
|
## 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
|
### 2023-11-24
|
||||||
|
|
||||||
* Correction de bugs liés aux disable/enable _(options du .config)_
|
* Correction de bugs liés aux disable/enable _(options du .config)_
|
||||||
|
76
kernel.sh
76
kernel.sh
@ -1,13 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
UPDATED="2023-11-24"
|
UPDATED="2023-11-30"
|
||||||
doBuildSystem() {
|
doBuildSystem() {
|
||||||
echo "v$UPDATED"
|
echo "v$UPDATED"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TESTING=0
|
||||||
|
|
||||||
# Display introduction
|
# Display introduction
|
||||||
doIntro() {
|
doIntro() {
|
||||||
echo
|
echo
|
||||||
echo "Debian Kernel Builder: $HOSTNAME"
|
if [ $TESTING == 1 ]; then
|
||||||
|
echo "Debian Kernel Builder: $HOSTNAME [TESTING]"
|
||||||
|
else
|
||||||
|
echo "Debian Kernel Builder: $HOSTNAME"
|
||||||
|
fi
|
||||||
doBuildSystem
|
doBuildSystem
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
@ -486,7 +492,6 @@ doDefaultsDisable() {
|
|||||||
./scripts/config --disable CONFIG_XFS_SUPPORT_V4
|
./scripts/config --disable CONFIG_XFS_SUPPORT_V4
|
||||||
./scripts/config --disable USB_NET_DRIVER
|
./scripts/config --disable USB_NET_DRIVER
|
||||||
./scripts/config --disable WIRELESS
|
./scripts/config --disable WIRELESS
|
||||||
|
|
||||||
./scripts/config --disable CONFIG_MODULE_SIG
|
./scripts/config --disable CONFIG_MODULE_SIG
|
||||||
./scripts/config --disable CONFIG_KERNEL_GZIP
|
./scripts/config --disable CONFIG_KERNEL_GZIP
|
||||||
./scripts/config --disable CONFIG_KERNEL_BZIP2
|
./scripts/config --disable CONFIG_KERNEL_BZIP2
|
||||||
@ -494,6 +499,37 @@ doDefaultsDisable() {
|
|||||||
./scripts/config --disable CONFIG_KERNEL_LZO
|
./scripts/config --disable CONFIG_KERNEL_LZO
|
||||||
./scripts/config --disable CONFIG_KERNEL_LZ4
|
./scripts/config --disable CONFIG_KERNEL_LZ4
|
||||||
./scripts/config --disable CONFIG_KERNEL_ZSTD
|
./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() {
|
doDefaultsEnable() {
|
||||||
./scripts/config --enable CONFIG_ADDRESS_MASKING
|
./scripts/config --enable CONFIG_ADDRESS_MASKING
|
||||||
@ -697,8 +733,7 @@ doDefaultsEnable() {
|
|||||||
./scripts/config --enable DEFAULT_BBR
|
./scripts/config --enable DEFAULT_BBR
|
||||||
./scripts/config --enable FAIR_GROUP_SCHED
|
./scripts/config --enable FAIR_GROUP_SCHED
|
||||||
./scripts/config --enable VIRTIO_MENU
|
./scripts/config --enable VIRTIO_MENU
|
||||||
./scripts/config --enable ZRAM_DEF_COMP_ZSTD
|
./scripts/config --enable ZRAM_DEF_COMP_ZSTD
|
||||||
|
|
||||||
./scripts/config --enable CONFIG_WERROR
|
./scripts/config --enable CONFIG_WERROR
|
||||||
./scripts/config --enable CONFIG_KERNEL_XZ
|
./scripts/config --enable CONFIG_KERNEL_XZ
|
||||||
./scripts/config --enable CONFIG_EXT4_FS
|
./scripts/config --enable CONFIG_EXT4_FS
|
||||||
@ -729,6 +764,31 @@ doDefaultsEnable() {
|
|||||||
./scripts/config --enable CONFIG_IRQ_REMAP
|
./scripts/config --enable CONFIG_IRQ_REMAP
|
||||||
./scripts/config --enable CONFIG_HYPERV_IOMMU
|
./scripts/config --enable CONFIG_HYPERV_IOMMU
|
||||||
./scripts/config --enable CONFIG_VIRTIO_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() {
|
doDefaults() {
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
@ -737,9 +797,13 @@ doDefaults() {
|
|||||||
|
|
||||||
doDefaultsDisable
|
doDefaultsDisable
|
||||||
doDefaultsEnable
|
doDefaultsEnable
|
||||||
|
|
||||||
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg'
|
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg'
|
||||||
|
|
||||||
|
if [ $TESTING == 1 ]; then
|
||||||
|
doDefaultsTesting
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
cp .config .config.5.defaulted
|
cp .config .config.5.defaulted
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user