diff --git a/README.md b/README.md index ad26b67..b3185fa 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,13 @@ sudo bash kernel.sh 6.x 6.8.1 ## CHANGELOG +### 2024-04-09 + +- Mise en place de dossiers spécifiques _(configs, options, patches)_ +- Renommage de 'more uarch' et 'cloud-amd64' +- Déplacement des options dans des fichiers spécifiques _(lisibilité du code et maintenance)_ +- Corrections cosmétiques _(indentations, espaces...)_ + ### 2024-03-20 - Suppression du 'Fast Kernel Headers' _(provoque de nombreuses erreurs de compilation)_ diff --git a/config-cloud-amd64 b/configs/cloud-amd64 similarity index 100% rename from config-cloud-amd64 rename to configs/cloud-amd64 diff --git a/kernel.sh b/kernel.sh index 516af17..ac6b098 100644 --- a/kernel.sh +++ b/kernel.sh @@ -1,9 +1,10 @@ #!/bin/bash -UPDATED="2024-04-05" +UPDATED="2024-04-09" DISABLE=1 # disable some options ENABLE=1 # enable some options SECURED=1 # enable/disable security +PATCHES=1 # enable/disable patch apply UARCH=1 # apply more uarch patch CLANG=1 # use Clang compiler (if not, use GCC) O3=1 # use -O3 vs -O2 (optimisation) @@ -89,6 +90,9 @@ SELF=$(realpath $0) SCRIPT=$(basename $SELF) CWD=$(dirname $SELF) CURRENT=$CWD +CONFIGS=$CURRENT/configs +PATCHES=$CURRENT/patches +OPTIONS=$CURRENT/options BRANCH=$1 BRANCH="${BRANCH:=help}" @@ -118,7 +122,7 @@ doHelp() { doHeader if [ $BRANCH != "help" ]; then - echo ">>> Unspecified, unknown or invalid option specified !" + echo ">>> Unspecified, unknown or invalid option specified!" echo fi echo "Usage: $SCRIPT 'branch' 'version'" @@ -161,7 +165,7 @@ doDownload() { result=$? if [ ! result==0 ]; then - echo ">>> Error in download !" + echo ">>> Error in download!" exit 1 fi fi @@ -171,11 +175,13 @@ doDownload() { doPerformUncompress() { cd $WORKDIR doEchoStep "Uncompress" + rm -rf linux-$VERSION tar -xaf linux-$VERSION.tar.xz + result=$? if [ ! result==0 ]; then - echo ">>> Error in uncompress !" + echo ">>> Error in uncompress!" exit 1 fi } @@ -197,16 +203,17 @@ doUncompress() { doCleanup() { if [ $CLEANUP == 1 ]; then cd $WORKDIR - doEchoStep "Cleanup" + if [ "$CLANG" == "1" ]; then make -j${NPROC} LLVM=1 CC="ccache clang" distclean else make -j${NPROC} CC="ccache gcc" distclean fi + result=$? if [ ! result==0 ]; then - echo ">>> Error in cleanup !" + echo ">>> Error in cleanup!" exit 1 fi fi @@ -216,17 +223,19 @@ doCleanup() { doConfigCloud() { if [ $CONFIGCLOUD == 1 ]; then cd $WORKDIR - doEchoStep "Copy cloud kernel .config" + if [ -f .config ]; then cp .config .config.cloud.before fi - cp $CURRENT/config-cloud-amd64 .config + cp $CONFIGS/cloud-amd64 .config + result=$? if [ ! result==0 ]; then echo ">>> Error in cloud kernel .config copy!" exit 1 fi + cp .config .config.cloud.after fi } @@ -235,8 +244,8 @@ doConfigCloud() { doOldOne() { if [ $CONFIGOLD == 1 ]; then cd $WORKDIR - doEchoStep "Generate config from old kernel .config" + if [ -f .config ]; then cp .config .config.old.before fi @@ -245,11 +254,13 @@ doOldOne() { else make -j${NPROC} CC="ccache gcc" olddefconfig fi + result=$? if [ ! result==0 ]; then - echo ">>> Error in generate .config !" + echo ">>> Error in generate .config!" exit 1 fi + cp .config .config.old.after fi } @@ -258,8 +269,8 @@ doOldOne() { doAllMods() { if [ $CONFIGMOD == 1 ]; then cd $WORKDIR - doEchoStep "Set all modules to be 'module'" + if [ -f .config ]; then cp .config .config.mod.before fi @@ -268,11 +279,13 @@ doAllMods() { else make -j${NPROC} CC="ccache gcc" allmodconfig fi + result=$? if [ ! result==0 ]; then - echo ">>> Error in set all modules not in kernel !" + echo ">>> Error in set all modules not in kernel!" exit 1 fi + cp .config .config.mod.after fi } @@ -280,12 +293,13 @@ doAllMods() { # Define permissions (user/group) to first user created (default 1000) doPermissions() { cd $WORKDIR - doEchoStep "Define user/group" + chown -R 1000:1000 $CURRENT/build/$BRANCH/$VERSION/. + result=$? if [ ! result==0 ]; then - echo ">>> Error in chown !" + echo ">>> Error in chown!" exit 1 fi @@ -295,381 +309,91 @@ doPermissions() { # Strip signature doStripSig() { cd $WORKDIR - doEchoStep "Remove signature/keys" + if [ -f .config ]; then cp .config .config.stripsig.before fi + ./scripts/config --disable MODULE_SIG_ALL ./scripts/config --set-str CONFIG_MODULE_SIG_KEY "" ./scripts/config --set-str CONFIG_SYSTEM_TRUSTED_KEY "" ./scripts/config --set-str CONFIG_SYSTEM_REVOCATION_KEYS "" + result=$? if [ ! result==0 ]; then - echo ">>> Error in chown !" + echo ">>> Error in chown!" exit 1 fi + cp .config .config.stripsig.after } # Strip debug informations doStripDebug() { cd $WORKDIR - doEchoStep "Remove debug informations" + if [ -f .config ]; then cp .config .config.stripdebug.before fi + ./scripts/config --disable DEBUG_INFO ./scripts/config --enable DEBUG_INFO_NONE + result=$? if [ ! result==0 ]; then - echo ">>> Error in chown !" + echo ">>> Error in chown!" exit 1 fi + cp .config .config.stripdebug.after } -# Apply more uarch patch -doMoreUarch() { - if [ $UARCH == 1 ]; then - cd $WORKDIR +# Apply more patchs +doApplyPatches() { + if [ $PATCHES == 1 ]; then - if [ -f $CURRENT/more-uarches-for-kernel.patch ]; then + if [ $UARCH == 1 ] && [ -f $PATCHES/more-uarches.patch ]; then + cd $WORKDIR doEchoStep "Apply 'uarches' patch" + if [ -f .config ]; then cp .config .config.uarches.before fi - patch -p1 <$CURRENT/more-uarches-for-kernel.patch + patch -p1 <$PATCHES/more-uarches.patch + result=$? if [ ! result==0 ]; then - echo ">>> Error in 'uarches' !" + echo ">>> Error in 'uarches'!" exit 1 fi + cp .config .config.uarches.after fi + fi } +# Exexcute './scripts/config' from file input +doScriptsConfigFile() { + SWITCH=$1 + FILE=$2 + + while read -r option; do + ./scripts/config --${SWITCH} $option + done <"$FILE" +} + # Generate defaults options for this kernel doDefaultsDisable() { if [ $DISABLE == 1 ]; then doEchoStep "Options: disable" + if [ -f .config ]; then cp .config .config.disable.before fi - ./scripts/config --disable CONFIG_WERROR - ./scripts/config --disable CONFIG_ACCESSIBILITY - ./scripts/config --disable CONFIG_ACORN_PARTITION - ./scripts/config --disable CONFIG_ACPI_DEBUG - ./scripts/config --disable CONFIG_ACPI_DEBUGGER - ./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_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_PGT_DUMP - ./scripts/config --disable CONFIG_EISA - ./scripts/config --disable CONFIG_EXT3_FS - ./scripts/config --disable CONFIG_EXT4_DEBUG - ./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_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_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_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_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_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_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_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_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_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 - ./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_INFINIBAND - ./scripts/config --disable CONFIG_COMEDI - ./scripts/config --disable CONFIG_SURFACE_PLATFORMS - ./scripts/config --disable CONFIG_SOUNDWIRE - ./scripts/config --disable CONFIG_PREEMPT_VOLUNTARY - ./scripts/config --disable CONFIG_HZ_250 - ./scripts/config --disable CONFIG_HZ_300 - ./scripts/config --disable CONFIG_HZ_1000 - ./scripts/config --disable CONFIG_VIRT_CPU_ACCOUNTING_GEN - ./scripts/config --disable CONFIG_TASKSTATS - ./scripts/config --disable CONFIG_PSI - ./scripts/config --disable CONFIG_SCHED_MC - ./scripts/config --disable CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS - ./scripts/config --disable CONFIG_INIT_ON_ALLOC_DEFAULT_ON - ./scripts/config --disable CONFIG_LIST_HARDENED - ./scripts/config --disable CONFIG_BUG_ON_DATA_CORRUPTION - ./scripts/config --disable CONFIG_CALL_THUNKS_DEBUG - ./scripts/config --disable CONFIG_KPROBES - ./scripts/config --disable CONFIG_SLUB_DEBUG - ./scripts/config --disable CONFIG_RCU_NOCB_CPU - ./scripts/config --disable CONFIG_RCU_BOOST - ./scripts/config --disable CONFIG_PCSPKR_PLATFORM - ./scripts/config --disable CONFIG_KEXEC - ./scripts/config --disable CONFIG_KEXEC_FILE - ./scripts/config --disable CONFIG_DEBUG_FS_ALLOW_ALL - ./scripts/config --disable CONFIG_DEBUG_FS - ./scripts/config --disable CONFIG_DEVMEM - ./scripts/config --disable CONFIG_X86_SGX - ./scripts/config --disable CONFIG_INTEL_TDX_HOST - ./scripts/config --disable CONFIG_X86_UMIP - ./scripts/config --disable CONFIG_X86_USER_SHADOW_STACK - ./scripts/config --disable CONFIG_X86_SGX_KVM + doScriptsConfigFile disable $OPTIONS/disable.txt cp .config .config.disable.after fi @@ -677,415 +401,14 @@ doDefaultsDisable() { doDefaultsEnable() { if [ $ENABLE == 1 ]; then doEchoStep "Options: enable" + if [ -f .config ]; then cp .config .config.enable.before fi - if [ "$CLANG" == "1" ]; then - ./scripts/config --enable CONFIG_HAS_LTO_CLANG - ./scripts/config --enable CONFIG_ARCH_SUPPORTS_CFI_CLANG - ./scripts/config --enable CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN - ./scripts/config --enable CONFIG_ARCH_SUPPORTS_LTO_CLANG - ./scripts/config --enable CONFIG_LTO_CLANG_THIN - ./scripts/config --enable CONFIG_LTO_CLANG_FULL + doScriptsConfigFile enable $OPTIONS/clang.txt fi - - ./scripts/config --enable CONFIG_ADDRESS_MASKING - ./scripts/config --enable CONFIG_AF_KCM - ./scripts/config --enable CONFIG_ARCH_CPUIDLE_HALTPOLL - ./scripts/config --enable CONFIG_BINFMT_MISC - ./scripts/config --enable CONFIG_BINFMT_SCRIPT - ./scripts/config --enable CONFIG_BLK_CGROUP - ./scripts/config --enable CONFIG_BLK_DEV - ./scripts/config --enable CONFIG_BLK_DEV_INITRD - ./scripts/config --enable CONFIG_BLK_WBT - ./scripts/config --enable CONFIG_BOOT_CONFIG - ./scripts/config --enable CONFIG_BSD_PROCESS_ACCT - ./scripts/config --enable CONFIG_CALL_DEPTH_TRACKING - ./scripts/config --enable CONFIG_CGROUP_CPUACCT - ./scripts/config --enable CONFIG_CGROUP_DEVICE - ./scripts/config --enable CONFIG_CGROUP_MISC - ./scripts/config --enable CONFIG_CGROUP_NET_CLASSID - ./scripts/config --enable CONFIG_CGROUP_NET_PRIO - ./scripts/config --enable CONFIG_CGROUP_PIDS - ./scripts/config --enable CONFIG_CGROUP_RDMA - ./scripts/config --enable CONFIG_CGROUP_SCHED - ./scripts/config --enable CONFIG_CGROUPS - ./scripts/config --enable CONFIG_CIFS - ./scripts/config --enable CONFIG_CIFS_ALLOW_INSECURE_LEGACY - ./scripts/config --enable CONFIG_CIFS_DFS_UPCALL - ./scripts/config --enable CONFIG_CIFS_STATS2 - ./scripts/config --enable CONFIG_CIFS_SWN_UPCALL - ./scripts/config --enable CONFIG_COMPAT_32BIT_TIME - ./scripts/config --enable CONFIG_CONFIGFS_FS - ./scripts/config --enable CONFIG_CPU_FREQ - ./scripts/config --enable CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND - ./scripts/config --enable CONFIG_CPU_FREQ_GOV_CONSERVATIVE - ./scripts/config --enable CONFIG_CPU_FREQ_GOV_ONDEMAND - ./scripts/config --enable CONFIG_CPU_FREQ_GOV_PERFORMANCE - ./scripts/config --enable CONFIG_CPU_FREQ_GOV_POWERSAVE - ./scripts/config --enable CONFIG_CPU_FREQ_GOV_USERSPACE - ./scripts/config --enable CONFIG_CPU_IBPB_ENTRY - ./scripts/config --enable CONFIG_CPU_UNRET_ENTRY - ./scripts/config --enable CONFIG_DEVTMPFS - ./scripts/config --enable CONFIG_DRM_VIRTIO_GPU - ./scripts/config --enable CONFIG_DRM_VIRTIO_GPU_KMS - ./scripts/config --enable CONFIG_EFI - ./scripts/config --enable CONFIG_EFI_BOOTLOADER_CONTROL - ./scripts/config --enable CONFIG_EFI_MIXED - ./scripts/config --enable CONFIG_EFI_PARTITION - ./scripts/config --enable CONFIG_EFI_VARS_PSTORE - ./scripts/config --enable CONFIG_EFIVAR_FS - ./scripts/config --enable CONFIG_ETHERNET - ./scripts/config --enable CONFIG_ETHTOOL_NETLINK - ./scripts/config --enable CONFIG_EXT2_FS - ./scripts/config --enable CONFIG_EXT4_FS - ./scripts/config --enable CONFIG_EXT4_USE_FOR_EXT2 - ./scripts/config --enable CONFIG_FANOTIFY - ./scripts/config --enable CONFIG_FORTIFY_SOURCE - ./scripts/config --enable CONFIG_HANGCHECK_TIMER - ./scripts/config --enable CONFIG_HARDENED_USERCOPY - ./scripts/config --enable CONFIG_HIGH_RES_TIMERS - ./scripts/config --enable CONFIG_HYPERVISOR_GUEST - ./scripts/config --enable CONFIG_IA32_EMULATION - ./scripts/config --enable CONFIG_IKCONFIG - ./scripts/config --enable CONFIG_IKCONFIG_PROC - ./scripts/config --enable CONFIG_IKHEADERS - ./scripts/config --enable CONFIG_INET - ./scripts/config --enable CONFIG_INET_AH - ./scripts/config --enable CONFIG_INET_ESP - ./scripts/config --enable CONFIG_INET_IPCOMP - ./scripts/config --enable CONFIG_INET_RAW_DIAG - ./scripts/config --enable CONFIG_INET_UDP_DIAG - ./scripts/config --enable CONFIG_INET6_AH - ./scripts/config --enable CONFIG_INET6_ESP - ./scripts/config --enable CONFIG_INET6_IPCOMP - ./scripts/config --enable CONFIG_INTEL_HFI_THERMAL - ./scripts/config --enable CONFIG_INTEL_IDLE - ./scripts/config --enable CONFIG_INTEL_POWERCLAMP - ./scripts/config --enable CONFIG_INTEL_RST - ./scripts/config --enable CONFIG_IOMMU_SUPPORT - ./scripts/config --enable CONFIG_IOSCHED_BFQ - ./scripts/config --enable CONFIG_IP_NF_ARPTABLES - ./scripts/config --enable CONFIG_IP_NF_IPTABLES - ./scripts/config --enable CONFIG_IP6_NF_IPTABLES - ./scripts/config --enable CONFIG_IPV6_VTI - ./scripts/config --enable CONFIG_JUMP_LABEL - ./scripts/config --enable CONFIG_KERNEL_XZ - ./scripts/config --enable CONFIG_KVM - ./scripts/config --enable CONFIG_KVM_INTEL - ./scripts/config --enable CONFIG_LOCALVERSION_AUTO - ./scripts/config --enable CONFIG_LRU_GEN - ./scripts/config --enable CONFIG_LRU_GEN_ENABLED - ./scripts/config --enable CONFIG_MEDIA_SUBDRV_AUTOSELECT - ./scripts/config --enable CONFIG_MEDIA_SUPPORT - ./scripts/config --enable CONFIG_MEDIA_SUPPORT_FILTER - ./scripts/config --enable CONFIG_MEMCG - ./scripts/config --enable CONFIG_MODULE_COMPRESS_NONE - ./scripts/config --enable CONFIG_MODULE_FORCE_LOAD - ./scripts/config --enable CONFIG_MODULE_UNLOAD - ./scripts/config --enable CONFIG_MODULES - ./scripts/config --enable CONFIG_MQ_IOSCHED_DEADLINE - ./scripts/config --enable CONFIG_MQ_IOSCHED_KYBER - ./scripts/config --enable CONFIG_MSDOS_PARTITION - ./scripts/config --enable CONFIG_NET - ./scripts/config --enable CONFIG_NET_CLS_CGROUP - ./scripts/config --enable CONFIG_NET_CLS_FLOWER - ./scripts/config --enable CONFIG_NET_CLS_FW - ./scripts/config --enable CONFIG_NET_CLS_ROUTE4 - ./scripts/config --enable CONFIG_NET_CORE - ./scripts/config --enable CONFIG_NET_FOU - ./scripts/config --enable CONFIG_NET_FOU_IP_TUNNELS - ./scripts/config --enable CONFIG_NET_IPVTI - ./scripts/config --enable CONFIG_NET_SCH_CBS - ./scripts/config --enable CONFIG_NET_SCH_ETF - ./scripts/config --enable CONFIG_NET_SCH_GRED - ./scripts/config --enable CONFIG_NET_SCH_HFSC - ./scripts/config --enable CONFIG_NET_SCH_HHF - ./scripts/config --enable CONFIG_NET_SCH_HTB - ./scripts/config --enable CONFIG_NET_SCH_PRIO - ./scripts/config --enable CONFIG_NET_SCH_RED - ./scripts/config --enable CONFIG_NET_SCH_SFB - ./scripts/config --enable CONFIG_NET_SCH_SFQ - ./scripts/config --enable CONFIG_NET_SCH_TAPRIO - ./scripts/config --enable CONFIG_NET_SCH_TBF - ./scripts/config --enable CONFIG_NET_SCH_TEQL - ./scripts/config --enable CONFIG_NET_SCHED - ./scripts/config --enable CONFIG_NETDEVICES - ./scripts/config --enable CONFIG_NETFILTER - ./scripts/config --enable CONFIG_NETFILTER_XTABLES - ./scripts/config --enable CONFIG_NETLINK_DIAG - ./scripts/config --enable CONFIG_NETWORK_FILESYSTEMS - ./scripts/config --enable CONFIG_NF_SOCKET_IPV4 - ./scripts/config --enable CONFIG_NF_SOCKET_IPV6 - ./scripts/config --enable CONFIG_NF_TABLES - ./scripts/config --enable CONFIG_PACKET - ./scripts/config --enable CONFIG_PACKET_DIAG - ./scripts/config --enable CONFIG_PAGE_REPORTING - ./scripts/config --enable CONFIG_PAGE_TABLE_ISOLATION - ./scripts/config --enable CONFIG_PARAVIRT - ./scripts/config --enable CONFIG_PARTITION_ADVANCED - ./scripts/config --enable CONFIG_PCI - ./scripts/config --enable CONFIG_PCI_IOV - ./scripts/config --enable CONFIG_PCI_PASID - ./scripts/config --enable CONFIG_PCI_PRI - ./scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE - ./scripts/config --enable CONFIG_PCIEASPM - ./scripts/config --enable CONFIG_PM_AUTOSLEEP - ./scripts/config --enable CONFIG_PNP - ./scripts/config --enable CONFIG_PROC_KCORE - ./scripts/config --enable CONFIG_PSAMPLE - ./scripts/config --enable CONFIG_PVH - ./scripts/config --enable CONFIG_PVPANIC - ./scripts/config --enable CONFIG_RCU_EXPERT - ./scripts/config --enable CONFIG_RETHUNK - ./scripts/config --enable CONFIG_SCHED_AUTOGROUP - ./scripts/config --enable CONFIG_SHUFFLE_PAGE_ALLOCATOR - ./scripts/config --enable CONFIG_SMB_SERVER - ./scripts/config --enable CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN - ./scripts/config --enable CONFIG_SYN_COOKIES - ./scripts/config --enable CONFIG_SYSFB_SIMPLEFB - ./scripts/config --enable CONFIG_SYSVIPC - ./scripts/config --enable CONFIG_TCP_CONG_ADVANCED - ./scripts/config --enable CONFIG_TCP_CONG_BBR - ./scripts/config --enable CONFIG_TMPFS - ./scripts/config --enable CONFIG_TRANSPARENT_HUGEPAGE - ./scripts/config --enable CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS - ./scripts/config --enable CONFIG_UNIX - ./scripts/config --enable CONFIG_VGA_ARB - ./scripts/config --enable CONFIG_VHOST_NET - ./scripts/config --enable CONFIG_VIRT_DRIVERS - ./scripts/config --enable CONFIG_VIRTIO_BLK - ./scripts/config --enable CONFIG_VIRTIO_CONSOLE - ./scripts/config --enable CONFIG_VIRTIO_IOMMU - ./scripts/config --enable CONFIG_VIRTUALIZATION - ./scripts/config --enable CONFIG_VMGENID - ./scripts/config --enable CONFIG_WATCH_QUEUE - ./scripts/config --enable CONFIG_X86_ACPI_CPUFREQ - ./scripts/config --enable CONFIG_X86_CPUID - ./scripts/config --enable CONFIG_X86_INTEL_PSTATE - ./scripts/config --enable CONFIG_X86_INTEL_TSX_MODE_AUTO - ./scripts/config --enable CONFIG_X86_MSR - ./scripts/config --enable CONFIG_X86_PKG_TEMP_THERMAL - ./scripts/config --enable CONFIG_X86_PLATFORM_DEVICES - ./scripts/config --enable CONFIG_X86_PMEM_LEGACY - ./scripts/config --enable CONFIG_X86_X32_ABI - ./scripts/config --enable CONFIG_ZRAM - ./scripts/config --enable DEFAULT_BBR - ./scripts/config --enable FAIR_GROUP_SCHED - ./scripts/config --enable VIRTIO_MENU - ./scripts/config --enable ZRAM_DEF_COMP_ZSTD - ./scripts/config --enable CONFIG_ATA - ./scripts/config --enable CONFIG_ATA_SFF - ./scripts/config --enable CONFIG_ATA_BMDMA - ./scripts/config --enable CONFIG_ATA_ACPI - ./scripts/config --enable CONFIG_SATA_AHCI - ./scripts/config --enable CONFIG_SCSI - ./scripts/config --enable CONFIG_SCSI_PROC_FS - ./scripts/config --enable CONFIG_BLK_DEV_SD - ./scripts/config --enable CONFIG_CHR_DEV_SG - ./scripts/config --enable CONFIG_SCSI_SAS_ATA - ./scripts/config --enable CONFIG_SCSI_VIRTIO - ./scripts/config --enable CONFIG_VFIO_VIRQFD - ./scripts/config --enable CONFIG_VIRTIO_PCI - ./scripts/config --enable CONFIG_VIRTIO_PCI_LEGACY - ./scripts/config --enable CONFIG_VIRTIO_PMEM - ./scripts/config --enable CONFIG_VIRTIO_BALLOON - ./scripts/config --enable CONFIG_VIRTIO_MEM - ./scripts/config --enable CONFIG_VIRTIO_INPUT - ./scripts/config --enable CONFIG_VIRTIO_MMIO - ./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_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_PROCESSOR_SELECT - ./scripts/config --enable CONFIG_CPU_SUP_INTEL - ./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 - ./scripts/config --enable CONFIG_HZ_100 - ./scripts/config --enable CONFIG_PREEMPT_NONE - ./scripts/config --enable CONFIG_INTEL_TDX_HOST - ./scripts/config --enable CONFIG_ZSWAP - ./scripts/config --enable CONFIG_ZSWAP_DEFAULT_ON - ./scripts/config --enable CONFIG_TRANSPARENT_HUGEPAGE_MADVISE - ./scripts/config --enable CONFIG_BTRFS_FS_POSIX_ACL - ./scripts/config --enable CONFIG_XFS_POSIX_ACL - ./scripts/config --enable CONFIG_CEPH_FS_POSIX_ACL - ./scripts/config --enable CONFIG_EROFS_FS_POSIX_ACL - ./scripts/config --enable CONFIG_NFS_V3_ACL - ./scripts/config --enable CONFIG_NFSD_V3_ACL - ./scripts/config --enable CONFIG_NTFS3_FS_POSIX_ACL - ./scripts/config --enable CONFIG_TMPFS_POSIX_ACL - ./scripts/config --enable CONFIG_EXT4_FS_POSIX_ACL - ./scripts/config --enable CONFIG_FS_POSIX_ACL - ./scripts/config --enable CONFIG_EXT2_FS_POSIX_ACL - ./scripts/config --enable CONFIG_REISERFS_FS_POSIX_ACL - ./scripts/config --enable CONFIG_JFS_POSIX_ACL - ./scripts/config --enable CONFIG_F2FS_FS_POSIX_ACL - ./scripts/config --enable CONFIG_JFFS2_FS_POSIX_ACL - ./scripts/config --enable CONFIG_NFSD_V2_ACL - ./scripts/config --enable CONFIG_9P_FS_POSIX_ACL - ./scripts/config --enable CONFIG_EROFS_FS_XATTR - ./scripts/config --enable CONFIG_EVM_ADD_XATTRS - ./scripts/config --enable CONFIG_SQUASHFS_XATTR - ./scripts/config --enable CONFIG_CIFS_XATTR - ./scripts/config --enable CONFIG_TMPFS_XATTR - ./scripts/config --enable CONFIG_EXT2_FS_XATTR - ./scripts/config --enable CONFIG_EXT4_FS_XATTR - ./scripts/config --enable CONFIG_REISERFS_FS_XATTR - ./scripts/config --enable CONFIG_F2FS_FS_XATTR - ./scripts/config --enable CONFIG_JFFS2_FS_XATTR - ./scripts/config --enable CONFIG_UBIFS_FS_XATTR - ./scripts/config --enable CONFIG_EXT4_FS_SECURITY - ./scripts/config --enable CONFIG_EXT2_FS_SECURITY - ./scripts/config --enable CONFIG_REISERFS_FS_SECURITY - ./scripts/config --enable CONFIG_JFS_SECURITY - ./scripts/config --enable CONFIG_F2FS_FS_SECURITY - ./scripts/config --enable CONFIG_JFFS2_FS_SECURITY - ./scripts/config --enable CONFIG_UBIFS_FS_SECURITY - ./scripts/config --enable CONFIG_EROFS_FS_SECURITY - ./scripts/config --enable CONFIG_SECURITYFS - ./scripts/config --enable CONFIG_KEYS_REQUEST_CACHE - ./scripts/config --enable CONFIG_IMA_READ_POLICY - ./scripts/config --enable CONFIG_CRYPTO_ECDH - ./scripts/config --enable CONFIG_CRYPTO_ECRDSA - ./scripts/config --enable CONFIG_CRYPTO_SM2 - ./scripts/config --enable CONFIG_CRYPTO_CURVE25519 - ./scripts/config --enable CONFIG_CRYPTO_AES_TI - ./scripts/config --enable CONFIG_CRYPTO_ARIA - ./scripts/config --enable CONFIG_CRYPTO_BLOWFISH - ./scripts/config --enable CONFIG_CRYPTO_CAMELLIA - ./scripts/config --enable CONFIG_CRYPTO_CAST5 - ./scripts/config --enable CONFIG_CRYPTO_CAST6 - ./scripts/config --enable CONFIG_CRYPTO_DES - ./scripts/config --enable CONFIG_CRYPTO_FCRYPT - ./scripts/config --enable CONFIG_CRYPTO_SERPENT - ./scripts/config --enable CONFIG_CRYPTO_SM4_GENERIC - ./scripts/config --enable CONFIG_CRYPTO_TWOFISH - ./scripts/config --enable CONFIG_CRYPTO_ADIANTUM - ./scripts/config --enable CONFIG_CRYPTO_CHACHA20 - ./scripts/config --enable CONFIG_CRYPTO_CFB - ./scripts/config --enable CONFIG_CRYPTO_CTS - ./scripts/config --enable CONFIG_CRYPTO_HCTR2 - ./scripts/config --enable CONFIG_CRYPTO_KEYWRAP - ./scripts/config --enable CONFIG_CRYPTO_LRW - ./scripts/config --enable CONFIG_CRYPTO_OFB - ./scripts/config --enable CONFIG_CRYPTO_PCBC - ./scripts/config --enable CONFIG_CRYPTO_XTS - ./scripts/config --enable CONFIG_CRYPTO_AEGIS128 - ./scripts/config --enable CONFIG_CRYPTO_CHACHA20POLY1305 - ./scripts/config --enable CONFIG_CRYPTO_ESSIV - ./scripts/config --enable CONFIG_CRYPTO_BLAKE2B - ./scripts/config --enable CONFIG_CRYPTO_MD4 - ./scripts/config --enable CONFIG_CRYPTO_MICHAEL_MIC - ./scripts/config --enable CONFIG_CRYPTO_POLY1305 - ./scripts/config --enable CONFIG_CRYPTO_RMD160 - ./scripts/config --enable CONFIG_CRYPTO_SM3_GENERIC - ./scripts/config --enable CONFIG_CRYPTO_STREEBOG - ./scripts/config --enable CONFIG_CRYPTO_VMAC - ./scripts/config --enable CONFIG_CRYPTO_WP512 - ./scripts/config --enable CONFIG_CRYPTO_XCBC - ./scripts/config --enable CONFIG_CRYPTO_XXHASH - ./scripts/config --enable CONFIG_CRYPTO_CRC32 - ./scripts/config --enable CONFIG_CRYPTO_LZ4HC - ./scripts/config --enable CONFIG_CRYPTO_ANSI_CPRNG - ./scripts/config --enable CONFIG_CRYPTO_USER_API_HASH - ./scripts/config --enable CONFIG_CRYPTO_USER_API_SKCIPHER - ./scripts/config --enable CONFIG_CRYPTO_USER_API_RNG - ./scripts/config --enable CONFIG_CRYPTO_USER_API_AEAD - ./scripts/config --enable CONFIG_CRYPTO_AES_NI_INTEL - ./scripts/config --enable CONFIG_CRYPTO_SHA1_SSSE3 - ./scripts/config --enable CONFIG_CRYPTO_SHA256_SSSE3 - ./scripts/config --enable CONFIG_CRYPTO_SHA512_SSSE3 - ./scripts/config --enable CONFIG_CRYPTO_CRC32C_INTEL - ./scripts/config --enable CONFIG_CRYPTO_CRC32_PCLMUL - ./scripts/config --enable CONFIG_CRYPTO_LIB_CHACHA - ./scripts/config --enable CONFIG_CRYPTO_LIB_CURVE25519 - ./scripts/config --enable CONFIG_CRYPTO_LIB_POLY1305 - ./scripts/config --enable CONFIG_CORDIC - ./scripts/config --enable CONFIG_CRC7 - ./scripts/config --enable CONFIG_CRC8 - ./scripts/config --enable CRYPTO_LIB_CHACHA20POLY1305 - ./scripts/config --enable CONFIG_CRC4 - ./scripts/config --enable CONFIG_NO_HZ_IDLE - ./scripts/config --enable CONFIG_PERF_EVENTS_INTEL_UNCORE - ./scripts/config --enable CONFIG_PERF_EVENTS_INTEL_RAPL - ./scripts/config --enable CONFIG_PERF_EVENTS_INTEL_CSTATE - ./scripts/config --enable CONFIG_X86_CPA_STATISTICS - ./scripts/config --enable CONFIG_LEGACY_VSYSCALL_XONLY - ./scripts/config --enable CONFIG_ACPI_FPDT - ./scripts/config --enable CONFIG_ACPI_BGRT - ./scripts/config --enable CONFIG_ACPI_NFIT - ./scripts/config --enable CONFIG_ACPI_DPTF - ./scripts/config --enable CONFIG_ACPI_FFH - ./scripts/config --enable CONFIG_ACPI_PFRUT - ./scripts/config --enable CONFIG_DEVTMPFS_MOUNT - ./scripts/config --enable CONFIG_FW_LOADER_COMPRESS_ZSTD - ./scripts/config --enable CONFIG_FW_CFG_SYSFS - ./scripts/config --enable CONFIG_EFI_COCO_SECRET - ./scripts/config --enable CONFIG_VIRTIO_NET - ./scripts/config --enable CONFIG_MEDIA_PLATFORM_SUPPORT - ./scripts/config --enable CONFIG_FB_VESA - ./scripts/config --enable CONFIG_FB_NVIDIA - ./scripts/config --enable CONFIG_FB_RIVA - ./scripts/config --enable CONFIG_FB_SIMPLE - ./scripts/config --enable CONFIG_DMADEVICES - ./scripts/config --enable CONFIG_INTEL_IDMA64 - ./scripts/config --enable CONFIG_INTEL_IDXD - ./scripts/config --enable CONFIG_INTEL_IOATDMA - ./scripts/config --enable CONFIG_VFIO_PCI_VGA - ./scripts/config --enable CONFIG_NFS_FS - ./scripts/config --enable CONFIG_BPF - ./scripts/config --enable CONFIG_BPF_JIT - ./scripts/config --enable CONFIG_BPF_SYSCALL - ./scripts/config --enable CONFIG_NET_CLS_BPF - ./scripts/config --enable CONFIG_BPF_JIT_ALWAYS_ON - ./scripts/config --enable CONFIG_NET_ACT_BPF - ./scripts/config --enable CONFIG_HAVE_BPF_JIT - ./scripts/config --enable CONFIG_BPF_EVENTS - ./scripts/config --enable CONFIG_RCU_LAZY - ./scripts/config --enable CONFIG_X86_VSYSCALL_EMULATION - ./scripts/config --enable CONFIG_ZSWAP_EXCLUSIVE_LOADS_DEFAULT_ON - ./scripts/config --enable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD - ./scripts/config --enable ZRAM_MEMORY_TRACKING - ./scripts/config --enable CONFIG_ZRAM_MULTI_COMP - ./scripts/config --enable CONFIG_KEXEC - ./scripts/config --enable CONFIG_CRASH_CORE - ./scripts/config --enable CONFIG_CRASH_DUMP - ./scripts/config --enable CONFIG_KEXEC_CORE - ./scripts/config --enable CONFIG_HAVE_IMA_KEXEC - ./scripts/config --enable CONFIG_KEXEC_FILE - ./scripts/config --enable CONFIG_X86_5LEVEL - ./scripts/config --enable CONFIG_ARCH_SELECTS_KEXEC_FILE - ./scripts/config --enable CONFIG_CALL_PADDING - ./scripts/config --enable CONFIG_HAVE_ARCH_NODE_DEV_GROUP - ./scripts/config --enable CONFIG_WATCHDOG_CORE - ./scripts/config --enable CONFIG_DEVMEM - ./scripts/config --enable CONFIG_STRICT_DEVMEM - ./scripts/config --enable CONFIG_IO_STRICT_DEVMEM - ./scripts/config --enable CONFIG_IPV6 - ./scripts/config --enable CONFIG_X86_64 - ./scripts/config --enable CONFIG_SMP - ./scripts/config --enable CONFIG_NUMA - ./scripts/config --enable CONFIG_KSM - ./scripts/config --enable CONFIG_SYSFS - ./scripts/config --enable CONFIG_KALLSYMS - ./scripts/config --enable CONFIG_KALLSYMS_ALL - ./scripts/config --enable CONFIG_COMPILE_TEST + doScriptsConfigFile enable $OPTIONS/enable.txt case ${ARCH} in "x86-64-v2") @@ -1106,31 +429,26 @@ doDefaultMitigations() { if [ -f .config ]; then cp .config .config.mitigations.before fi + if [ $SECURED == 0 ]; then doEchoStep "Options: secured OFF" - ./scripts/config --disable CONFIG_SPECULATION_MITIGATIONS - ./scripts/config --disable CONFIG_RETPOLINE - ./scripts/config --disable CONFIG_CPU_IBRS_ENTRY - ./scripts/config --disable CONFIG_SLS - ./scripts/config --disable CONFIG_GDS_FORCE_MITIGATION + doScriptsConfigFile disable $OPTIONS/unsecured.txt else doEchoStep "Options: secured ON" - ./scripts/config --enable CONFIG_SPECULATION_MITIGATIONS - ./scripts/config --enable CONFIG_RETPOLINE - ./scripts/config --enable CONFIG_CPU_IBRS_ENTRY - ./scripts/config --enable CONFIG_SLS - ./scripts/config --enable CONFIG_GDS_FORCE_MITIGATION + doScriptsConfigFile disable $OPTIONS/secured.txt fi + cp .config .config.mitigations.after } doDefaultsTesting() { if [ $TESTING == 1 ]; then doEchoStep "Options: testings activated..." + if [ -f .config ]; then cp .config .config.testing.before fi + ./scripts/config --set-str CONFIG_LOCALVERSION '-test' - ./scripts/config --set-str CONFIG_LOCALVERSION '-zogg-test' cp .config .config.testing.after fi } @@ -1141,7 +459,7 @@ doDefaults() { cp .config .config.default.before fi - doMoreUarch + doApplyPatches doEchoStep "Define options" if [ "$CLANG" == "1" ]; then @@ -1161,8 +479,8 @@ doDefaults() { # Edit .config doEditSettings() { cd $WORKDIR + doEchoStep "Settings tuning!" - doEchoStep "Settings tuning !" if [ -f .config ]; then cp .config .config.edit.before fi @@ -1171,11 +489,13 @@ doEditSettings() { else make -j${NPROC} CC="ccache gcc" menuconfig fi + result=$? if [ ! result==0 ]; then - echo ">>> Error in settings edit !" + echo ">>> Error in settings edit!" exit 1 fi + cp .config .config.edit.after } @@ -1193,12 +513,15 @@ doGenerateUninstall() { PACKAGES= TAG="_$VERSION-1_amd64.deb" search_dir=$WORKDIR/../ + for entry in "$search_dir"/*.deb; do name="${entry##*/}" pname=${name//$TAG/} + if [ ! "$pname" == "linux-libc-dev" ]; then PACKAGES="$PACKAGES $pname" fi + echo "$name" >>$READY/packages.log done @@ -1271,12 +594,12 @@ doCompile() { doEchoStep "Compiler: GCC" fi - # export MAKEFLAGS="-j$((NPROC + 1)) -l${NPROC} -Werror=maybe-uninitialized -Werror=nonnull -Wno-maybe-uninitialized -Wno-uninitialized -Wno-free-nonheap-object -Wno-nonnull" export MAKEFLAGS="-j$((NPROC + 1)) -l${NPROC} -Wno-error" export CFLAGS="-march=${ARCH} -O${GCCO} -flto -pipe -msse -msse2 -msse3 -mmmx" export CXXFLAGS="${CFLAGS}" export KCFLAGS="-march=${ARCH} -O${GCCO}" export KCPPFLAGS="${KCFLAGS}" + set CONFIG_SITE=/etc/dpkg-cross/cross-config.amd64 set DEB_BUILD_OPTIONS=nocheck @@ -1287,6 +610,7 @@ doCompile() { doEchoStep "KCPPFLAGS: $KCPPFLAGS" doEchoStep "make bindeb-pkg" + if [ "$CLANG" == "1" ]; then make \ -j${NPROC} \ @@ -1295,20 +619,20 @@ doCompile() { HOSTCC='ccache clang' \ bindeb-pkg \ LOCALVERSION=-"$(dpkg --print-architecture)" \ - KDEB_PKGVERSION="$(make kernelversion)-1" + KDEB_PKGVERSION="$(make kernelversion)" else make \ -j${NPROC} \ CC='ccache gcc' \ bindeb-pkg \ LOCALVERSION=-"$(dpkg --print-architecture)" \ - KDEB_PKGVERSION="$(make kernelversion)-1" + KDEB_PKGVERSION="$(make kernelversion)" fi - result=$? + result=$? doEchoStep "make bindeb-pkg: $result" if [ ! result==0 ]; then - echo ">>> Error in 'make bindeb-pkg' !" + echo ">>> Error in 'make bindeb-pkg'!" exit 1 fi @@ -1346,8 +670,8 @@ doKernel() { doAllMods > >(tee -a $LOGFILE) 2>&1 doDefaults > >(tee -a $LOGFILE) 2>&1 doPermissions > >(tee -a $LOGFILE) 2>&1 - doEditSettings + doEditSettings while true; do read -p "Do you wish to run compile? " yn case $yn in diff --git a/options/clang.txt b/options/clang.txt new file mode 100644 index 0000000..1859607 --- /dev/null +++ b/options/clang.txt @@ -0,0 +1,6 @@ +CONFIG_HAS_LTO_CLANG +CONFIG_ARCH_SUPPORTS_CFI_CLANG +CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN +CONFIG_ARCH_SUPPORTS_LTO_CLANG +CONFIG_LTO_CLANG_THIN +CONFIG_LTO_CLANG_FULL diff --git a/options/disable.txt b/options/disable.txt new file mode 100644 index 0000000..a71ced0 --- /dev/null +++ b/options/disable.txt @@ -0,0 +1,304 @@ +CONFIG_WERROR +CONFIG_ACCESSIBILITY +CONFIG_ACORN_PARTITION +CONFIG_ACPI_DEBUG +CONFIG_ACPI_DEBUGGER +CONFIG_ACPI_EC_DEBUGFS +CONFIG_ACRN_GUEST +CONFIG_AF_RXRPC +CONFIG_AIX_PARTITION +CONFIG_AMD_IOMMU +CONFIG_AMIGA_PARTITION +CONFIG_APPLE_DART +CONFIG_APPLE_PROPERTIES +CONFIG_ARCH_MEMORY_PROBE +CONFIG_ARM_INTEGRATOR_LM +CONFIG_ARM_SCMI_PROTOCOL +CONFIG_ARM_SCPI_PROTOCOL +CONFIG_ARM_SMMU +CONFIG_ATA_OVER_ETH +CONFIG_ATARI_PARTITION +CONFIG_ATM_DRIVERS +CONFIG_BFQ_CGROUP_DEBUG +CONFIG_BLK_CGROUP_IOLATENCY +CONFIG_BLK_DEBUG_FS +CONFIG_BLK_DEV_BSGLIB +CONFIG_BLK_DEV_INTEGRITY +CONFIG_BLK_DEV_THROTTLING_LOW +CONFIG_BLK_DEV_ZONED +CONFIG_BSD_DISKLABEL +CONFIG_BT +CONFIG_BTRFS_ASSERT +CONFIG_BTRFS_DEBUG +CONFIG_BTRFS_FS +CONFIG_BTRFS_FS_CHECK_INTEGRITY +CONFIG_BTRFS_FS_REF_VERIFY +CONFIG_BTRFS_FS_RUN_SANITY_TESTS +CONFIG_CACHEFILES_DEBUG +CONFIG_CACHEFILES_ONDEMAND +CONFIG_CAIF +CONFIG_CAN +CONFIG_CDROM_PKTCDVD +CONFIG_CEPH_LIB +CONFIG_CFG80211 +CONFIG_CGROUP_DEBUG +CONFIG_CIFS_DEBUG +CONFIG_CMA +CONFIG_CMA_DEBUG +CONFIG_CMA_DEBUGFS +CONFIG_CMA_SYSFS +CONFIG_COMPAT_VDSO +CONFIG_CPA_DEBUG +CONFIG_CPU_SRSO +CONFIG_CPU_SUP_AMD +CONFIG_CPU_SUP_CENTAUR +CONFIG_CPU_SUP_HYGON +CONFIG_CPU_SUP_ZHAOXIN +CONFIG_CRASH_DUMP +CONFIG_DAMON +CONFIG_DEBUG_BOOT_PARAMS +CONFIG_DEBUG_CGROUP_REF +CONFIG_DEBUG_CREDENTIALS +CONFIG_DEBUG_DEVRES +CONFIG_DEBUG_DRIVER +CONFIG_DEBUG_ENTRY +CONFIG_DEBUG_KERNEL +CONFIG_DEBUG_KOBJECT +CONFIG_DEBUG_KOBJECT_RELEASE +CONFIG_DEBUG_LIST +CONFIG_DEBUG_MAPLE_TREE +CONFIG_DEBUG_MISC +CONFIG_DEBUG_NMI_SELFTEST +CONFIG_DEBUG_NOTIFIERS +CONFIG_DEBUG_PERF_USE_VMALLOC +CONFIG_DEBUG_PLIST +CONFIG_DEBUG_PREEMPT +CONFIG_DEBUG_RSEQ +CONFIG_DEBUG_SG +CONFIG_DEBUG_SHIRQ +CONFIG_DEBUG_TEST_DRIVER_REMOVE +CONFIG_DEBUG_TIMEKEEPING +CONFIG_DEBUG_TLBFLUSH +CONFIG_DEBUG_WQ_FORCE_RR_CPU +CONFIG_DRM_AMDGPU +CONFIG_DRM_HDLCD +CONFIG_DRM_KOMEDA +CONFIG_DRM_LEGACY +CONFIG_DRM_MALI_DISPLAY +CONFIG_DRM_RADEON +CONFIG_DVB_DUMMY_FE +CONFIG_DVB_MMAP +CONFIG_EARLY_PRINTK +CONFIG_EDD +CONFIG_EFI_FAKE_MEMMAP +CONFIG_EFI_PGT_DUMP +CONFIG_EISA +CONFIG_EXT3_FS +CONFIG_EXT4_DEBUG +CONFIG_EXT4_KUNIT_TESTS +CONFIG_F2FS_FS +CONFIG_FAT_KUNIT_TEST +CONFIG_FAULT_INJECTION +CONFIG_FDDI +CONFIG_FIREWIRE +CONFIG_FIREWIRE_NOSY +CONFIG_FS_DAX +CONFIG_FSCACHE_DEBUG +CONFIG_FTRACE +CONFIG_FUJITSU_ES +CONFIG_FUNCTION_ERROR_INJECTION +CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT +CONFIG_GCOV_KERNEL +CONFIG_GENERIC_IRQ_DEBUGFS +CONFIG_GFS2_FS +CONFIG_GNSS +CONFIG_GOOGLE_FIRMWARE +CONFIG_HAMRADIO +CONFIG_HIBERNATION +CONFIG_HIPPI +CONFIG_HOTPLUG_PCI +CONFIG_HYPERV_NET +CONFIG_HYPERV_TESTING +CONFIG_IOSF_MBI +CONFIG_IOSF_MBI_DEBUG +CONFIG_IRQ_TIME_ACCOUNTING +CONFIG_ISA_BUS +CONFIG_ISDN +CONFIG_JBD2_DEBUG +CONFIG_JFS_FS +CONFIG_KARMA_PARTITION +CONFIG_KCOV +CONFIG_KVM_XEN +CONFIG_LDM_PARTITION +CONFIG_LIB80211_DEBUG +CONFIG_LOCK_EVENT_COUNTS +CONFIG_LRU_GEN_STATS +CONFIG_MAC_PARTITION +CONFIG_MAC80211 +CONFIG_MACINTOSH_DRIVERS +CONFIG_MEDIA_CONTROLLER_DVB +CONFIG_MEMORY_FAILURE +CONFIG_MEMTEST +CONFIG_MICROCODE_LATE_LOADING +CONFIG_MINIX_SUBPARTITION +CONFIG_MODIFY_LDT_SYSCALL +CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS +CONFIG_MODULE_DEBUG +CONFIG_MODULE_FORCE_UNLOAD +CONFIG_MODULE_SIG +CONFIG_MODULE_SRCVERSION_ALL +CONFIG_MODULE_UNLOAD_TAINT_TRACKING +CONFIG_MODVERSIONS +CONFIG_NET_9P +CONFIG_NET_SB1000 +CONFIG_NETDEVSIM +CONFIG_NFC +CONFIG_NILFS2_FS +CONFIG_NO_HZ +CONFIG_NTFS_DEBUG +CONFIG_NTFS3_64BIT_CLUSTER +CONFIG_OCFS2_FS +CONFIG_OSF_PARTITION +CONFIG_PAGE_POOL_STATS +CONFIG_PARAVIRT_DEBUG +CONFIG_PARAVIRT_TIME_ACCOUNTING +CONFIG_PARPORT +CONFIG_PCCARD +CONFIG_PCI_CNB20LE_QUIRK +CONFIG_PCI_DEBUG +CONFIG_PCI_EPF_TEST +CONFIG_PCI_P2PDMA +CONFIG_PCI_PF_STUB +CONFIG_PCI_STUB +CONFIG_PCIE_ECRC +CONFIG_PCIEAER_INJECT +CONFIG_PERF_EVENTS_AMD_UNCORE +CONFIG_PM_DEBUG +CONFIG_PPS +CONFIG_PROVE_RCU_LIST +CONFIG_PROVIDE_OHCI1394_DMA_INIT +CONFIG_PSE_CONTROLLER +CONFIG_PUNIT_ATOM_DEBUG +CONFIG_QCOM_IPA +CONFIG_QFMT_V1 +CONFIG_QFMT_V2 +CONFIG_QUOTA_DEBUG +CONFIG_RADIO_ADAPTERS +CONFIG_RAPIDIO +CONFIG_RCU_CPU_STALL_CPUTIME +CONFIG_RCU_EQS_DEBUG +CONFIG_RCU_STRICT_GRACE_PERIOD +CONFIG_RCU_TRACE +CONFIG_READ_ONLY_THP_FOR_FS +CONFIG_REISERFS_FS +CONFIG_RFKILL +CONFIG_SAMPLES +CONFIG_SECCOMP_CACHE_DEBUG +CONFIG_SGI_PARTITION +CONFIG_SMS_SIANO_DEBUGFS +CONFIG_SOLARIS_X86_PARTITION +CONFIG_STRICT_SIGALTSTACK_SIZE +CONFIG_SUN_PARTITION +CONFIG_SYSV68_PARTITION +CONFIG_TEST_ASYNC_DRIVER_PROBE +CONFIG_TIME_KUNIT_TEST +CONFIG_ULTRIX_PARTITION +CONFIG_UNIXWARE_DISKLABEL +CONFIG_USB4_NET +CONFIG_USELIB +CONFIG_VMXNET3 +CONFIG_WAN +CONFIG_WARN_ABI_ERRORS +CONFIG_WARN_ALL_UNSEEDED_RANDOM +CONFIG_WARN_MISSING_DOCUMENTS +CONFIG_WLAN +CONFIG_WQ_POWER_EFFICIENT_DEFAULT +CONFIG_WWAN +CONFIG_X86_16BIT +CONFIG_X86_5LEVEL +CONFIG_X86_AMD_PLATFORM_DEVICE +CONFIG_X86_AMD_PSTATE +CONFIG_X86_AMD_PSTATE_UT +CONFIG_X86_CHECK_BIOS_CORRUPTION +CONFIG_X86_DEBUG_FPU +CONFIG_X86_EXTENDED_PLATFORM +CONFIG_X86_GOLDFISH +CONFIG_X86_INTEL_LPSS +CONFIG_X86_INTEL_MID +CONFIG_X86_IOPL_IOPERM +CONFIG_X86_MCE_INJECT +CONFIG_X86_MCELOG_LEGACY +CONFIG_X86_MPPARSE +CONFIG_X86_P4_CLOCKMOD +CONFIG_X86_POWERNOW_K8 +CONFIG_X86_SPEEDSTEP_CENTRINO +CONFIG_XEN +CONFIG_XFS_ASSERT_FATAL +CONFIG_XFS_DEBUG +CONFIG_XFS_ONLINE_REPAIR +CONFIG_XFS_ONLINE_SCRUB +CONFIG_XFS_ONLINE_SCRUB_STATS +CONFIG_XFS_QUOTA +CONFIG_XFS_RT +CONFIG_XFS_SUPPORT_ASCII_CI +CONFIG_XFS_SUPPORT_V4 +USB_NET_DRIVER +WIRELESS +CONFIG_KERNEL_GZIP +CONFIG_KERNEL_BZIP2 +CONFIG_KERNEL_LZMA +CONFIG_KERNEL_LZO +CONFIG_KERNEL_LZ4 +CONFIG_KERNEL_ZSTD +CONFIG_NET_VENDOR_AMAZON +CONFIG_NET_VENDOR_ASIX +CONFIG_NET_VENDOR_CORTINA +CONFIG_NET_VENDOR_DAVICOM +CONFIG_NET_VENDOR_ENGLEDER +CONFIG_NET_VENDOR_FUNGIBLE +CONFIG_NET_VENDOR_GOOGLE +CONFIG_GVE +CONFIG_NET_VENDOR_LITEX +CONFIG_NET_VENDOR_MELLANOX +CONFIG_MLX4_EN +CONFIG_MLX4_DEBUG +CONFIG_MLX4_CORE_GEN2 +CONFIG_MLX5_CORE +CONFIG_MLXFW +CONFIG_NET_VENDOR_MICROSEMI +CONFIG_NET_VENDOR_MICROSOFT +CONFIG_MICROSOFT_MANA +CONFIG_NET_VENDOR_NI +CONFIG_NET_VENDOR_PENSANDO +CONFIG_NET_VENDOR_SOCIONEXT +CONFIG_NET_VENDOR_VERTEXCOM +CONFIG_NET_VENDOR_WANGXUN +CONFIG_NET_VENDOR_XILINX +CONFIG_INFINIBAND +CONFIG_COMEDI +CONFIG_SURFACE_PLATFORMS +CONFIG_SOUNDWIRE +CONFIG_PREEMPT_VOLUNTARY +CONFIG_HZ_250 +CONFIG_HZ_300 +CONFIG_HZ_1000 +CONFIG_VIRT_CPU_ACCOUNTING_GEN +CONFIG_TASKSTATS +CONFIG_PSI +CONFIG_SCHED_MC +CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS +CONFIG_INIT_ON_ALLOC_DEFAULT_ON +CONFIG_LIST_HARDENED +CONFIG_BUG_ON_DATA_CORRUPTION +CONFIG_CALL_THUNKS_DEBUG +CONFIG_KPROBES +CONFIG_SLUB_DEBUG +CONFIG_RCU_NOCB_CPU +CONFIG_RCU_BOOST +CONFIG_PCSPKR_PLATFORM +CONFIG_DEBUG_FS_ALLOW_ALL +CONFIG_DEBUG_FS +CONFIG_X86_SGX +CONFIG_X86_UMIP +CONFIG_X86_USER_SHADOW_STACK +CONFIG_X86_SGX_KVM diff --git a/options/enable.txt b/options/enable.txt new file mode 100644 index 0000000..8c00503 --- /dev/null +++ b/options/enable.txt @@ -0,0 +1,396 @@ +CONFIG_ADDRESS_MASKING +CONFIG_AF_KCM +CONFIG_ARCH_CPUIDLE_HALTPOLL +CONFIG_BINFMT_MISC +CONFIG_BINFMT_SCRIPT +CONFIG_BLK_CGROUP +CONFIG_BLK_DEV +CONFIG_BLK_DEV_INITRD +CONFIG_BLK_WBT +CONFIG_BOOT_CONFIG +CONFIG_BSD_PROCESS_ACCT +CONFIG_CALL_DEPTH_TRACKING +CONFIG_CGROUP_CPUACCT +CONFIG_CGROUP_DEVICE +CONFIG_CGROUP_MISC +CONFIG_CGROUP_NET_CLASSID +CONFIG_CGROUP_NET_PRIO +CONFIG_CGROUP_PIDS +CONFIG_CGROUP_RDMA +CONFIG_CGROUP_SCHED +CONFIG_CGROUPS +CONFIG_CIFS +CONFIG_CIFS_ALLOW_INSECURE_LEGACY +CONFIG_CIFS_DFS_UPCALL +CONFIG_CIFS_STATS2 +CONFIG_CIFS_SWN_UPCALL +CONFIG_COMPAT_32BIT_TIME +CONFIG_CONFIGFS_FS +CONFIG_CPU_FREQ +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND +CONFIG_CPU_FREQ_GOV_CONSERVATIVE +CONFIG_CPU_FREQ_GOV_ONDEMAND +CONFIG_CPU_FREQ_GOV_PERFORMANCE +CONFIG_CPU_FREQ_GOV_POWERSAVE +CONFIG_CPU_FREQ_GOV_USERSPACE +CONFIG_CPU_IBPB_ENTRY +CONFIG_CPU_UNRET_ENTRY +CONFIG_DEVTMPFS +CONFIG_DRM_VIRTIO_GPU +CONFIG_DRM_VIRTIO_GPU_KMS +CONFIG_EFI +CONFIG_EFI_BOOTLOADER_CONTROL +CONFIG_EFI_MIXED +CONFIG_EFI_PARTITION +CONFIG_EFI_VARS_PSTORE +CONFIG_EFIVAR_FS +CONFIG_ETHERNET +CONFIG_ETHTOOL_NETLINK +CONFIG_EXT2_FS +CONFIG_EXT4_FS +CONFIG_EXT4_USE_FOR_EXT2 +CONFIG_FANOTIFY +CONFIG_FORTIFY_SOURCE +CONFIG_HANGCHECK_TIMER +CONFIG_HARDENED_USERCOPY +CONFIG_HIGH_RES_TIMERS +CONFIG_HYPERVISOR_GUEST +CONFIG_IA32_EMULATION +CONFIG_IKCONFIG +CONFIG_IKCONFIG_PROC +CONFIG_IKHEADERS +CONFIG_INET +CONFIG_INET_AH +CONFIG_INET_ESP +CONFIG_INET_IPCOMP +CONFIG_INET_RAW_DIAG +CONFIG_INET_UDP_DIAG +CONFIG_INET6_AH +CONFIG_INET6_ESP +CONFIG_INET6_IPCOMP +CONFIG_INTEL_HFI_THERMAL +CONFIG_INTEL_IDLE +CONFIG_INTEL_POWERCLAMP +CONFIG_INTEL_RST +CONFIG_IOMMU_SUPPORT +CONFIG_IOSCHED_BFQ +CONFIG_IP_NF_ARPTABLES +CONFIG_IP_NF_IPTABLES +CONFIG_IP6_NF_IPTABLES +CONFIG_IPV6_VTI +CONFIG_JUMP_LABEL +CONFIG_KERNEL_XZ +CONFIG_KVM +CONFIG_KVM_INTEL +CONFIG_LOCALVERSION_AUTO +CONFIG_LRU_GEN +CONFIG_LRU_GEN_ENABLED +CONFIG_MEDIA_SUBDRV_AUTOSELECT +CONFIG_MEDIA_SUPPORT +CONFIG_MEDIA_SUPPORT_FILTER +CONFIG_MEMCG +CONFIG_MODULE_COMPRESS_NONE +CONFIG_MODULE_FORCE_LOAD +CONFIG_MODULE_UNLOAD +CONFIG_MODULES +CONFIG_MQ_IOSCHED_DEADLINE +CONFIG_MQ_IOSCHED_KYBER +CONFIG_MSDOS_PARTITION +CONFIG_NET +CONFIG_NET_CLS_CGROUP +CONFIG_NET_CLS_FLOWER +CONFIG_NET_CLS_FW +CONFIG_NET_CLS_ROUTE4 +CONFIG_NET_CORE +CONFIG_NET_FOU +CONFIG_NET_FOU_IP_TUNNELS +CONFIG_NET_IPVTI +CONFIG_NET_SCH_CBS +CONFIG_NET_SCH_ETF +CONFIG_NET_SCH_GRED +CONFIG_NET_SCH_HFSC +CONFIG_NET_SCH_HHF +CONFIG_NET_SCH_HTB +CONFIG_NET_SCH_PRIO +CONFIG_NET_SCH_RED +CONFIG_NET_SCH_SFB +CONFIG_NET_SCH_SFQ +CONFIG_NET_SCH_TAPRIO +CONFIG_NET_SCH_TBF +CONFIG_NET_SCH_TEQL +CONFIG_NET_SCHED +CONFIG_NETDEVICES +CONFIG_NETFILTER +CONFIG_NETFILTER_XTABLES +CONFIG_NETLINK_DIAG +CONFIG_NETWORK_FILESYSTEMS +CONFIG_NF_SOCKET_IPV4 +CONFIG_NF_SOCKET_IPV6 +CONFIG_NF_TABLES +CONFIG_PACKET +CONFIG_PACKET_DIAG +CONFIG_PAGE_REPORTING +CONFIG_PAGE_TABLE_ISOLATION +CONFIG_PARAVIRT +CONFIG_PARTITION_ADVANCED +CONFIG_PCI +CONFIG_PCI_IOV +CONFIG_PCI_PASID +CONFIG_PCI_PRI +CONFIG_PCIE_BUS_PERFORMANCE +CONFIG_PCIEASPM +CONFIG_PM_AUTOSLEEP +CONFIG_PNP +CONFIG_PROC_KCORE +CONFIG_PSAMPLE +CONFIG_PVH +CONFIG_PVPANIC +CONFIG_RCU_EXPERT +CONFIG_RETHUNK +CONFIG_SCHED_AUTOGROUP +CONFIG_SHUFFLE_PAGE_ALLOCATOR +CONFIG_SMB_SERVER +CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN +CONFIG_SYN_COOKIES +CONFIG_SYSFB_SIMPLEFB +CONFIG_SYSVIPC +CONFIG_TCP_CONG_ADVANCED +CONFIG_TCP_CONG_BBR +CONFIG_TMPFS +CONFIG_TRANSPARENT_HUGEPAGE +CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS +CONFIG_UNIX +CONFIG_VGA_ARB +CONFIG_VHOST_NET +CONFIG_VIRT_DRIVERS +CONFIG_VIRTIO_BLK +CONFIG_VIRTIO_CONSOLE +CONFIG_VIRTIO_IOMMU +CONFIG_VIRTUALIZATION +CONFIG_VMGENID +CONFIG_WATCH_QUEUE +CONFIG_X86_ACPI_CPUFREQ +CONFIG_X86_CPUID +CONFIG_X86_INTEL_PSTATE +CONFIG_X86_INTEL_TSX_MODE_AUTO +CONFIG_X86_MSR +CONFIG_X86_PKG_TEMP_THERMAL +CONFIG_X86_PLATFORM_DEVICES +CONFIG_X86_PMEM_LEGACY +CONFIG_X86_X32_ABI +CONFIG_ZRAM +DEFAULT_BBR +FAIR_GROUP_SCHED +VIRTIO_MENU +ZRAM_DEF_COMP_ZSTD +CONFIG_ATA +CONFIG_ATA_SFF +CONFIG_ATA_BMDMA +CONFIG_ATA_ACPI +CONFIG_SATA_AHCI +CONFIG_SCSI +CONFIG_SCSI_PROC_FS +CONFIG_BLK_DEV_SD +CONFIG_CHR_DEV_SG +CONFIG_SCSI_SAS_ATA +CONFIG_SCSI_VIRTIO +CONFIG_VFIO_VIRQFD +CONFIG_VIRTIO_PCI +CONFIG_VIRTIO_PCI_LEGACY +CONFIG_VIRTIO_PMEM +CONFIG_VIRTIO_BALLOON +CONFIG_VIRTIO_MEM +CONFIG_VIRTIO_INPUT +CONFIG_VIRTIO_MMIO +CONFIG_INTEL_IOMMU +CONFIG_INTEL_IOMMU_SVM +CONFIG_INTEL_IOMMU_DEFAULT_ON +CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON +CONFIG_IRQ_REMAP +CONFIG_HYPERV_IOMMU +CONFIG_SCHED_CORE +CONFIG_X86_X2APIC +CONFIG_X86_CPU_RESCTRL +CONFIG_PARAVIRT_SPINLOCKS +CONFIG_PROCESSOR_SELECT +CONFIG_CPU_SUP_INTEL +CONFIG_X86_KERNEL_IBT +CONFIG_KVM_PROVE_MMU +CONFIG_TRIM_UNUSED_KSYMS +CONFIG_IXGBEVF +CONFIG_VFIO +CONFIG_CRYPTO_PCRYPT +CONFIG_CRYPTO_CRYPTD +CONFIG_CRYPTO_LZO +CONFIG_CRYPTO_LZ4 +CONFIG_CRYPTO_ZSTD +CONFIG_HZ_100 +CONFIG_PREEMPT_NONE +CONFIG_ZSWAP +CONFIG_ZSWAP_DEFAULT_ON +CONFIG_TRANSPARENT_HUGEPAGE_MADVISE +CONFIG_BTRFS_FS_POSIX_ACL +CONFIG_XFS_POSIX_ACL +CONFIG_CEPH_FS_POSIX_ACL +CONFIG_EROFS_FS_POSIX_ACL +CONFIG_NFS_V3_ACL +CONFIG_NFSD_V3_ACL +CONFIG_NTFS3_FS_POSIX_ACL +CONFIG_TMPFS_POSIX_ACL +CONFIG_EXT4_FS_POSIX_ACL +CONFIG_FS_POSIX_ACL +CONFIG_EXT2_FS_POSIX_ACL +CONFIG_REISERFS_FS_POSIX_ACL +CONFIG_JFS_POSIX_ACL +CONFIG_F2FS_FS_POSIX_ACL +CONFIG_JFFS2_FS_POSIX_ACL +CONFIG_NFSD_V2_ACL +CONFIG_9P_FS_POSIX_ACL +CONFIG_EROFS_FS_XATTR +CONFIG_EVM_ADD_XATTRS +CONFIG_SQUASHFS_XATTR +CONFIG_CIFS_XATTR +CONFIG_TMPFS_XATTR +CONFIG_EXT2_FS_XATTR +CONFIG_EXT4_FS_XATTR +CONFIG_REISERFS_FS_XATTR +CONFIG_F2FS_FS_XATTR +CONFIG_JFFS2_FS_XATTR +CONFIG_UBIFS_FS_XATTR +CONFIG_EXT4_FS_SECURITY +CONFIG_EXT2_FS_SECURITY +CONFIG_REISERFS_FS_SECURITY +CONFIG_JFS_SECURITY +CONFIG_F2FS_FS_SECURITY +CONFIG_JFFS2_FS_SECURITY +CONFIG_UBIFS_FS_SECURITY +CONFIG_EROFS_FS_SECURITY +CONFIG_SECURITYFS +CONFIG_KEYS_REQUEST_CACHE +CONFIG_IMA_READ_POLICY +CONFIG_CRYPTO_ECDH +CONFIG_CRYPTO_ECRDSA +CONFIG_CRYPTO_SM2 +CONFIG_CRYPTO_CURVE25519 +CONFIG_CRYPTO_AES_TI +CONFIG_CRYPTO_ARIA +CONFIG_CRYPTO_BLOWFISH +CONFIG_CRYPTO_CAMELLIA +CONFIG_CRYPTO_CAST5 +CONFIG_CRYPTO_CAST6 +CONFIG_CRYPTO_DES +CONFIG_CRYPTO_FCRYPT +CONFIG_CRYPTO_SERPENT +CONFIG_CRYPTO_SM4_GENERIC +CONFIG_CRYPTO_TWOFISH +CONFIG_CRYPTO_ADIANTUM +CONFIG_CRYPTO_CHACHA20 +CONFIG_CRYPTO_CFB +CONFIG_CRYPTO_CTS +CONFIG_CRYPTO_HCTR2 +CONFIG_CRYPTO_KEYWRAP +CONFIG_CRYPTO_LRW +CONFIG_CRYPTO_OFB +CONFIG_CRYPTO_PCBC +CONFIG_CRYPTO_XTS +CONFIG_CRYPTO_AEGIS128 +CONFIG_CRYPTO_CHACHA20POLY1305 +CONFIG_CRYPTO_ESSIV +CONFIG_CRYPTO_BLAKE2B +CONFIG_CRYPTO_MD4 +CONFIG_CRYPTO_MICHAEL_MIC +CONFIG_CRYPTO_POLY1305 +CONFIG_CRYPTO_RMD160 +CONFIG_CRYPTO_SM3_GENERIC +CONFIG_CRYPTO_STREEBOG +CONFIG_CRYPTO_VMAC +CONFIG_CRYPTO_WP512 +CONFIG_CRYPTO_XCBC +CONFIG_CRYPTO_XXHASH +CONFIG_CRYPTO_CRC32 +CONFIG_CRYPTO_LZ4HC +CONFIG_CRYPTO_ANSI_CPRNG +CONFIG_CRYPTO_USER_API_HASH +CONFIG_CRYPTO_USER_API_SKCIPHER +CONFIG_CRYPTO_USER_API_RNG +CONFIG_CRYPTO_USER_API_AEAD +CONFIG_CRYPTO_AES_NI_INTEL +CONFIG_CRYPTO_SHA1_SSSE3 +CONFIG_CRYPTO_SHA256_SSSE3 +CONFIG_CRYPTO_SHA512_SSSE3 +CONFIG_CRYPTO_CRC32C_INTEL +CONFIG_CRYPTO_CRC32_PCLMUL +CONFIG_CRYPTO_LIB_CHACHA +CONFIG_CRYPTO_LIB_CURVE25519 +CONFIG_CRYPTO_LIB_POLY1305 +CONFIG_CORDIC +CONFIG_CRC7 +CONFIG_CRC8 +CRYPTO_LIB_CHACHA20POLY1305 +CONFIG_CRC4 +CONFIG_NO_HZ_IDLE +CONFIG_PERF_EVENTS_INTEL_UNCORE +CONFIG_PERF_EVENTS_INTEL_RAPL +CONFIG_PERF_EVENTS_INTEL_CSTATE +CONFIG_X86_CPA_STATISTICS +CONFIG_LEGACY_VSYSCALL_XONLY +CONFIG_ACPI_FPDT +CONFIG_ACPI_BGRT +CONFIG_ACPI_NFIT +CONFIG_ACPI_DPTF +CONFIG_ACPI_FFH +CONFIG_ACPI_PFRUT +CONFIG_DEVTMPFS_MOUNT +CONFIG_FW_LOADER_COMPRESS_ZSTD +CONFIG_FW_CFG_SYSFS +CONFIG_EFI_COCO_SECRET +CONFIG_VIRTIO_NET +CONFIG_MEDIA_PLATFORM_SUPPORT +CONFIG_FB_VESA +CONFIG_FB_NVIDIA +CONFIG_FB_RIVA +CONFIG_FB_SIMPLE +CONFIG_DMADEVICES +CONFIG_INTEL_IDMA64 +CONFIG_INTEL_IDXD +CONFIG_INTEL_IOATDMA +CONFIG_VFIO_PCI_VGA +CONFIG_NFS_FS +CONFIG_BPF +CONFIG_BPF_JIT +CONFIG_BPF_SYSCALL +CONFIG_NET_CLS_BPF +CONFIG_BPF_JIT_ALWAYS_ON +CONFIG_NET_ACT_BPF +CONFIG_HAVE_BPF_JIT +CONFIG_BPF_EVENTS +CONFIG_RCU_LAZY +CONFIG_X86_VSYSCALL_EMULATION +CONFIG_ZSWAP_EXCLUSIVE_LOADS_DEFAULT_ON +CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD +ZRAM_MEMORY_TRACKING +CONFIG_ZRAM_MULTI_COMP +CONFIG_CRASH_CORE +CONFIG_HAVE_IMA_KEXEC +CONFIG_KEXEC +CONFIG_KEXEC_CORE +CONFIG_KEXEC_FILE +CONFIG_KEXEC_BZIMAGE_VERIFY_SIG +CONFIG_KEXEC_SIG +CONFIG_KEXEC_SIG_FORCE +CONFIG_ARCH_SELECTS_KEXEC_FILE +CONFIG_CALL_PADDING +CONFIG_HAVE_ARCH_NODE_DEV_GROUP +CONFIG_WATCHDOG_CORE +CONFIG_DEVMEM +CONFIG_STRICT_DEVMEM +CONFIG_IO_STRICT_DEVMEM +CONFIG_IPV6 +CONFIG_X86_64 +CONFIG_SMP +CONFIG_NUMA +CONFIG_KSM +CONFIG_SYSFS +CONFIG_KALLSYMS +CONFIG_KALLSYMS_ALL +CONFIG_COMPILE_TEST diff --git a/options/secured.txt b/options/secured.txt new file mode 100644 index 0000000..4c606ac --- /dev/null +++ b/options/secured.txt @@ -0,0 +1,6 @@ +CONFIG_SPECULATION_MITIGATIONS +CONFIG_RETPOLINE +CONFIG_CPU_IBRS_ENTRY +CONFIG_SLS +CONFIG_GDS_FORCE_MITIGATION +CONFIG_INTEL_TDX_HOST diff --git a/options/unsecured.txt b/options/unsecured.txt new file mode 100644 index 0000000..4c606ac --- /dev/null +++ b/options/unsecured.txt @@ -0,0 +1,6 @@ +CONFIG_SPECULATION_MITIGATIONS +CONFIG_RETPOLINE +CONFIG_CPU_IBRS_ENTRY +CONFIG_SLS +CONFIG_GDS_FORCE_MITIGATION +CONFIG_INTEL_TDX_HOST diff --git a/more-uarches-for-kernel.patch b/patches/more-uarches.patch similarity index 100% rename from more-uarches-for-kernel.patch rename to patches/more-uarches.patch