Cleaning, smoothing and adding some comments again

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
This commit is contained in:
Piotr Gorski 2022-07-20 14:22:45 +02:00
parent c87f824db0
commit 14403c3cfc
No known key found for this signature in database
GPG Key ID: 79AFA05ABDB26C5A
3 changed files with 159 additions and 105 deletions

View File

@ -1,7 +1,7 @@
pkgbase = linux-cachyos pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.18.12 pkgver = 5.18.12
pkgrel = 1 pkgrel = 2
url = https://github.com/CachyOS/linux-cachyos url = https://github.com/CachyOS/linux-cachyos
arch = x86_64 arch = x86_64
arch = x86_64_v3 arch = x86_64_v3
@ -30,7 +30,7 @@ pkgbase = linux-cachyos
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/all/0001-cachyos-base-all.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/sched/0001-bore-sched.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/sched/0001-bore-sched.patch
sha256sums = 40b74d0942f255da07481710e1083412d06e37e45b8f9d9e34ae856db37b9527 sha256sums = 40b74d0942f255da07481710e1083412d06e37e45b8f9d9e34ae856db37b9527
sha256sums = 5ca5d7a30453fbb2891458fea6de84923218cd161a4137fe76c8e699fddb7037 sha256sums = 290cfc52f209df028b8693fcbeed276564ca1d1c13023ebed3faa3d56d6d6ede
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
sha256sums = 37763b7f098fadd029923dafb952f9c9485ff3527e48087b6c5e557e043fa324 sha256sums = 37763b7f098fadd029923dafb952f9c9485ff3527e48087b6c5e557e043fa324
sha256sums = 7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271 sha256sums = 7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271

256
PKGBUILD
View File

