Mise à jour avec la version de production

This commit is contained in:
Olivier 2023-11-24 19:39:34 +01:00
parent 608309de2b
commit 11e0be553d

641
kernel.sh
View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
UPDATED="2023-11-22" UPDATED="2023-11-24"
doBuildSystem() { doBuildSystem() {
echo "v$UPDATED" echo "v$UPDATED"
} }
@ -132,11 +132,26 @@ doCleanup() {
fi fi
} }
# Copy .config from cloud kernel
doConfigCloud() {
cd $WORKDIR
doEchoStep "Copy cloud kernel .config"
cp $CURRENT/config-cloud-amd64 .config
result=$?
if [ ! result==0 ]; then
echo ">>> Error in cloud kernel .config copy!"
exit 1
fi
cp .config .config.1.cloudconfig
}
# Clean folder # Clean folder
doOldOne() { doOldOne() {
cd $WORKDIR cd $WORKDIR
doEchoStep "Generate config from old (current) kernel .config" doEchoStep "Generate config from old kernel .config"
make -j$(nproc) CC="ccache gcc" olddefconfig make -j$(nproc) CC="ccache gcc" olddefconfig
result=$? result=$?
if [ ! result==0 ]; then if [ ! result==0 ]; then
@ -180,9 +195,9 @@ doStripSig() {
doEchoStep "Remove signature/keys" doEchoStep "Remove signature/keys"
./scripts/config --disable MODULE_SIG_ALL ./scripts/config --disable MODULE_SIG_ALL
./scripts/config --set-str MODULE_SIG_KEY "" ./scripts/config --set-str CONFIG_MODULE_SIG_KEY ""
./scripts/config --set-str SYSTEM_TRUSTED_KEYS "" ./scripts/config --set-str CONFIG_SYSTEM_TRUSTED_KEY ""
./scripts/config --set-str SYSTEM_REVOCATION_KEYS "" ./scripts/config --set-str CONFIG_SYSTEM_REVOCATION_KEYS ""
result=$? result=$?
if [ ! result==0 ]; then if [ ! result==0 ]; then
echo ">>> Error in chown !" echo ">>> Error in chown !"
@ -207,13 +222,280 @@ doStripDebug() {
} }
# Generate defaults options for this kernel # Generate defaults options for this kernel
doDefaults() { doDefaultsDisable() {
cd $WORKDIR ./scripts/config --disable CONFIG_ACCESSIBILITY
./scripts/config --disable CONFIG_ACORN_PARTITION
doEchoStep "Define default options" ./scripts/config --disable CONFIG_ACPI_DEBUG
./scripts/config --disable CONFIG_ACPI_DEBUGGER
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg' ./scripts/config --disable CONFIG_ACPI_EC_DEBUGFS
./scripts/config --disable CONFIG_ACRN_GUEST
./scripts/config --disable CONFIG_AF_RXRPC
./scripts/config --disable CONFIG_AIX_PARTITION
./scripts/config --disable CONFIG_AMD_IOMMU
./scripts/config --disable CONFIG_AMIGA_PARTITION
./scripts/config --disable CONFIG_APPLE_DART
./scripts/config --disable CONFIG_APPLE_PROPERTIES
./scripts/config --disable CONFIG_ARCH_MEMORY_PROBE
./scripts/config --disable CONFIG_ARM_INTEGRATOR_LM
./scripts/config --disable CONFIG_ARM_SCMI_PROTOCOL
./scripts/config --disable CONFIG_ARM_SCPI_PROTOCOL
./scripts/config --disable CONFIG_ARM_SMMU
./scripts/config --disable CONFIG_ATA_OVER_ETH
./scripts/config --disable CONFIG_ATARI_PARTITION
./scripts/config --disable CONFIG_ATM_DRIVERS
./scripts/config --disable CONFIG_BFQ_CGROUP_DEBUG
./scripts/config --disable CONFIG_BLK_CGROUP_IOLATENCY
./scripts/config --disable CONFIG_BLK_DEBUG_FS
./scripts/config --disable CONFIG_BLK_DEV_BSGLIB
./scripts/config --disable CONFIG_BLK_DEV_INTEGRITY
./scripts/config --disable CONFIG_BLK_DEV_THROTTLING_LOW
./scripts/config --disable CONFIG_BLK_DEV_ZONED
./scripts/config --disable CONFIG_BSD_DISKLABEL
./scripts/config --disable CONFIG_BT
./scripts/config --disable CONFIG_BTRFS_ASSERT
./scripts/config --disable CONFIG_BTRFS_DEBUG
./scripts/config --disable CONFIG_BTRFS_FS
./scripts/config --disable CONFIG_BTRFS_FS_CHECK_INTEGRITY
./scripts/config --disable CONFIG_BTRFS_FS_POSIX_ACL
./scripts/config --disable CONFIG_BTRFS_FS_REF_VERIFY
./scripts/config --disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS
./scripts/config --disable CONFIG_CACHEFILES_DEBUG
./scripts/config --disable CONFIG_CACHEFILES_ONDEMAND
./scripts/config --disable CONFIG_CAIF
./scripts/config --disable CONFIG_CAN
./scripts/config --disable CONFIG_CDROM_PKTCDVD
./scripts/config --disable CONFIG_CEPH_LIB
./scripts/config --disable CONFIG_CFG80211
./scripts/config --disable CONFIG_CGROUP_DEBUG
./scripts/config --disable CONFIG_CIFS_DEBUG
./scripts/config --disable CONFIG_CMA
./scripts/config --disable CONFIG_CMA_DEBUG
./scripts/config --disable CONFIG_CMA_DEBUGFS
./scripts/config --disable CONFIG_CMA_SYSFS
./scripts/config --disable CONFIG_COMPAT_VDSO
./scripts/config --disable CONFIG_COMPILE_TEST
./scripts/config --disable CONFIG_CPA_DEBUG
./scripts/config --disable CONFIG_CPU_SRSO
./scripts/config --disable CONFIG_CPU_SUP_AMD
./scripts/config --disable CONFIG_CPU_SUP_CENTAUR
./scripts/config --disable CONFIG_CPU_SUP_HYGON
./scripts/config --disable CONFIG_CPU_SUP_ZHAOXIN
./scripts/config --disable CONFIG_CRASH_DUMP
./scripts/config --disable CONFIG_DAMON
./scripts/config --disable CONFIG_DEBUG_BOOT_PARAMS
./scripts/config --disable CONFIG_DEBUG_CGROUP_REF
./scripts/config --disable CONFIG_DEBUG_CREDENTIALS
./scripts/config --disable CONFIG_DEBUG_DEVRES
./scripts/config --disable CONFIG_DEBUG_DRIVER
./scripts/config --disable CONFIG_DEBUG_ENTRY
./scripts/config --disable CONFIG_DEBUG_KERNEL
./scripts/config --disable CONFIG_DEBUG_KOBJECT
./scripts/config --disable CONFIG_DEBUG_KOBJECT_RELEASE
./scripts/config --disable CONFIG_DEBUG_LIST
./scripts/config --disable CONFIG_DEBUG_MAPLE_TREE
./scripts/config --disable CONFIG_DEBUG_MISC
./scripts/config --disable CONFIG_DEBUG_NMI_SELFTEST
./scripts/config --disable CONFIG_DEBUG_NOTIFIERS
./scripts/config --disable CONFIG_DEBUG_PERF_USE_VMALLOC
./scripts/config --disable CONFIG_DEBUG_PLIST
./scripts/config --disable CONFIG_DEBUG_PREEMPT
./scripts/config --disable CONFIG_DEBUG_RSEQ
./scripts/config --disable CONFIG_DEBUG_SG
./scripts/config --disable CONFIG_DEBUG_SHIRQ
./scripts/config --disable CONFIG_DEBUG_TEST_DRIVER_REMOVE
./scripts/config --disable CONFIG_DEBUG_TIMEKEEPING
./scripts/config --disable CONFIG_DEBUG_TLBFLUSH
./scripts/config --disable CONFIG_DEBUG_WQ_FORCE_RR_CPU
./scripts/config --disable CONFIG_DRM_AMDGPU
./scripts/config --disable CONFIG_DRM_HDLCD
./scripts/config --disable CONFIG_DRM_KOMEDA
./scripts/config --disable CONFIG_DRM_LEGACY
./scripts/config --disable CONFIG_DRM_MALI_DISPLAY
./scripts/config --disable CONFIG_DRM_RADEON
./scripts/config --disable CONFIG_DVB_DUMMY_FE
./scripts/config --disable CONFIG_DVB_MMAP
./scripts/config --disable CONFIG_EARLY_PRINTK
./scripts/config --disable CONFIG_EDD
./scripts/config --disable CONFIG_EFI_FAKE_MEMMAP
./scripts/config --disable CONFIG_EFI_MIXED
./scripts/config --disable CONFIG_EFI_PGT_DUMP
./scripts/config --disable CONFIG_EISA
./scripts/config --disable CONFIG_EXT2_FS
./scripts/config --disable CONFIG_EXT3_FS
./scripts/config --disable CONFIG_EXT4_DEBUG
./scripts/config --disable CONFIG_EXT4_FS_POSIX_ACL
./scripts/config --disable CONFIG_EXT4_FS_SECURITY
./scripts/config --disable CONFIG_EXT4_KUNIT_TESTS
./scripts/config --disable CONFIG_F2FS_FS
./scripts/config --disable CONFIG_FAT_KUNIT_TEST
./scripts/config --disable CONFIG_FAULT_INJECTION
./scripts/config --disable CONFIG_FDDI
./scripts/config --disable CONFIG_FIREWIRE
./scripts/config --disable CONFIG_FIREWIRE_NOSY
./scripts/config --disable CONFIG_FS_DAX
./scripts/config --disable CONFIG_FSCACHE_DEBUG
./scripts/config --disable CONFIG_FTRACE
./scripts/config --disable CONFIG_FUJITSU_ES
./scripts/config --disable CONFIG_FUNCTION_ERROR_INJECTION
./scripts/config --disable CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT
./scripts/config --disable CONFIG_GCOV_KERNEL
./scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
./scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
./scripts/config --disable CONFIG_GFS2_FS
./scripts/config --disable CONFIG_GNSS
./scripts/config --disable CONFIG_GOOGLE_FIRMWARE
./scripts/config --disable CONFIG_HAMRADIO
./scripts/config --disable CONFIG_HIBERNATION
./scripts/config --disable CONFIG_HIPPI
./scripts/config --disable CONFIG_HOTPLUG_PCI
./scripts/config --disable CONFIG_HYPERV_NET
./scripts/config --disable CONFIG_HYPERV_TESTING
./scripts/config --disable CONFIG_IOSF_MBI
./scripts/config --disable CONFIG_IOSF_MBI_DEBUG
./scripts/config --disable CONFIG_IRQ_TIME_ACCOUNTING
./scripts/config --disable CONFIG_ISA_BUS
./scripts/config --disable CONFIG_ISDN
./scripts/config --disable CONFIG_JBD2_DEBUG
./scripts/config --disable CONFIG_JFS_FS
./scripts/config --disable CONFIG_KARMA_PARTITION
./scripts/config --disable CONFIG_KCOV
./scripts/config --disable CONFIG_KEXEC_BZIMAGE_VERIFY_SIG
./scripts/config --disable CONFIG_KEXEC_SIG
./scripts/config --disable CONFIG_KEXEC_SIG_FORCE
./scripts/config --disable CONFIG_KVM_PROVE_MMU
./scripts/config --disable CONFIG_KVM_XEN
./scripts/config --disable CONFIG_LDM_PARTITION
./scripts/config --disable CONFIG_LIB80211_DEBUG
./scripts/config --disable CONFIG_LOCK_EVENT_COUNTS
./scripts/config --disable CONFIG_LRU_GEN_STATS
./scripts/config --disable CONFIG_MAC_PARTITION
./scripts/config --disable CONFIG_MAC80211
./scripts/config --disable CONFIG_MACINTOSH_DRIVERS
./scripts/config --disable CONFIG_MEDIA_CONTROLLER_DVB
./scripts/config --disable CONFIG_MEMORY_FAILURE
./scripts/config --disable CONFIG_MEMTEST
./scripts/config --disable CONFIG_MICROCODE_LATE_LOADING
./scripts/config --disable CONFIG_MINIX_SUBPARTITION
./scripts/config --disable CONFIG_MODIFY_LDT_SYSCALL
./scripts/config --disable CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
./scripts/config --disable CONFIG_MODULE_DEBUG
./scripts/config --disable CONFIG_MODULE_FORCE_LOAD
./scripts/config --disable CONFIG_MODULE_FORCE_UNLOAD
./scripts/config --disable CONFIG_MODULE_SIG
./scripts/config --disable CONFIG_MODULE_SRCVERSION_ALL
./scripts/config --disable CONFIG_MODULE_UNLOAD_TAINT_TRACKING
./scripts/config --disable CONFIG_MODVERSIONS
./scripts/config --disable CONFIG_NET_9P
./scripts/config --disable CONFIG_NET_SB1000
./scripts/config --disable CONFIG_NETDEVSIM
./scripts/config --disable CONFIG_NFC
./scripts/config --disable CONFIG_NILFS2_FS
./scripts/config --disable CONFIG_NO_HZ
./scripts/config --disable CONFIG_NTFS_DEBUG
./scripts/config --disable CONFIG_NTFS3_64BIT_CLUSTER
./scripts/config --disable CONFIG_NTFS3_FS_POSIX_ACL
./scripts/config --disable CONFIG_OCFS2_FS
./scripts/config --disable CONFIG_OSF_PARTITION
./scripts/config --disable CONFIG_PAGE_POOL_STATS
./scripts/config --disable CONFIG_PARAVIRT_DEBUG
./scripts/config --disable CONFIG_PARAVIRT_TIME_ACCOUNTING
./scripts/config --disable CONFIG_PARPORT
./scripts/config --disable CONFIG_PCCARD
./scripts/config --disable CONFIG_PCI_CNB20LE_QUIRK
./scripts/config --disable CONFIG_PCI_DEBUG
./scripts/config --disable CONFIG_PCI_EPF_TEST
./scripts/config --disable CONFIG_PCI_P2PDMA
./scripts/config --disable CONFIG_PCI_PF_STUB
./scripts/config --disable CONFIG_PCI_STUB
./scripts/config --disable CONFIG_PCIE_ECRC
./scripts/config --disable CONFIG_PCIEAER_INJECT
./scripts/config --disable CONFIG_PERF_EVENTS_AMD_UNCORE
./scripts/config --disable CONFIG_PM_DEBUG
./scripts/config --disable CONFIG_PPS
./scripts/config --disable CONFIG_PROVE_RCU_LIST
./scripts/config --disable CONFIG_PROVIDE_OHCI1394_DMA_INIT
./scripts/config --disable CONFIG_PSE_CONTROLLER
./scripts/config --disable CONFIG_PUNIT_ATOM_DEBUG
./scripts/config --disable CONFIG_QCOM_IPA
./scripts/config --disable CONFIG_QFMT_V1
./scripts/config --disable CONFIG_QFMT_V2
./scripts/config --disable CONFIG_QUOTA_DEBUG
./scripts/config --disable CONFIG_RADIO_ADAPTERS
./scripts/config --disable CONFIG_RAPIDIO
./scripts/config --disable CONFIG_RCU_CPU_STALL_CPUTIME
./scripts/config --disable CONFIG_RCU_EQS_DEBUG
./scripts/config --disable CONFIG_RCU_STRICT_GRACE_PERIOD
./scripts/config --disable CONFIG_RCU_TRACE
./scripts/config --disable CONFIG_READ_ONLY_THP_FOR_FS
./scripts/config --disable CONFIG_REISERFS_FS
./scripts/config --disable CONFIG_RFKILL
./scripts/config --disable CONFIG_SAMPLES
./scripts/config --disable CONFIG_SECCOMP_CACHE_DEBUG
./scripts/config --disable CONFIG_SGI_PARTITION
./scripts/config --disable CONFIG_SMS_SIANO_DEBUGFS
./scripts/config --disable CONFIG_SOLARIS_X86_PARTITION
./scripts/config --disable CONFIG_STRICT_SIGALTSTACK_SIZE
./scripts/config --disable CONFIG_SUN_PARTITION
./scripts/config --disable CONFIG_SYSV68_PARTITION
./scripts/config --disable CONFIG_TEST_ASYNC_DRIVER_PROBE
./scripts/config --disable CONFIG_TIME_KUNIT_TEST
./scripts/config --disable CONFIG_TIME_KUNIT_TEST
./scripts/config --disable CONFIG_ULTRIX_PARTITION
./scripts/config --disable CONFIG_UNIXWARE_DISKLABEL
./scripts/config --disable CONFIG_USB4_NET
./scripts/config --disable CONFIG_USELIB
./scripts/config --disable CONFIG_VMXNET3
./scripts/config --disable CONFIG_WAN
./scripts/config --disable CONFIG_WARN_ABI_ERRORS
./scripts/config --disable CONFIG_WARN_ALL_UNSEEDED_RANDOM
./scripts/config --disable CONFIG_WARN_MISSING_DOCUMENTS
./scripts/config --disable CONFIG_WLAN
./scripts/config --disable CONFIG_WQ_POWER_EFFICIENT_DEFAULT
./scripts/config --disable CONFIG_WWAN
./scripts/config --disable CONFIG_X86_16BIT
./scripts/config --disable CONFIG_X86_5LEVEL
./scripts/config --disable CONFIG_X86_AMD_PLATFORM_DEVICE
./scripts/config --disable CONFIG_X86_AMD_PSTATE
./scripts/config --disable CONFIG_X86_AMD_PSTATE_UT
./scripts/config --disable CONFIG_X86_CHECK_BIOS_CORRUPTION
./scripts/config --disable CONFIG_X86_CPU_RESCTRL
./scripts/config --disable CONFIG_X86_DEBUG_FPU
./scripts/config --disable CONFIG_X86_EXTENDED_PLATFORM
./scripts/config --disable CONFIG_X86_GOLDFISH
./scripts/config --disable CONFIG_X86_INTEL_LPSS
./scripts/config --disable CONFIG_X86_INTEL_MID
./scripts/config --disable CONFIG_X86_IOPL_IOPERM
./scripts/config --disable CONFIG_X86_MCE_INJECT
./scripts/config --disable CONFIG_X86_MCELOG_LEGACY
./scripts/config --disable CONFIG_X86_MPPARSE
./scripts/config --disable CONFIG_X86_P4_CLOCKMOD
./scripts/config --disable CONFIG_X86_POWERNOW_K8
./scripts/config --disable CONFIG_X86_SPEEDSTEP_CENTRINO
./scripts/config --disable CONFIG_X86_VSYSCALL_EMULATION
./scripts/config --disable CONFIG_X86_X2APIC
./scripts/config --disable CONFIG_XEN
./scripts/config --disable CONFIG_XFS_ASSERT_FATAL
./scripts/config --disable CONFIG_XFS_DEBUG
./scripts/config --disable CONFIG_XFS_ONLINE_REPAIR
./scripts/config --disable CONFIG_XFS_ONLINE_SCRUB
./scripts/config --disable CONFIG_XFS_ONLINE_SCRUB_STATS
./scripts/config --disable CONFIG_XFS_POSIX_ACL
./scripts/config --disable CONFIG_XFS_QUOTA
./scripts/config --disable CONFIG_XFS_RT
./scripts/config --disable CONFIG_XFS_SUPPORT_ASCII_CI
./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
./scripts/config --disable CONFIG_KERNEL_LZMA
./scripts/config --disable CONFIG_KERNEL_LZO
./scripts/config --disable CONFIG_KERNEL_LZ4
./scripts/config --disable CONFIG_KERNEL_ZSTD
}
doDefaultsEnable() {
./scripts/config --enable CONFIG_ADDRESS_MASKING ./scripts/config --enable CONFIG_ADDRESS_MASKING
./scripts/config --enable CONFIG_AF_KCM ./scripts/config --enable CONFIG_AF_KCM
./scripts/config --enable CONFIG_AF_KCM ./scripts/config --enable CONFIG_AF_KCM
@ -417,293 +699,46 @@ doDefaults() {
./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 --disable CONFIG_ACCESSIBILITY ./scripts/config --enable CONFIG_WERROR
./scripts/config --disable CONFIG_ACORN_PARTITION ./scripts/config --enable CONFIG_KERNEL_XZ
./scripts/config --disable CONFIG_ACPI_DEBUG ./scripts/config --enable CONFIG_EXT4_FS
./scripts/config --disable CONFIG_ACPI_DEBUGGER ./scripts/config --enable CONFIG_ATA
./scripts/config --disable CONFIG_ACPI_EC_DEBUGFS ./scripts/config --enable CONFIG_ATA_SFF
./scripts/config --disable CONFIG_ACRN_GUEST ./scripts/config --enable CONFIG_ATA_BMDMA
./scripts/config --disable CONFIG_AF_RXRPC ./scripts/config --enable CONFIG_ATA_ACPI
./scripts/config --disable CONFIG_AIX_PARTITION ./scripts/config --enable CONFIG_SATA_AHCI
./scripts/config --disable CONFIG_AMD_IOMMU ./scripts/config --enable CONFIG_SCSI
./scripts/config --disable CONFIG_AMIGA_PARTITION ./scripts/config --enable CONFIG_SCSI_PROC_FS
./scripts/config --disable CONFIG_APPLE_DART ./scripts/config --enable CONFIG_BLK_DEV_SD
./scripts/config --disable CONFIG_APPLE_PROPERTIES ./scripts/config --enable CONFIG_CHR_DEV_SG
./scripts/config --disable CONFIG_ARCH_MEMORY_PROBE ./scripts/config --enable CONFIG_SCSI_SAS_ATA
./scripts/config --disable CONFIG_ARM_INTEGRATOR_LM ./scripts/config --enable CONFIG_SCSI_VIRTIO
./scripts/config --disable CONFIG_ARM_SCMI_PROTOCOL ./scripts/config --enable CONFIG_VFIO_VIRQFD
./scripts/config --disable CONFIG_ARM_SCPI_PROTOCOL ./scripts/config --enable CONFIG_VIRTIO_PCI
./scripts/config --disable CONFIG_ARM_SMMU ./scripts/config --enable CONFIG_VIRTIO_PCI_LEGACY
./scripts/config --disable CONFIG_ATA_OVER_ETH ./scripts/config --enable CONFIG_VIRTIO_PMEM
./scripts/config --disable CONFIG_ATARI_PARTITION ./scripts/config --enable CONFIG_VIRTIO_BALLOON
./scripts/config --disable CONFIG_ATM_DRIVERS ./scripts/config --enable CONFIG_VIRTIO_MEM
./scripts/config --enable CONFIG_VIRTIO_INPUT
./scripts/config --enable CONFIG_VIRTIO_MMIO
./scripts/config --enable CONFIG_IOMMU_SUPPORT
./scripts/config --enable CONFIG_INTEL_IOMMU
./scripts/config --enable CONFIG_INTEL_IOMMU_SVM
./scripts/config --enable CONFIG_INTEL_IOMMU_DEFAULT_ON
./scripts/config --enable CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON
./scripts/config --enable CONFIG_IRQ_REMAP
./scripts/config --enable CONFIG_HYPERV_IOMMU
./scripts/config --enable CONFIG_VIRTIO_IOMMU
}
doDefaults() {
cd $WORKDIR
# ./scripts/config --disable CONFIG_BFQ_CGROUP_DEBUG doEchoStep "Define default options"
# ./scripts/config --disable CONFIG_BLK_CGROUP_IOLATENCY
# ./scripts/config --disable CONFIG_BLK_DEBUG_FS
# ./scripts/config --disable CONFIG_BLK_DEV_BSGLIB
# ./scripts/config --disable CONFIG_BLK_DEV_INTEGRITY
# ./scripts/config --disable CONFIG_BLK_DEV_THROTTLING_LOW
# ./scripts/config --disable CONFIG_BLK_DEV_ZONED
# ./scripts/config --disable CONFIG_BSD_DISKLABEL
# ./scripts/config --disable CONFIG_BT
# ./scripts/config --disable CONFIG_BTRFS_ASSERT
# ./scripts/config --disable CONFIG_BTRFS_DEBUG
# ./scripts/config --disable CONFIG_BTRFS_FS
# ./scripts/config --disable CONFIG_BTRFS_FS_CHECK_INTEGRITY
# ./scripts/config --disable CONFIG_BTRFS_FS_POSIX_ACL
# ./scripts/config --disable CONFIG_BTRFS_FS_REF_VERIFY
# ./scripts/config --disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS
# ./scripts/config --disable CONFIG_CACHEFILES_DEBUG doDefaultsDisable
# ./scripts/config --disable CONFIG_CACHEFILES_ONDEMAND doDefaultsEnable
# ./scripts/config --disable CONFIG_CAIF
# ./scripts/config --disable CONFIG_CAN
# ./scripts/config --disable CONFIG_CDROM_PKTCDVD
# ./scripts/config --disable CONFIG_CEPH_LIB
# ./scripts/config --disable CONFIG_CFG80211
# ./scripts/config --disable CONFIG_CGROUP_DEBUG
# ./scripts/config --disable CONFIG_CIFS_DEBUG
# ./scripts/config --disable CONFIG_CMA
# ./scripts/config --disable CONFIG_CMA_DEBUG
# ./scripts/config --disable CONFIG_CMA_DEBUGFS
# ./scripts/config --disable CONFIG_CMA_SYSFS
# ./scripts/config --disable CONFIG_COMPAT_VDSO
# ./scripts/config --disable CONFIG_COMPILE_TEST
# ./scripts/config --disable CONFIG_CPA_DEBUG
# ./scripts/config --disable CONFIG_CPU_SRSO
# ./scripts/config --disable CONFIG_CPU_SUP_AMD
# ./scripts/config --disable CONFIG_CPU_SUP_CENTAUR
# ./scripts/config --disable CONFIG_CPU_SUP_HYGON
# ./scripts/config --disable CONFIG_CPU_SUP_ZHAOXIN
# ./scripts/config --disable CONFIG_CRASH_DUMP
# ./scripts/config --disable CONFIG_DAMON ./scripts/config --set-str CONFIG_LOCALVERSION '-zogg'
# ./scripts/config --disable CONFIG_DEBUG_BOOT_PARAMS
# ./scripts/config --disable CONFIG_DEBUG_CGROUP_REF
# ./scripts/config --disable CONFIG_DEBUG_CREDENTIALS
# ./scripts/config --disable CONFIG_DEBUG_DEVRES
# ./scripts/config --disable CONFIG_DEBUG_DRIVER
# ./scripts/config --disable CONFIG_DEBUG_ENTRY
# ./scripts/config --disable CONFIG_DEBUG_KERNEL
# ./scripts/config --disable CONFIG_DEBUG_KOBJECT
# ./scripts/config --disable CONFIG_DEBUG_KOBJECT_RELEASE
# ./scripts/config --disable CONFIG_DEBUG_LIST
# ./scripts/config --disable CONFIG_DEBUG_MAPLE_TREE
# ./scripts/config --disable CONFIG_DEBUG_MISC
# ./scripts/config --disable CONFIG_DEBUG_NMI_SELFTEST
# ./scripts/config --disable CONFIG_DEBUG_NOTIFIERS
# ./scripts/config --disable CONFIG_DEBUG_PERF_USE_VMALLOC
# ./scripts/config --disable CONFIG_DEBUG_PLIST
# ./scripts/config --disable CONFIG_DEBUG_PREEMPT
# ./scripts/config --disable CONFIG_DEBUG_RSEQ
# ./scripts/config --disable CONFIG_DEBUG_SG
# ./scripts/config --disable CONFIG_DEBUG_SHIRQ
# ./scripts/config --disable CONFIG_DEBUG_TEST_DRIVER_REMOVE
# ./scripts/config --disable CONFIG_DEBUG_TIMEKEEPING
# ./scripts/config --disable CONFIG_DEBUG_TLBFLUSH
# ./scripts/config --disable CONFIG_DEBUG_WQ_FORCE_RR_CPU
# ./scripts/config --disable CONFIG_DRM_AMDGPU
# ./scripts/config --disable CONFIG_DRM_HDLCD
# ./scripts/config --disable CONFIG_DRM_KOMEDA
# ./scripts/config --disable CONFIG_DRM_LEGACY
# ./scripts/config --disable CONFIG_DRM_MALI_DISPLAY
# ./scripts/config --disable CONFIG_DRM_RADEON
# ./scripts/config --disable CONFIG_DVB_DUMMY_FE
# ./scripts/config --disable CONFIG_DVB_MMAP
# ./scripts/config --disable CONFIG_EARLY_PRINTK
# ./scripts/config --disable CONFIG_EDD
# ./scripts/config --disable CONFIG_EFI_FAKE_MEMMAP
# ./scripts/config --disable CONFIG_EFI_MIXED
# ./scripts/config --disable CONFIG_EFI_PGT_DUMP
# ./scripts/config --disable CONFIG_EISA
# ./scripts/config --disable CONFIG_EXT2_FS
# ./scripts/config --disable CONFIG_EXT3_FS
# ./scripts/config --disable CONFIG_EXT4_DEBUG
# ./scripts/config --disable CONFIG_EXT4_FS_POSIX_ACL
# ./scripts/config --disable CONFIG_EXT4_FS_SECURITY
# ./scripts/config --disable CONFIG_EXT4_KUNIT_TESTS
# ./scripts/config --disable CONFIG_F2FS_FS
# ./scripts/config --disable CONFIG_FAT_KUNIT_TEST
# ./scripts/config --disable CONFIG_FAULT_INJECTION
# ./scripts/config --disable CONFIG_FDDI
# ./scripts/config --disable CONFIG_FIREWIRE
# ./scripts/config --disable CONFIG_FIREWIRE_NOSY
# ./scripts/config --disable CONFIG_FS_DAX
# ./scripts/config --disable CONFIG_FSCACHE_DEBUG
# ./scripts/config --disable CONFIG_FTRACE
# ./scripts/config --disable CONFIG_FUJITSU_ES
# ./scripts/config --disable CONFIG_FUNCTION_ERROR_INJECTION
# ./scripts/config --disable CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT
# ./scripts/config --disable CONFIG_GCOV_KERNEL
# ./scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
# ./scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
# ./scripts/config --disable CONFIG_GFS2_FS
# ./scripts/config --disable CONFIG_GNSS
# ./scripts/config --disable CONFIG_GOOGLE_FIRMWARE
# ./scripts/config --disable CONFIG_HAMRADIO
# ./scripts/config --disable CONFIG_HIBERNATION
# ./scripts/config --disable CONFIG_HIPPI
# ./scripts/config --disable CONFIG_HOTPLUG_PCI
# ./scripts/config --disable CONFIG_HYPERV_NET
# ./scripts/config --disable CONFIG_HYPERV_TESTING
# ./scripts/config --disable CONFIG_IOSF_MBI
# ./scripts/config --disable CONFIG_IOSF_MBI_DEBUG
# ./scripts/config --disable CONFIG_IRQ_TIME_ACCOUNTING
# ./scripts/config --disable CONFIG_ISA_BUS
# ./scripts/config --disable CONFIG_ISDN
# ./scripts/config --disable CONFIG_JBD2_DEBUG
# ./scripts/config --disable CONFIG_JFS_FS
# ./scripts/config --disable CONFIG_KARMA_PARTITION
# ./scripts/config --disable CONFIG_KCOV
# ./scripts/config --disable CONFIG_KEXEC_BZIMAGE_VERIFY_SIG
# ./scripts/config --disable CONFIG_KEXEC_SIG
# ./scripts/config --disable CONFIG_KEXEC_SIG_FORCE
# ./scripts/config --disable CONFIG_KVM_PROVE_MMU
# ./scripts/config --disable CONFIG_KVM_XEN
# ./scripts/config --disable CONFIG_LDM_PARTITION
# ./scripts/config --disable CONFIG_LIB80211_DEBUG
# ./scripts/config --disable CONFIG_LOCK_EVENT_COUNTS
# ./scripts/config --disable CONFIG_LRU_GEN_STATS
# ./scripts/config --disable CONFIG_MAC_PARTITION
# ./scripts/config --disable CONFIG_MAC80211
# ./scripts/config --disable CONFIG_MACINTOSH_DRIVERS
# ./scripts/config --disable CONFIG_MEDIA_CONTROLLER_DVB
# ./scripts/config --disable CONFIG_MEMORY_FAILURE
# ./scripts/config --disable CONFIG_MEMTEST
# ./scripts/config --disable CONFIG_MICROCODE_LATE_LOADING
# ./scripts/config --disable CONFIG_MINIX_SUBPARTITION
# ./scripts/config --disable CONFIG_MODIFY_LDT_SYSCALL
# ./scripts/config --disable CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
# ./scripts/config --disable CONFIG_MODULE_DEBUG
# ./scripts/config --disable CONFIG_MODULE_FORCE_LOAD
# ./scripts/config --disable CONFIG_MODULE_FORCE_UNLOAD
# ./scripts/config --disable CONFIG_MODULE_SIG
# ./scripts/config --disable CONFIG_MODULE_SRCVERSION_ALL
# ./scripts/config --disable CONFIG_MODULE_UNLOAD_TAINT_TRACKING
# ./scripts/config --disable CONFIG_MODVERSIONS
# ./scripts/config --disable CONFIG_NET_9P
# ./scripts/config --disable CONFIG_NET_SB1000
# ./scripts/config --disable CONFIG_NETDEVSIM
# ./scripts/config --disable CONFIG_NFC
# ./scripts/config --disable CONFIG_NILFS2_FS
# ./scripts/config --disable CONFIG_NO_HZ
# ./scripts/config --disable CONFIG_NTFS_DEBUG
# ./scripts/config --disable CONFIG_NTFS3_64BIT_CLUSTER
# ./scripts/config --disable CONFIG_NTFS3_FS_POSIX_ACL
# ./scripts/config --disable CONFIG_OCFS2_FS
# ./scripts/config --disable CONFIG_OSF_PARTITION
# ./scripts/config --disable CONFIG_PAGE_POOL_STATS
# ./scripts/config --disable CONFIG_PARAVIRT_DEBUG
# ./scripts/config --disable CONFIG_PARAVIRT_TIME_ACCOUNTING
# ./scripts/config --disable CONFIG_PARPORT
# ./scripts/config --disable CONFIG_PCCARD
# ./scripts/config --disable CONFIG_PCI_CNB20LE_QUIRK
# ./scripts/config --disable CONFIG_PCI_DEBUG
# ./scripts/config --disable CONFIG_PCI_EPF_TEST
# ./scripts/config --disable CONFIG_PCI_P2PDMA
# ./scripts/config --disable CONFIG_PCI_PF_STUB
# ./scripts/config --disable CONFIG_PCI_STUB
# ./scripts/config --disable CONFIG_PCIE_ECRC
# ./scripts/config --disable CONFIG_PCIEAER_INJECT
# ./scripts/config --disable CONFIG_PERF_EVENTS_AMD_UNCORE
# ./scripts/config --disable CONFIG_PM_DEBUG
# ./scripts/config --disable CONFIG_PPS
# ./scripts/config --disable CONFIG_PROVE_RCU_LIST
# ./scripts/config --disable CONFIG_PROVIDE_OHCI1394_DMA_INIT
# ./scripts/config --disable CONFIG_PSE_CONTROLLER
# ./scripts/config --disable CONFIG_PUNIT_ATOM_DEBUG
# ./scripts/config --disable CONFIG_QCOM_IPA
# ./scripts/config --disable CONFIG_QFMT_V1
# ./scripts/config --disable CONFIG_QFMT_V2
# ./scripts/config --disable CONFIG_QUOTA_DEBUG
# ./scripts/config --disable CONFIG_RADIO_ADAPTERS
# ./scripts/config --disable CONFIG_RAPIDIO
# ./scripts/config --disable CONFIG_RCU_CPU_STALL_CPUTIME
# ./scripts/config --disable CONFIG_RCU_EQS_DEBUG
# ./scripts/config --disable CONFIG_RCU_STRICT_GRACE_PERIOD
# ./scripts/config --disable CONFIG_RCU_TRACE
# ./scripts/config --disable CONFIG_READ_ONLY_THP_FOR_FS
# ./scripts/config --disable CONFIG_REISERFS_FS
# ./scripts/config --disable CONFIG_RFKILL
# ./scripts/config --disable CONFIG_SAMPLES
# ./scripts/config --disable CONFIG_SECCOMP_CACHE_DEBUG
# ./scripts/config --disable CONFIG_SGI_PARTITION
# ./scripts/config --disable CONFIG_SMP
# ./scripts/config --disable CONFIG_SMS_SIANO_DEBUGFS
# ./scripts/config --disable CONFIG_SOLARIS_X86_PARTITION
# ./scripts/config --disable CONFIG_STRICT_SIGALTSTACK_SIZE
# ./scripts/config --disable CONFIG_SUN_PARTITION
# ./scripts/config --disable CONFIG_SYSV68_PARTITION
# ./scripts/config --disable CONFIG_TEST_ASYNC_DRIVER_PROBE
# ./scripts/config --disable CONFIG_TIME_KUNIT_TEST
# ./scripts/config --disable CONFIG_TIME_KUNIT_TEST
# ./scripts/config --disable CONFIG_ULTRIX_PARTITION
# ./scripts/config --disable CONFIG_UNIXWARE_DISKLABEL
# ./scripts/config --disable CONFIG_USB4_NET
# ./scripts/config --disable CONFIG_USELIB
# ./scripts/config --disable CONFIG_VMXNET3
# ./scripts/config --disable CONFIG_WAN
# ./scripts/config --disable CONFIG_WARN_ABI_ERRORS
# ./scripts/config --disable CONFIG_WARN_ALL_UNSEEDED_RANDOM
# ./scripts/config --disable CONFIG_WARN_MISSING_DOCUMENTS
# ./scripts/config --disable CONFIG_WLAN
# ./scripts/config --disable CONFIG_WQ_POWER_EFFICIENT_DEFAULT
# ./scripts/config --disable CONFIG_WWAN
# ./scripts/config --disable CONFIG_X86_16BIT
# ./scripts/config --disable CONFIG_X86_5LEVEL
# ./scripts/config --disable CONFIG_X86_AMD_PLATFORM_DEVICE
# ./scripts/config --disable CONFIG_X86_AMD_PSTATE
# ./scripts/config --disable CONFIG_X86_AMD_PSTATE_UT
# ./scripts/config --disable CONFIG_X86_CHECK_BIOS_CORRUPTION
# ./scripts/config --disable CONFIG_X86_CPU_RESCTRL
# ./scripts/config --disable CONFIG_X86_DEBUG_FPU
# ./scripts/config --disable CONFIG_X86_EXTENDED_PLATFORM
# ./scripts/config --disable CONFIG_X86_GOLDFISH
# ./scripts/config --disable CONFIG_X86_INTEL_LPSS
# ./scripts/config --disable CONFIG_X86_INTEL_MID
# ./scripts/config --disable CONFIG_X86_IOPL_IOPERM
# ./scripts/config --disable CONFIG_X86_MCE_INJECT
# ./scripts/config --disable CONFIG_X86_MCELOG_LEGACY
# ./scripts/config --disable CONFIG_X86_MPPARSE
# ./scripts/config --disable CONFIG_X86_P4_CLOCKMOD
# ./scripts/config --disable CONFIG_X86_POWERNOW_K8
# ./scripts/config --disable CONFIG_X86_SPEEDSTEP_CENTRINO
# ./scripts/config --disable CONFIG_X86_VSYSCALL_EMULATION
# ./scripts/config --disable CONFIG_X86_X2APIC
# ./scripts/config --disable CONFIG_XEN
# ./scripts/config --disable CONFIG_XFS_ASSERT_FATAL
# ./scripts/config --disable CONFIG_XFS_DEBUG
# ./scripts/config --disable CONFIG_XFS_ONLINE_REPAIR
# ./scripts/config --disable CONFIG_XFS_ONLINE_SCRUB
# ./scripts/config --disable CONFIG_XFS_ONLINE_SCRUB_STATS
# ./scripts/config --disable CONFIG_XFS_POSIX_ACL
# ./scripts/config --disable CONFIG_XFS_QUOTA
# ./scripts/config --disable CONFIG_XFS_RT
# ./scripts/config --disable CONFIG_XFS_SUPPORT_ASCII_CI
# ./scripts/config --disable CONFIG_XFS_SUPPORT_V4
# ./scripts/config --disable USB_NET_DRIVER
# ./scripts/config --disable WIRELESS
cp .config .config.5.defaulted cp .config .config.5.defaulted
} }
@ -730,6 +765,8 @@ doGenerateUninstall() {
mkdir -p $READY mkdir -p $READY
rm -rf $READY/*.* rm -rf $READY/*.*
if ls $WORKDIR/../*.deb 1> /dev/null 2>&1; then
# find .deb packages and generate # find .deb packages and generate
# uninstall commands # uninstall commands
# package name # package name
@ -748,14 +785,12 @@ doGenerateUninstall() {
# move files to destination folder # move files to destination folder
mv -f $WORKDIR/../*.deb $READY/ mv -f $WORKDIR/../*.deb $READY/
mv -f $WORKDIR/../uninstall.sh $READY/
mv -f $WORKDIR/../packages.log $READY/
# prepare uninstall script # prepare uninstall script
cat <<EOF > $READY/uninstall.sh cat <<EOF > $READY/uninstall.sh
#!/bin/bash #!/bin/bash
# ${UPDATED} # ${UPDATED}
dpkg --remove ${PACKAGES} apt remove --purge ${PACKAGES}
sudo sync sudo sync
exit 0 exit 0
EOF EOF
@ -770,9 +805,15 @@ sudo sync
exit 0 exit 0
EOF EOF
chmod +x $READY/*.sh
else
echo ">>> No packages have been created!"
exit 1
fi
# setup execution rights on packages # setup execution rights on packages
chown -R root:root $READY/. chown -R root:root $READY/.
chmod +x $READY/*.sh
} }
# Print compilation end informations # Print compilation end informations
@ -803,6 +844,7 @@ doCompile() {
doEchoStep "make bindeb-pkg" doEchoStep "make bindeb-pkg"
make \ make \
-j$(nproc) \
CC='ccache gcc' \ CC='ccache gcc' \
bindeb-pkg \ bindeb-pkg \
LOCALVERSION=-"$(dpkg --print-architecture)" \ LOCALVERSION=-"$(dpkg --print-architecture)" \
@ -833,6 +875,7 @@ doKernel() {
fi fi
WORKDIR=$WORKDIR/linux-$VERSION WORKDIR=$WORKDIR/linux-$VERSION
doCleanup > >(tee -a $LOGFILE) 2>&1 doCleanup > >(tee -a $LOGFILE) 2>&1
doConfigCloud > >(tee -a $LOGFILE) 2>&1
doOldOne > >(tee -a $LOGFILE) 2>&1 doOldOne > >(tee -a $LOGFILE) 2>&1
# doAllMods > >(tee -a $LOGFILE) 2>&1 # doAllMods > >(tee -a $LOGFILE) 2>&1
# doStripDebug > >(tee -a $LOGFILE) 2>&1 # doStripDebug > >(tee -a $LOGFILE) 2>&1