@ -66,13 +66,20 @@ _mq_deadline_disable=y
_kyber_disable=y _kyber_disable=y
### Enable multigenerational LRU ### Enable multigenerational LRU
_lru_enable=y # ATTENTION - one of three predefined values should be selected!
# 'standard' - enable multigenerational LRU
# 'stats' - enable multigenerational LRU with stats
# 'none' - disable multigenerational LRU
_lru_config='standard'
## Enable DAMON ## Enable DAMON
_damon=y _damon=y
## enable SPECULATIVE_PAGE_FAULT ### Enable SPECULATIVE_PAGE_FAULT
_spf_enable=y # ATTENTION - one of two predefined values should be selected!
# 'standard' - enable SPECULATIVE_PAGE_FAULT
# 'stats' - enable support SPECULATIVE_PAGE_FAULT with stats
_spf_config='standard'
## Enable Linux Random Number Generator ## Enable Linux Random Number Generator
_lrng_enable=y _lrng_enable=y
@ -127,9 +134,8 @@ _stable=${_major}.${_minor}
#_stablerc=${_major}-${_rcver} #_stablerc=${_major}-${_rcver}
_srcname=linux-${_stable} _srcname=linux-${_stable}
#_srcname=linux-${_major} #_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements' pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
pkgrel=1 pkgrel=2
_kernver=$pkgver-$pkgrel _kernver=$pkgver-$pkgrel
arch=('x86_64' 'x86_64_v3') arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos" url="https://github.com/CachyOS/linux-cachyos"
@ -208,6 +214,7 @@ prepare() {
echo "Setting config..." echo "Setting config..."
cp ../config .config cp ../config .config
### Select CPU optimization
if [ -n "$_processor_opt" ]; then if [ -n "$_processor_opt" ]; then
MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo) MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)
MARCH2=M${MARCH} MARCH2=M${MARCH}
@ -215,6 +222,7 @@ prepare() {
scripts/config -k --enable CONFIG_${MARCH2} scripts/config -k --enable CONFIG_${MARCH2}
fi fi
### Use autooptimization
if [ -n "$_use_auto_optimization" ]; then if [ -n "$_use_auto_optimization" ]; then
"${srcdir}"/auto-cpu-optimization.sh "${srcdir}"/auto-cpu-optimization.sh
fi fi
@ -244,8 +252,8 @@ prepare() {
scripts/config --enable SCHED_BORE scripts/config --enable SCHED_BORE
elif [ "$_cpusched" = "tt" ]; then elif [ "$_cpusched" = "tt" ]; then
echo "Selecting TT Scheduler..." echo "Selecting TT Scheduler..."
scripts/config --enable TT_SCHED scripts/config --enable TT_SCHED \
scripts/config --enable TT_ACCOUNTING_STATS --enable TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "cfs" ]; then elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..." echo "Selecting Completely Fair Scheduler..."
elif [ "$_cpusched" = "hardened" ]; then elif [ "$_cpusched" = "hardened" ]; then
@ -260,16 +268,17 @@ prepare() {
exit exit
fi fi
### Enable KCFI
if [ -n "$_use_kcfi" ]; then if [ -n "$_use_kcfi" ]; then
echo "Enabling kCFI" echo "Enabling kCFI"
scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \
--enable CFI_CLANG --enable CFI_CLANG
fi fi
### Select LLVM level
if [ "$_use_llvm_lto" = "thin" ]; then if [ "$_use_llvm_lto" = "thin" ]; then
echo "Enabling LLVM THIN LTO..." echo "Enabling LLVM THIN LTO..."
scripts/config \ scripts/config --enable LTO \
--enable LTO \
--enable LTO_CLANG \ --enable LTO_CLANG \
--enable ARCH_SUPPORTS_LTO_CLANG \ --enable ARCH_SUPPORTS_LTO_CLANG \
--enable ARCH_SUPPORTS_LTO_CLANG_THIN \ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \
@ -280,8 +289,7 @@ prepare() {
--enable HAVE_GCC_PLUGINS --enable HAVE_GCC_PLUGINS
elif [ "$_use_llvm_lto" = "full" ]; then elif [ "$_use_llvm_lto" = "full" ]; then
echo "Enabling LLVM FULL LTO..." echo "Enabling LLVM FULL LTO..."
scripts/config \ scripts/config --enable LTO \
--enable LTO \
--enable LTO_CLANG \ --enable LTO_CLANG \
--enable ARCH_SUPPORTS_LTO_CLANG \ --enable ARCH_SUPPORTS_LTO_CLANG \
--enable ARCH_SUPPORTS_LTO_CLANG_THIN \ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \
@ -294,6 +302,7 @@ prepare() {
scripts/config --enable LTO_NONE scripts/config --enable LTO_NONE
fi fi
### Select tick rate
if [ "$_HZ_ticks" = "1000" ]; then if [ "$_HZ_ticks" = "1000" ]; then
echo "Setting tick rate to 1k Hz..." echo "Setting tick rate to 1k Hz..."
scripts/config --disable HZ_300 \ scripts/config --disable HZ_300 \
@ -318,6 +327,7 @@ prepare() {
echo "Setting tick rate to 300Hz..." echo "Setting tick rate to 300Hz..."
fi fi
### Disable NUMA
if [ -n "$_NUMAdisable" ]; then if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..." echo "Disabling NUMA from kernel config..."
scripts/config --disable NUMA \ scripts/config --disable NUMA \
@ -334,16 +344,19 @@ prepare() {
--disable NEED_MULTIPLE_NODES --disable NEED_MULTIPLE_NODES
fi fi
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..." echo "Disabling MQ-Deadline I/O scheduler..."
scripts/config --disable MQ_IOSCHED_DEADLINE scripts/config --disable MQ_IOSCHED_DEADLINE
fi fi
### Disable Kyber I/O scheduler
if [ -n "$_kyber_disable" ]; then if [ -n "$_kyber_disable" ]; then
echo "Disabling Kyber I/O scheduler..." echo "Disabling Kyber I/O scheduler..."
scripts/config --disable MQ_IOSCHED_KYBER scripts/config --disable MQ_IOSCHED_KYBER
fi fi
### Select performance governor
if [ -n "$_per_gov" ]; then if [ -n "$_per_gov" ]; then
echo "Setting performance governor..." echo "Setting performance governor..."
scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \
@ -353,6 +366,7 @@ prepare() {
--enable PCIE_BUS_PERFORMANCE --enable PCIE_BUS_PERFORMANCE
fi fi
### Select tick type
if [ "$_tickrate" = "perodic" ]; then if [ "$_tickrate" = "perodic" ]; then
echo "Enabling periodic ticks..." echo "Enabling periodic ticks..."
scripts/config --disable NO_HZ_IDLE \ scripts/config --disable NO_HZ_IDLE \
@ -379,6 +393,7 @@ prepare() {
--enable CONTEXT_TRACKING --enable CONTEXT_TRACKING
fi fi
### Select preempt type
if [ "$_preempt" = "full" ]; then if [ "$_preempt" = "full" ]; then
echo "Enabling low latency preempt..." echo "Enabling low latency preempt..."
scripts/config --enable PREEMPT_BUILD \ scripts/config --enable PREEMPT_BUILD \
@ -408,12 +423,14 @@ prepare() {
--disable PREEMPT_DYNAMIC --disable PREEMPT_DYNAMIC
fi fi
### Enable O3
if [ -n "$_cc_harder" ]; then if [ -n "$_cc_harder" ]; then
echo "Enabling KBUILD_CFLAGS -O3..." echo "Enabling KBUILD_CFLAGS -O3..."
scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \
--enable CC_OPTIMIZE_FOR_PERFORMANCE_O3 --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3
fi fi
### Enable bbr2
if [ -n "$_tcp_bbr2" ]; then if [ -n "$_tcp_bbr2" ]; then
echo "Disabling TCP_CONG_CUBIC..." echo "Disabling TCP_CONG_CUBIC..."
scripts/config --module TCP_CONG_CUBIC \ scripts/config --module TCP_CONG_CUBIC \
@ -423,25 +440,57 @@ prepare() {
--set-str DEFAULT_TCP_CONG bbr2 --set-str DEFAULT_TCP_CONG bbr2
fi fi
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..." echo "Enabling FULLCONENAT..."
scripts/config --module IP_NF_TARGET_FULLCONENAT \ scripts/config --module IP_NF_TARGET_FULLCONENAT \
--module NETFILTER_XT_TARGET_FULLCONENAT --module NETFILTER_XT_TARGET_FULLCONENAT
fi fi
if [ -n "$_spf_enable" ]; then ### Select SPF config
echo "Enabling SPECULATIVE_PAGE_FAULT LRU..." if [ "$_spf_config" = "standard" ]; then
scripts/config --enable SPECULATIVE_PAGE_FAULT echo "Enabling SPECULATIVE_PAGE_FAULT..."
scripts/config --enable CONFIG_SPECULATIVE_PAGE_FAULT \
--disable CONFIG_SPECULATIVE_PAGE_FAULT_STATS
elif [ "$_spf_config" = "stats" ]; then
echo "Enabling SPECULATIVE_PAGE_FAULT with stats..."
scripts/config --enable CONFIG_SPECULATIVE_PAGE_FAULT \
--enable CONFIG_SPECULATIVE_PAGE_FAULT_STATS
else
if [ -n "$_spf_config" ]; then
error "The value $_spf_config is invalid. Choose the correct one again."
else
error "The value is empty. Choose the correct one again."
fi
error "Enabling SPECULATIVE_PAGE_FAULT failed!"
exit
fi fi
if [ -n "$_lru_enable" ]; then ### Select LRU config
echo "Enabling multigenerational LRU..." if [ "$_lru_config" = "standard" ]; then
scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \ echo "Enabling multigenerational LRU..."
--enable LRU_GEN \ scripts/config --enable CONFIG_LRU_GEN \
--enable LRU_GEN_ENABLED \ --enable CONFIG_LRU_GEN_ENABLED \
--disable LRU_GEN_STATS --disable CONFIG_LRU_GEN_STATS
elif [ "$_lru_config" = "stats" ]; then
echo "Enabling multigenerational LRU with stats..."
scripts/config --enable CONFIG_LRU_GEN \
--enable CONFIG_LRU_GEN_ENABLED \
--enable CONFIG_LRU_GEN_STATS
elif [ "$_lru_config" = "none" ]; then
echo "Disabling multigenerational LRU..."
scripts/config --disable CONFIG_LRU_GEN
else
if [ -n "$_lru_config" ]; then
error "The value $_lru_config is invalid. Choose the correct one again."
else
error "The value is empty. Choose the correct one again."
fi
error "Enabling multigenerational LRU failed!"
exit
fi fi
### Enable DAMON
if [ -n "$_damon" ]; then if [ -n "$_damon" ]; then
echo "Enabling DAMON..." echo "Enabling DAMON..."
scripts/config --enable DAMON \ scripts/config --enable DAMON \
@ -453,77 +502,79 @@ prepare() {
--enable DAMON_LRU_SORT --enable DAMON_LRU_SORT
fi fi
### Enable LRNG
if [ -n "$_lrng_enable" ]; then if [ -n "$_lrng_enable" ]; then
echo "Enabling Linux Random Number Generator ..." echo "Enabling Linux Random Number Generator ..."
scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL scripts/config --disable RANDOM_DEFAULT_IMPL \
scripts/config --enable CONFIG_LRNG --enable LRNG \
scripts/config --enable CONFIG_LRNG_SHA256 --enable LRNG_SHA256 \
scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF --enable LRNG_COMMON_DEV_IF \
scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC --enable LRNG_DRNG_ATOMIC \
scripts/config --enable CONFIG_LRNG_SYSCTL --enable LRNG_SYSCTL \
scripts/config --enable CONFIG_LRNG_RANDOM_IF --enable LRNG_RANDOM_IF \
scripts/config --module CONFIG_LRNG_KCAPI_IF --module LRNG_KCAPI_IF \
scripts/config --module CONFIG_LRNG_HWRAND_IF --module LRNG_HWRAND_IF \
scripts/config --enable CONFIG_LRNG_DEV_IF --enable LRNG_DEV_IF \
scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG --enable LRNG_RUNTIME_ES_CONFIG \
scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES --enable LRNG_IRQ_DFLT_TIMER_ES \
scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES --disable LRNG_SCHED_DFLT_TIMER_ES \
scripts/config --enable CONFIG_LRNG_TIMER_COMMON --enable LRNG_TIMER_COMMON \
scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256 --disable LRNG_COLLECTION_SIZE_256 \
scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512 --disable LRNG_COLLECTION_SIZE_512 \
scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024 --enable LRNG_COLLECTION_SIZE_1024 \
scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048 --disable LRNG_COLLECTION_SIZE_2048 \
scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096 --disable LRNG_COLLECTION_SIZE_4096 \
scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192 --disable LRNG_COLLECTION_SIZE_8192 \
scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024 --set-val LRNG_COLLECTION_SIZE 1024 \
scripts/config --enable CONFIG_LRNG_HEALTH_TESTS --enable LRNG_HEALTH_TESTS \
scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31 --set-val LRNG_RCT_CUTOFF 31 \
scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325 --set-val LRNG_APT_CUTOFF 325 \
scripts/config --enable CONFIG_LRNG_IRQ --enable LRNG_IRQ \
scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED --enable LRNG_CONTINUOUS_COMPRESSION_ENABLED \
scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED --disable LRNG_CONTINUOUS_COMPRESSION_DISABLED \
scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION --enable LRNG_ENABLE_CONTINUOUS_COMPRESSION \
scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION --enable LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION \
scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256 --set-val LRNG_IRQ_ENTROPY_RATE 256 \
scripts/config --enable CONFIG_LRNG_JENT --enable LRNG_JENT \
scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16 --set-val LRNG_JENT_ENTROPY_RATE 16 \
scripts/config --enable CONFIG_LRNG_CPU --enable LRNG_CPU \
scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1 --set-val LRNG_CPU_FULL_ENT_MULTIPLIER 1 \
scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8 --set-val LRNG_CPU_ENTROPY_RATE 8 \
scripts/config --enable CONFIG_LRNG_SCHED --enable LRNG_SCHED \
scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295 --set-val LRNG_SCHED_ENTROPY_RATE 4294967295 \
scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20 --enable LRNG_DRNG_CHACHA20 \
scripts/config --module CONFIG_LRNG_DRBG --module LRNG_DRBG \
scripts/config --module CONFIG_LRNG_DRNG_KCAPI --module LRNG_DRNG_KCAPI \
scripts/config --enable CONFIG_LRNG_SWITCH --enable LRNG_SWITCH \
scripts/config --enable CONFIG_LRNG_SWITCH_HASH --enable LRNG_SWITCH_HASH \
scripts/config --module CONFIG_LRNG_HASH_KCAPI --module LRNG_HASH_KCAPI \
scripts/config --enable CONFIG_LRNG_SWITCH_DRNG --enable LRNG_SWITCH_DRNG \
scripts/config --module CONFIG_LRNG_SWITCH_DRBG --module LRNG_SWITCH_DRBG \
scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI --module LRNG_SWITCH_DRNG_KCAPI \
scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20 --enable LRNG_DFLT_DRNG_CHACHA20 \
scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG --disable LRNG_DFLT_DRNG_DRBG \
scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI --disable LRNG_DFLT_DRNG_KCAPI \
scripts/config --enable CONFIG_LRNG_TESTING_MENU --enable LRNG_TESTING_MENU \
scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY --disable LRNG_RAW_HIRES_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY --disable LRNG_RAW_JIFFIES_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY --disable LRNG_RAW_IRQ_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY --disable LRNG_RAW_RETIP_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY --disable LRNG_RAW_REGS_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_ARRAY --disable LRNG_RAW_ARRAY \
scripts/config --disable CONFIG_LRNG_IRQ_PERF --disable LRNG_IRQ_PERF \
scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY --disable LRNG_RAW_SCHED_HIRES_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY --disable LRNG_RAW_SCHED_PID_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY --disable LRNG_RAW_SCHED_START_TIME_ENTROPY \
scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY --disable LRNG_RAW_SCHED_NVCSW_ENTROPY \
scripts/config --disable CONFIG_LRNG_SCHED_PERF --disable LRNG_SCHED_PERF \
scripts/config --disable CONFIG_LRNG_ACVT_HASH --disable LRNG_ACVT_HASH \
scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG --disable LRNG_RUNTIME_MAX_WO_RESEED_CONFIG \
scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION --disable LRNG_TEST_CPU_ES_COMPRESSION \
scripts/config --enable CONFIG_LRNG_SELFTEST --enable LRNG_SELFTEST \
scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC --disable LRNG_SELFTEST_PANIC
fi fi
### Enable ZSTD swap/zram compression
if [ -n "$_zstd_swap_compression" ]; then if [ -n "$_zstd_swap_compression" ]; then
echo "Enabling zram ZSTD compression..." echo "Enabling zram ZSTD compression..."
scripts/config --disable ZRAM_DEF_COMP_LZORLE \ scripts/config --disable ZRAM_DEF_COMP_LZORLE \
@ -536,21 +587,24 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000 --set-val ZRAM_ENTROPY_THRESHOLD 100000
fi fi
### Disable DEBUG
if [ -n "$_disable_debug" ]; then if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \ scripts/config --disable DEBUG_INFO \
--disable DEBUG_INFO_BTF \ --disable CONFIG_DEBUG_INFO_BTF \
--disable DEBUG_INFO_DWARF4 \ --disable CONFIG_DEBUG_INFO_DWARF5 \
--disable DEBUG_INFO_DWARF5 \ --disable CONFIG_PAHOLE_HAS_SPLIT_BTF \
--disable PAHOLE_HAS_SPLIT_BTF \ --disable CONFIG_DEBUG_INFO_BTF_MODULES \
--disable DEBUG_INFO_BTF_MODULES \ --disable CONFIG_CGROUP_BPF \
--disable SLUB_DEBUG \ --disable CONFIG_BPF_LSM \
--disable PM_DEBUG \ --disable CONFIG_BPF_PRELOAD \
--disable PM_ADVANCED_DEBUG \ --disable CONFIG_BPF_LIRC_MODE2 \
--disable PM_SLEEP_DEBUG \ --disable CONFIG_BPF_KPROBE_OVERRIDE \
--disable ACPI_DEBUG \ --disable CONFIG_PM_DEBUG \
--disable SCHED_DEBUG \ --disable CONFIG_PM_SLEEP_DEBUG \
--disable LATENCYTOP \ --disable CONFIG_ACPI_DEBUG \
--disable DEBUG_PREEMPT --disable CONFIG_SCHED_DEBUG \
--disable CONFIG_LATENCYTOP \
--disable CONFIG_DEBUG_PREEMPT
fi fi
echo "Enable USER_NS_UNPRIVILEGED" echo "Enable USER_NS_UNPRIVILEGED"
@ -771,7 +825,7 @@ for _p in "${pkgname[@]}"; do
done done
sha256sums=('40b74d0942f255da07481710e1083412d06e37e45b8f9d9e34ae856db37b9527' sha256sums=('40b74d0942f255da07481710e1083412d06e37e45b8f9d9e34ae856db37b9527'
'5ca5d7a30453fbb2891458fea6de84923218cd161a4137fe76c8e699fddb7037' '290cfc52f209df028b8693fcbeed276564ca1d1c13023ebed3faa3d56d6d6ede'
'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f' 'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f'
'37763b7f098fadd029923dafb952f9c9485ff3527e48087b6c5e557e043fa324' '37763b7f098fadd029923dafb952f9c9485ff3527e48087b6c5e557e043fa324'
'7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271') '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271')

4
config
View File

@ -1186,8 +1186,8 @@ CONFIG_ANON_VMA_NAME=y
# CONFIG_DAMON_LRU_SORT is not set # CONFIG_DAMON_LRU_SORT is not set
# end of Data Access Monitoring # end of Data Access Monitoring
# CONFIG_ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT is not set CONFIG_ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT=y
# CONFIG_SPECULATIVE_PAGE_FAULT is not set CONFIG_SPECULATIVE_PAGE_FAULT=y
# end of Memory Management options # end of Memory Management options
CONFIG_NET=y CONFIG_NET=y