Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
5.18.3-2
Peter Jungf80190a1580d
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFOindex e1d64252..5eabdf33 100755--- a/linux-bore/.SRCINFO+++ b/linux-bore/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -56,7 +56,7 @@ pkgbase = linux-boresha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -65,7 +65,7 @@ pkgbase = linux-boresha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-borepkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex e22ba880..ebab2edc 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,23 +813,23 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFOindex 0a3a849e..6958ea43 100755--- a/linux-cachyos-bmq/.SRCINFO+++ b/linux-cachyos-bmq/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-bmqpkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-cachyos-bmqsha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-cachyos-bmqsha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-bmqpkgdesc = The Linux BMQ scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex cecfe073..f56719dc 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux BMQ scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- 'c6c332c3cd44bdbb82923cdeb6b8c6bfc539ed42e439b11d82093d575c79bbc0'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ 'c6c332c3cd44bdbb82923cdeb6b8c6bfc539ed42e439b11d82093d575c79bbc0'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFOindex 8993787b..81b07b1b 100755--- a/linux-cachyos-bore/.SRCINFO+++ b/linux-cachyos-bore/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -56,7 +56,7 @@ pkgbase = linux-cachyos-boresha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -65,7 +65,7 @@ pkgbase = linux-cachyos-boresha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-borepkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 135d74c3..a42e59e1 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,23 +813,23 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFOindex ba83bc48..01514e65 100755--- a/linux-cachyos-cacule/.SRCINFO+++ b/linux-cachyos-cacule/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-caculepkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-cachyos-caculesha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-cachyos-caculesha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-caculepkgdesc = The Linux cacULE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILDindex ee2783c7..40397b82 100644--- a/linux-cachyos-cacule/PKGBUILD+++ b/linux-cachyos-cacule/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux cacULE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFOindex 085632a7..3bb1ddf6 100755--- a/linux-cachyos-cfs/.SRCINFO+++ b/linux-cachyos-cfs/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-cfspkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-cachyos-cfssha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-cachyos-cfssha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-cfspkgdesc = The Linux CFS scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex e5c3c3c3..61fe50d1 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -136,7 +136,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux CFS scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -144,78 +144,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -224,14 +224,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -241,387 +241,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -632,14 +632,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -673,30 +673,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -706,77 +706,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -787,11 +787,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -806,22 +806,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFOindex d730dee5..65917b45 100755--- a/linux-cachyos-hardened/.SRCINFO+++ b/linux-cachyos-hardened/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-hardenedpkgdesc = Linux hardened kernel with the BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -60,7 +60,7 @@ pkgbase = linux-cachyos-hardenedsha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -69,7 +69,7 @@ pkgbase = linux-cachyos-hardenedsha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-hardenedpkgdesc = The Linux hardened kernel with the BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex 43bd897f..100b3251 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux hardened kernel with the BORE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,25 +813,25 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '67d3496c8c737618f2ef5e0b03fd7767153fd2a2e967c818727f2fb7670a9966'- '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- 'd00f5a8cf77ddec750e267f793c5c66c7f3a5199e40014b00fc580d5a53ccb07'- '4feadc76643df988fd2ca0b1934bd7bd9e3a2b08d6e5c0db6ad27350d086542e'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '67d3496c8c737618f2ef5e0b03fd7767153fd2a2e967c818727f2fb7670a9966'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ 'd00f5a8cf77ddec750e267f793c5c66c7f3a5199e40014b00fc580d5a53ccb07'+ '4feadc76643df988fd2ca0b1934bd7bd9e3a2b08d6e5c0db6ad27350d086542e'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFOindex 54d21638..799f39f7 100755--- a/linux-cachyos-pds/.SRCINFO+++ b/linux-cachyos-pds/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-pdspkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-cachyos-pdssha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-cachyos-pdssha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = 1da5c9b19d3efef726fd9154154f2a9e68d88763587d1f8529da2b0f480492c2+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-pdspkgdesc = The Linux PDS scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex a16eb36d..417912b5 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux PDS scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- 'c6c332c3cd44bdbb82923cdeb6b8c6bfc539ed42e439b11d82093d575c79bbc0'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- '1da5c9b19d3efef726fd9154154f2a9e68d88763587d1f8529da2b0f480492c2')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ 'c6c332c3cd44bdbb82923cdeb6b8c6bfc539ed42e439b11d82093d575c79bbc0'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex 3299649a..3df7f322 100755--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-rcpkgdesc = Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvementspkgver = 5.19.rc1- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -37,7 +37,7 @@ pkgbase = linux-cachyos-rcsource = auto-cpu-optimization.shsha256sums = c2d2400bbf52688a1d2d1e45171331ddbc69ba1c3864e922c1c3f5b546b4d21bsha256sums = 4f4543f2d58fa9a9b5689e8dcadb86aea02ce102b1a8dbb76e66d47c5fadfd9b- sha256sums = 114de325b79abf71532047001d6000f77f6b255c3542f7eeedb36ce99c14d4a9+ sha256sums = 7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271sha256sums = 8cb5f04d2b4da0db29cac021f97152e2eb2346547685f49532c1e352be05fb4asha256sums = fb091f718c8e683c158dc0d3f3aa8f80f8dfd710f09da257e6bc5a418e16c2b9sha256sums = a3befe7b001470decc08b1e7cae0e436b5bc355c2f2b43148c6ab30ed9821ec7@@ -45,7 +45,7 @@ pkgbase = linux-cachyos-rcsha256sums = 7cf2e27ae7ca49c8d20a6c10b0a34187f8c63f2dab3063b3649a692d65065fadsha256sums = f94ee42a540d935c3fa05d27485b7f6b66d6220ea2e603db8a3d9ca55e19f7efsha256sums = f31972b5cdb0a9ffebe63070ce5706b9d28e47c96f5979820b3fb57f236a93bf- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-rcpkgdesc = The Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements kernel and modulesdiff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex a2cf2665..fbe1fd01 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -123,7 +123,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements'-pkgrel=1+pkgrel=2arch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"license=('GPL2')@@ -172,13 +172,13 @@ source+=()if [ -n "$_use_kcfi" ]; then-source+=("${_patchsource}/0001-kcfi.patch")-depends+=(clang llvm lld python)-BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1-)+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -207,36 +207,36 @@ prepare() {cp ../config .configif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}fiif [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh+ "${srcdir}"/auto-cpu-optimization.shfi### Selecting the CPU schedulerif [ "$_cpusched" = "bmq" ]; thenecho "Selecting BMQ CPU scheduler..."scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS+ --enable SCHED_BMQ \+ --disable SCHED_PDSelif [ "$_cpusched" = "pds" ]; thenecho "Selecting PDS CPU scheduler..."scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS+ --disable SCHED_BMQ \+ --enable SCHED_PDSelif [ "$_cpusched" = "cacule" ]; thenecho "Selecting CacULE scheduler..."scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB+ --disable CACULE_RDBelif [ "$_cpusched" = "cacule-rdb" ]; thenecho "Selecting CacULE-RDB scheduler..."scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19elif [ "$_cpusched" = "bore" ]; thenecho "Selecting BORE Scheduler..."scripts/config --enable SCHED_BORE@@ -259,30 +259,30 @@ prepare() {if [ -n "$_use_kcfi" ]; thenecho "Enabling kCFI"scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG+ --enable CFI_CLANGfiif [ "$_use_llvm_lto" = "thin" ]; thenecho "Enabling LLVM THIN LTO..."scripts/config --disable LTO_NONE \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; thenecho "Enabling LLVM FULL LTO..."scripts/config --disable LTO_NONE \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG \- --enable LTO_CLANG_FULL \- --enable HAVE_GCC_PLUGINS+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --enable HAVE_GCC_PLUGINSelsescripts/config --enable LTO_NONEfi@@ -290,23 +290,23 @@ prepare() {if [ "$_HZ_ticks" = "1000" ]; thenecho "Setting tick rate to 1k Hz..."scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000+ --enable HZ_1000 \+ --set-val HZ 1000elif [ "$_HZ_ticks" = "750" ]; thenecho "Setting tick rate to 750Hz..."scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750+ --enable HZ_750 \+ --set-val HZ 750elif [ "$_HZ_ticks" = "600" ]; thenecho "Setting tick rate to 600Hz..."scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600+ --enable HZ_600 \+ --set-val HZ 600elif [ "$_HZ_ticks" = "500" ]; thenecho "Setting tick rate to 500Hz..."scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500+ --enable HZ_500 \+ --set-val HZ 500elif [ "$_HZ_ticks" = "300" ]; thenecho "Setting tick rate to 300Hz..."fi@@ -314,17 +314,17 @@ prepare() {if [ -n "$_NUMAdisable" ]; thenecho "Disabling NUMA from kernel config..."scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODESfiif [ -n "$_mq_deadline_disable" ]; then@@ -340,86 +340,86 @@ prepare() {if [ -n "$_per_gov" ]; thenecho "Setting performance governor..."scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fiif [ "$_tickrate" = "perodic" ]; thenecho "Enabling periodic ticks..."scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODICelif [ "$_tickrate" = "idle" ]; thenecho "Enabling tickless idle..."scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMONelif [ "$_tickrate" = "full" ]; thenecho "Enabling tickless idle..."scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKINGfiif [ "$_preempt" = "full" ]; thenecho "Enabling low latency preempt..."scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMICelif [ "$_preempt" = "voluntary" ]; thenecho "Enabling tickless idle..."scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMICelif [ "$_tickrate" = "server" ]; thenecho "Enabling tickless idle..."scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMICfiif [ -n "$_cc_harder" ]; thenecho "Enabling KBUILD_CFLAGS -O3..."scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3fiif [ -n "$_tcp_bbr2" ]; thenecho "Disabling TCP_CONG_CUBIC..."scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2fiif [ -n "$_nf_cone" ]; thenecho "Enabling FULLCONENAT..."scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT+ --module NETFILTER_XT_TARGET_FULLCONENATfiif [ -n "$_spf_enable" ]; then@@ -430,99 +430,99 @@ prepare() {if [ -n "$_lru_enable" ]; thenecho "Enabling multigenerational LRU..."scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATSfiif [ -n "$_damon" ]; thenecho "Enabling DAMON..."scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIMfiif [ -n "$_lrng_enable" ]; thenecho "Enabling Linux Random Number Generator ..."scripts/config --disable RANDOM_DEFAULT_IMPL \- --enable LRNG \- --enable LRNG_OVERSAMPLE_ENTROPY_SOURCES \- --set-val LRNG_OVERSAMPLE_ES_BITS 64 \- --set-val LRNG_SEED_BUFFER_INIT_ADD_BITS 128 \- --enable LRNG_IRQ \- --enable LRNG_CONTINUOUS_COMPRESSION_ENABLED \- --disable LRNG_CONTINUOUS_COMPRESSION_DISABLED \- --enable LRNG_ENABLE_CONTINUOUS_COMPRESSION \- --enable LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION \- --disable LRNG_COLLECTION_SIZE_512 \- --enable LRNG_COLLECTION_SIZE_1024 \- --disable LRNG_COLLECTION_SIZE_2048 \- --disable LRNG_COLLECTION_SIZE_4096 \- --disable LRNG_COLLECTION_SIZE_8192 \- --set-val LRNG_COLLECTION_SIZE 1024 \- --enable LRNG_HEALTH_TESTS \- --set-val LRNG_RCT_CUTOFF 31 \- --set-val LRNG_APT_CUTOFF 325 \- --set-val LRNG_IRQ_ENTROPY_RATE 256 \- --enable LRNG_JENT \- --set-val LRNG_JENT_ENTROPY_RATE 16 \- --enable LRNG_CPU \- --set-val LRNG_CPU_ENTROPY_RATE 8 \- --enable LRNG_DRNG_SWITCH \- --enable LRNG_KCAPI_HASH \- --module LRNG_DRBG \- --module LRNG_KCAPI \- --enable LRNG_TESTING_MENU \- --disable LRNG_RAW_HIRES_ENTROPY \- --disable LRNG_RAW_JIFFIES_ENTROPY \- --disable LRNG_RAW_IRQ_ENTROPY \- --disable LRNG_RAW_IRQFLAGS_ENTROPY \- --disable LRNG_RAW_RETIP_ENTROPY \- --disable LRNG_RAW_REGS_ENTROPY \- --disable LRNG_RAW_ARRAY \- --disable LRNG_IRQ_PERF \- --disable LRNG_ACVT_HASH \- --enable LRNG_RUNTIME_ES_CONFIG \- --disable LRNG_RUNTIME_MAX_WO_RESEED_CONFIG \- --disable LRNG_TEST_CPU_ES_COMPRESSION \- --enable LRNG_SELFTEST \- --disable LRNG_SELFTEST_PANIC+ --enable LRNG \+ --enable LRNG_OVERSAMPLE_ENTROPY_SOURCES \+ --set-val LRNG_OVERSAMPLE_ES_BITS 64 \+ --set-val LRNG_SEED_BUFFER_INIT_ADD_BITS 128 \+ --enable LRNG_IRQ \+ --enable LRNG_CONTINUOUS_COMPRESSION_ENABLED \+ --disable LRNG_CONTINUOUS_COMPRESSION_DISABLED \+ --enable LRNG_ENABLE_CONTINUOUS_COMPRESSION \+ --enable LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION \+ --disable LRNG_COLLECTION_SIZE_512 \+ --enable LRNG_COLLECTION_SIZE_1024 \+ --disable LRNG_COLLECTION_SIZE_2048 \+ --disable LRNG_COLLECTION_SIZE_4096 \+ --disable LRNG_COLLECTION_SIZE_8192 \+ --set-val LRNG_COLLECTION_SIZE 1024 \+ --enable LRNG_HEALTH_TESTS \+ --set-val LRNG_RCT_CUTOFF 31 \+ --set-val LRNG_APT_CUTOFF 325 \+ --set-val LRNG_IRQ_ENTROPY_RATE 256 \+ --enable LRNG_JENT \+ --set-val LRNG_JENT_ENTROPY_RATE 16 \+ --enable LRNG_CPU \+ --set-val LRNG_CPU_ENTROPY_RATE 8 \+ --enable LRNG_DRNG_SWITCH \+ --enable LRNG_KCAPI_HASH \+ --module LRNG_DRBG \+ --module LRNG_KCAPI \+ --enable LRNG_TESTING_MENU \+ --disable LRNG_RAW_HIRES_ENTROPY \+ --disable LRNG_RAW_JIFFIES_ENTROPY \+ --disable LRNG_RAW_IRQ_ENTROPY \+ --disable LRNG_RAW_IRQFLAGS_ENTROPY \+ --disable LRNG_RAW_RETIP_ENTROPY \+ --disable LRNG_RAW_REGS_ENTROPY \+ --disable LRNG_RAW_ARRAY \+ --disable LRNG_IRQ_PERF \+ --disable LRNG_ACVT_HASH \+ --enable LRNG_RUNTIME_ES_CONFIG \+ --disable LRNG_RUNTIME_MAX_WO_RESEED_CONFIG \+ --disable LRNG_TEST_CPU_ES_COMPRESSION \+ --enable LRNG_SELFTEST \+ --disable LRNG_SELFTEST_PANICfiif [ -n "$_zstd_swap_compression" ]; thenecho "Enabling zram ZSTD compression..."scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000fiif [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPTfiecho "Enable ZRAM_ENTROPY"- scripts/config --enable ZRAM_ENTROPY+ scripts/config --enable ZRAM_ENTROPYecho "Enable USER_NS_UNPRIVILEGED"scripts/config --enable USER_NSecho "Enable WINE FASTSYNC"@@ -580,9 +580,9 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd $_srcname@@ -699,13 +699,13 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c2d2400bbf52688a1d2d1e45171331ddbc69ba1c3864e922c1c3f5b546b4d21b'- '4f4543f2d58fa9a9b5689e8dcadb86aea02ce102b1a8dbb76e66d47c5fadfd9b'- '114de325b79abf71532047001d6000f77f6b255c3542f7eeedb36ce99c14d4a9'- '8cb5f04d2b4da0db29cac021f97152e2eb2346547685f49532c1e352be05fb4a'- 'fb091f718c8e683c158dc0d3f3aa8f80f8dfd710f09da257e6bc5a418e16c2b9'- 'a3befe7b001470decc08b1e7cae0e436b5bc355c2f2b43148c6ab30ed9821ec7'- '0df9c5ae437a7a685493afebf7b5274ce1b73e89a090c31bd3af0b0fdf18ff9e'- '7cf2e27ae7ca49c8d20a6c10b0a34187f8c63f2dab3063b3649a692d65065fad'- 'f94ee42a540d935c3fa05d27485b7f6b66d6220ea2e603db8a3d9ca55e19f7ef'- 'f31972b5cdb0a9ffebe63070ce5706b9d28e47c96f5979820b3fb57f236a93bf'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '4f4543f2d58fa9a9b5689e8dcadb86aea02ce102b1a8dbb76e66d47c5fadfd9b'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ '8cb5f04d2b4da0db29cac021f97152e2eb2346547685f49532c1e352be05fb4a'+ 'fb091f718c8e683c158dc0d3f3aa8f80f8dfd710f09da257e6bc5a418e16c2b9'+ 'a3befe7b001470decc08b1e7cae0e436b5bc355c2f2b43148c6ab30ed9821ec7'+ '0df9c5ae437a7a685493afebf7b5274ce1b73e89a090c31bd3af0b0fdf18ff9e'+ '7cf2e27ae7ca49c8d20a6c10b0a34187f8c63f2dab3063b3649a692d65065fad'+ 'f94ee42a540d935c3fa05d27485b7f6b66d6220ea2e603db8a3d9ca55e19f7ef'+ 'f31972b5cdb0a9ffebe63070ce5706b9d28e47c96f5979820b3fb57f236a93bf'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFOindex 219a5463..57ade536 100755--- a/linux-cachyos-tt/.SRCINFO+++ b/linux-cachyos-tt/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-cachyos-ttsha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-cachyos-ttsha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyos-ttpkgdesc = The Linux TT scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex 7d3d97b3..59fdf0cc 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux TT scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '43ac1821d8e492ad5cbff180148d6896f39240d5ba9d9e09b3c67e26a3e27f36'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '43ac1821d8e492ad5cbff180148d6896f39240d5ba9d9e09b3c67e26a3e27f36'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFOindex bf1dde87..19832c1f 100755--- a/linux-cachyos/.SRCINFO+++ b/linux-cachyos/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyospkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -56,7 +56,7 @@ pkgbase = linux-cachyossha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -65,7 +65,7 @@ pkgbase = linux-cachyossha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cachyospkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 57dfdf9a..51706480 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,389 +248,389 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config---- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}fi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.sh+ fi++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -641,14 +641,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -682,30 +682,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -715,77 +715,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -796,11 +796,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -815,23 +815,23 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFOindex ebf23362..a1905447 100755--- a/linux-cacule-rdb/.SRCINFO+++ b/linux-cacule-rdb/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cacule-rdbpkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -56,7 +56,7 @@ pkgbase = linux-cacule-rdbsha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -65,7 +65,7 @@ pkgbase = linux-cacule-rdbsha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-cacule-rdbpkgdesc = The Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements kernel and modules@@ -89,4 +89,4 @@ pkgname = linux-cacule-rdb-headerspkgname = linux-cacule-rdb-zfspkgdesc = zfs module for the Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements kerneldepends = pahole- depends = linux-cacule-rdb=5.18.3-1+ depends = linux-cacule-rdb=5.18.3-2diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILDindex 7f61ebb8..b4c79c1a 100644--- a/linux-cacule-rdb/PKGBUILD+++ b/linux-cacule-rdb/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,23 +813,23 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- 'SKIP'- '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ 'SKIP'+ '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFOindex 654786d7..2f7111f7 100755--- a/linux-cacule/.SRCINFO+++ b/linux-cacule/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-caculepkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-caculesha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-caculesha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-caculepkgdesc = The Linux cacULE scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILDindex b30c8a12..c87d67bb 100644--- a/linux-cacule/PKGBUILD+++ b/linux-cacule/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux cacULE scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '616390dc143695ac216696e86f58beee5df420fb3af22a6a098f7a14aaf5251e'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFOindex 47f8417d..59e85d9a 100755--- a/linux-tt/.SRCINFO+++ b/linux-tt/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64arch = x86_64_v3@@ -54,7 +54,7 @@ pkgbase = linux-ttsha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -63,7 +63,7 @@ pkgbase = linux-ttsha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fpkgname = linux-ttpkgdesc = The Linux TT scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdiff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 9ab0a765..b0a3f7b4 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -143,7 +143,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux TT scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -151,78 +151,78 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+"config")if [ -n "$_build_zfs" ]; thensource+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiif [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; thensource+=("${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch""${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiexport KBUILD_BUILD_HOST=archlinux@@ -231,14 +231,14 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {-cd ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname+ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname-# [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continue+ # [[ $src = 0001-zfs-2.1.5-staging.patch ]] && continuelocal srcfor src in "${source[@]}"; dosrc="${src%%::*}"@@ -248,387 +248,387 @@ cd ${srcdir}/$_srcnamepatch -Np1 < "../$src"done- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC-- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONE+ fi++ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi++ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi++ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi++ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi++ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi++ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi++ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULTfi- fi- ### Rewrite configuration+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi++ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC++ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++ ### Rewrite configurationecho "Rewrite configuration..."make ${BUILD_FLAGS[*]} prepareyes "" | make ${BUILD_FLAGS[*]} config >/dev/null@@ -639,14 +639,14 @@ cd ${srcdir}/$_srcnameecho "Prepared $pkgbase version $(<version)"### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}@@ -680,30 +680,30 @@ _package() {pkgdesc="The $pkgdesc kernel and modules"depends=('coreutils' 'kmod' 'initramfs')optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)cd ${srcdir}/$_srcname- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"+ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"+ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"+ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod+ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod- # remove build and source links- rm "$modulesdir"/{source,build}+ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {@@ -713,77 +713,77 @@ _package-headers() {cd ${srcdir}/${_srcname}local builddir="$pkgdir/usr/lib/modules/$(<version)/build"- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"+ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"echo "Adding symlink..."mkdir -p "$pkgdir/usr/src"@@ -794,11 +794,11 @@ _package-zfs(){pkgdesc="zfs module for the $pkgdesc kernel"depends=('pahole' linux-$pkgsuffix=$_kernver)- cd ${srcdir}/"zfs"- install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"- find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +-# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"+ cd ${srcdir}/"zfs"+ install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ install -m644 module/*/*.ko "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"+ find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} ++ # sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"}pkgname=("$pkgbase" "$pkgbase-headers")@@ -813,22 +813,22 @@ for _p in "${pkgname[@]}"; dodonesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '43ac1821d8e492ad5cbff180148d6896f39240d5ba9d9e09b3c67e26a3e27f36'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '43ac1821d8e492ad5cbff180148d6896f39240d5ba9d9e09b3c67e26a3e27f36'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f')diff --git a/zfs-builtin/.SRCINFO b/zfs-builtin/.SRCINFOindex 80f726e2..1d9fcdbf 100755--- a/zfs-builtin/.SRCINFO+++ b/zfs-builtin/.SRCINFO@@ -1,4 +1,4 @@-pkgbase = linux-bore+pkgbase = linux-bore-ltopkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvementspkgver = 5.18.3pkgrel = 2@@ -23,6 +23,10 @@ pkgbase = linux-boremakedepends = binutilsmakedepends = makemakedepends = patch+ makedepends = clang+ makedepends = llvm+ makedepends = lld+ makedepends = pythonoptions = !stripsource = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.18.3.tar.xzsource = config@@ -57,7 +61,7 @@ pkgbase = linux-boresha256sums = e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745csha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7- sha256sums = 4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a+ sha256sums = 6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4esha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00sha256sums = 344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d@@ -66,10 +70,10 @@ pkgbase = linux-boresha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fbsha256sums = cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7- sha256sums = c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6+ sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1fsha256sums = SKIP-pkgname = linux-bore+pkgname = linux-bore-ltopkgdesc = The Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements kernel and modulesdepends = coreutilsdepends = kmod@@ -83,9 +87,9 @@ pkgname = linux-boreprovides = WIREGUARD-MODULEprovides = KSMBD-MODULEprovides = UKSMD-BUILTIN- provides = linux-bore-zfs+ provides = linux-bore-lto-zfs-pkgname = linux-bore-headers+pkgname = linux-bore-lto-headerspkgdesc = Headers and scripts for building modules for the Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements kerneldepends = paholeprovides = zfs-headersdiff --git a/zfs-builtin/PKGBUILD b/zfs-builtin/PKGBUILDindex ebf28ace..9aa1ddec 100644--- a/zfs-builtin/PKGBUILD+++ b/zfs-builtin/PKGBUILD@@ -105,7 +105,7 @@ _nf_cone=y# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=+_use_llvm_lto=thin## Change the thin lto cachedir for fixing building several dkms modules including zfs_thin_lto_cachedir=@@ -124,14 +124,14 @@ _use_kcfi=_build_zfs=yif [ -n "$_use_llvm_lto" ]; then- _linuxpostfix=${_cpusched}-lto+ _linuxpostfix=${_cpusched}-ltoelse- _linuxpostfix=${_cpusched}+ _linuxpostfix=${_cpusched}fiif [ -n "$_use_llvm_lto" ]; then- pkgbase=linux-${_cpusched}-lto+ pkgbase=linux-${_cpusched}-ltoelse- pkgbase=linux-${_cpusched}+ pkgbase=linux-${_cpusched}fi_major=5.18_minor=3@@ -154,80 +154,80 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')if [ -n "$_use_llvm_lto" ]; then- makedepends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )+ makedepends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )fi_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"source=(- "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"- "config")+ "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"+"config")if [ "$_cpusched" = "bmq" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "pds" ]; then- source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fiif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")+ source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")fiif [ "$_cpusched" = "bore" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch")+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "cfs" ]; then- source+=("${_patchsource}/0001-migrate.patch")+ source+=("${_patchsource}/0001-migrate.patch")fiif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-5.18.patch")fiif [ "$_cpusched" = "hardened" ]; then- source+=(- "${_patchsource}/sched/0001-bore-sched.patch"- "${_patchsource}/0001-migrate.patch"- "${_patchsource}/0001-hardening.patch"- "${_patchsource}/0001-hardened.patch")+ source+=(+ "${_patchsource}/sched/0001-bore-sched.patch"+ "${_patchsource}/0001-migrate.patch"+ "${_patchsource}/0001-hardening.patch"+ "${_patchsource}/0001-hardened.patch")fisource+=(- "${_patchsource}/0001-amd-perf.patch"- "${_patchsource}/0001-arch.patch"- "${_patchsource}/0001-bbr2.patch"- "${_patchsource}/0001-cachy.patch"- "${_patchsource}/0001-clearlinux.patch"- "${_patchsource}/0001-cpu.patch"- "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"- "${_patchsource}/0001-fixes.patch"- "${_patchsource}/0001-fs-patches.patch"- "${_patchsource}/0001-futex-winesync.patch"- "${_patchsource}/0001-hwmon.patch"- "${_patchsource}/0001-lrng.patch"- "${_patchsource}/0001-lru-le9-spf.patch"- "${_patchsource}/0001-ksm.patch"- "${_patchsource}/0001-zram-entropy-calculation.patch"- "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"- "auto-cpu-optimization.sh"+ "${_patchsource}/0001-amd-perf.patch"+ "${_patchsource}/0001-arch.patch"+ "${_patchsource}/0001-bbr2.patch"+ "${_patchsource}/0001-cachy.patch"+ "${_patchsource}/0001-clearlinux.patch"+ "${_patchsource}/0001-cpu.patch"+ "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch"+ "${_patchsource}/0001-fixes.patch"+ "${_patchsource}/0001-fs-patches.patch"+ "${_patchsource}/0001-futex-winesync.patch"+ "${_patchsource}/0001-hwmon.patch"+ "${_patchsource}/0001-lrng.patch"+ "${_patchsource}/0001-lru-le9-spf.patch"+ "${_patchsource}/0001-ksm.patch"+ "${_patchsource}/0001-zram-entropy-calculation.patch"+ "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch"+ "auto-cpu-optimization.sh")if [ -n "$_use_kcfi" ]; then- source+=("${_patchsource}/0001-kcfi.patch")- depends+=(clang llvm lld python)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )+ source+=("${_patchsource}/0001-kcfi.patch")+ depends+=(clang llvm lld python)+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ )fiif [ -n "$_build_zfs" ]; then- source+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")+ source+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4")fiexport KBUILD_BUILD_HOST=archlinux@@ -236,592 +236,592 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPprepare() {- cd $_srcname-- echo "Setting version..."- scripts/setlocalversion --save-scmversion- echo "-$pkgrel" > localversion.10-pkgrel- echo "${pkgbase#linux}" > localversion.20-pkgname-- local src- for src in "${source[@]}"; do- src="${src%%::*}"- src="${src##*/}"- [[ $src = *.patch ]] || continue- echo "Applying patch $src..."- patch -Np1 < "../$src"- done-- echo "Setting config..."- cp ../config .config-- if [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)- MARCH2=M${MARCH}- scripts/config -k --disable CONFIG_GENERIC_CPU- scripts/config -k --enable CONFIG_${MARCH2}- fi-- if [ -n "$_use_auto_optimization" ]; then- "${srcdir}"/auto-cpu-optimization.sh- fi-- ### Selecting the CPU scheduler- if [ "$_cpusched" = "bmq" ]; then- echo "Selecting BMQ CPU scheduler..."- scripts/config --enable SCHED_ALT \- --enable SCHED_BMQ \- --disable SCHED_PDS- elif [ "$_cpusched" = "pds" ]; then- echo "Selecting PDS CPU scheduler..."- scripts/config --enable SCHED_ALT \- --disable SCHED_BMQ \- --enable SCHED_PDS- elif [ "$_cpusched" = "cacule" ]; then- echo "Selecting CacULE scheduler..."- scripts/config --enable CACULE_SCHED \- --disable CACULE_RDB- elif [ "$_cpusched" = "cacule-rdb" ]; then- echo "Selecting CacULE-RDB scheduler..."- scripts/config --enable CACULE_SCHED \- --enable CACULE_RDB \- --set-val RDB_INTERVAL 19- elif [ "$_cpusched" = "bore" ]; then- echo "Selecting BORE Scheduler..."- scripts/config --enable SCHED_BORE- elif [ "$_cpusched" = "tt" ]; then- echo "Selecting TT Scheduler..."- scripts/config --enable TT_SCHED- scripts/config --enable TT_ACCOUNTING_STATS- elif [ "$_cpusched" = "cfs" ]; then- echo "Selecting Completely Fair Scheduler..."- elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."- else- if [ -n "$_cpusched" ]; then- error "The value $_cpusched is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."+ cd $_srcname++ echo "Setting version..."+ scripts/setlocalversion --save-scmversion+ echo "-$pkgrel" > localversion.10-pkgrel+ echo "${pkgbase#linux}" > localversion.20-pkgname++ local src+ for src in "${source[@]}"; do+ src="${src%%::*}"+ src="${src##*/}"+ [[ $src = *.patch ]] || continue+ echo "Applying patch $src..."+ patch -Np1 < "../$src"+ done++ echo "Setting config..."+ cp ../config .config++ if [ -n "$_processor_opt" ]; then+ MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH2=M${MARCH}+ scripts/config -k --disable CONFIG_GENERIC_CPU+ scripts/config -k --enable CONFIG_${MARCH2}+ fi++ if [ -n "$_use_auto_optimization" ]; then+ "${srcdir}"/auto-cpu-optimization.shfi- error "Selecting the CPU scheduler failed!"- exit- fi-- if [ -n "$_use_kcfi" ]; then- echo "Enabling kCFI"- scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \- --enable CFI_CLANG- fi-- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --disable LTO_CLANG_FULL \- --enable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config \- --enable LTO \- --enable LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG \- --enable ARCH_SUPPORTS_LTO_CLANG_THIN \- --disable LTO_NONE \- --enable HAS_LTO_CLANG \- --enable LTO_CLANG_FULL \- --disable LTO_CLANG_THIN \- --enable HAVE_GCC_PLUGINS- else- scripts/config --enable LTO_NONE- fi-- if [ "$_HZ_ticks" = "1000" ]; then- echo "Setting tick rate to 1k Hz..."- scripts/config --disable HZ_300 \- --enable HZ_1000 \- --set-val HZ 1000- elif [ "$_HZ_ticks" = "750" ]; then- echo "Setting tick rate to 750Hz..."- scripts/config --disable HZ_300 \- --enable HZ_750 \- --set-val HZ 750- elif [ "$_HZ_ticks" = "600" ]; then- echo "Setting tick rate to 600Hz..."- scripts/config --disable HZ_300 \- --enable HZ_600 \- --set-val HZ 600- elif [ "$_HZ_ticks" = "500" ]; then- echo "Setting tick rate to 500Hz..."- scripts/config --disable HZ_300 \- --enable HZ_500 \- --set-val HZ 500- elif [ "$_HZ_ticks" = "300" ]; then- echo "Setting tick rate to 300Hz..."- fi-- if [ -n "$_NUMAdisable" ]; then- echo "Disabling NUMA from kernel config..."- scripts/config --disable NUMA \- --disable AMD_NUMA \- --disable X86_64_ACPI_NUMA \- --disable NODES_SPAN_OTHER_NODES \- --disable NUMA_EMU \- --disable NEED_MULTIPLE_NODES \- --disable USE_PERCPU_NUMA_NODE_ID \- --disable ACPI_NUMA \- --disable ARCH_SUPPORTS_NUMA_BALANCING \- --disable NODES_SHIFT \- --undefine NODES_SHIFT \- --disable NEED_MULTIPLE_NODES- fi-- if [ -n "$_mq_deadline_disable" ]; then- echo "Disabling MQ-Deadline I/O scheduler..."- scripts/config --disable MQ_IOSCHED_DEADLINE- fi-- if [ -n "$_kyber_disable" ]; then- echo "Disabling Kyber I/O scheduler..."- scripts/config --disable MQ_IOSCHED_KYBER- fi-- if [ -n "$_per_gov" ]; then- echo "Setting performance governor..."- scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \- --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \- --enable PCIEASPM \- --enable PCIEASPM_PERFORMANCE \- --enable PCIE_BUS_PERFORMANCE- fi-- if [ "$_tickrate" = "perodic" ]; then- echo "Enabling periodic ticks..."- scripts/config --disable NO_HZ_IDLE \- --disable NO_HZ_FULL \- --disable NO_HZ \- --disable NO_HZ_COMMON \- --enable HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_FULL \- --enable NO_HZ_IDLE \- --enable NO_HZ \- --enable NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling tickless idle..."- scripts/config --disable HZ_PERIODIC \- --disable NO_HZ_IDLE \- --disable CONTEXT_TRACKING_FORCE \- --enable NO_HZ_FULL_NODEF \- --enable NO_HZ_FULL \- --enable NO_HZ \- --enable NO_HZ_COMMON \- --enable CONTEXT_TRACKING- fi-- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --enable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --enable PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_BUILD \- --disable PREEMPT_NONE \- --enable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --enable PREEMPT_COUNT \- --enable PREEMPTION \- --disable PREEMPT_DYNAMIC- elif [ "$_tickrate" = "server" ]; then- echo "Enabling tickless idle..."- scripts/config --enable PREEMPT_NONE_BUILD \- --enable PREEMPT_NONE \- --disable PREEMPT_VOLUNTARY \- --disable PREEMPT \- --disable PREEMPT_COUNT \- --disable PREEMPTION \- --disable PREEMPT_DYNAMIC- fi-- if [ -n "$_cc_harder" ]; then- echo "Enabling KBUILD_CFLAGS -O3..."- scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \- --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3- fi-- if [ -n "$_tcp_bbr2" ]; then- echo "Disabling TCP_CONG_CUBIC..."- scripts/config --module TCP_CONG_CUBIC \- --disable DEFAULT_CUBIC \- --enable TCP_CONG_BBR2 \- --enable DEFAULT_BBR2 \- --set-str DEFAULT_TCP_CONG bbr2- fi-- if [ -n "$_nf_cone" ]; then- echo "Enabling FULLCONENAT..."- scripts/config --module IP_NF_TARGET_FULLCONENAT \- --module NETFILTER_XT_TARGET_FULLCONENAT- fi-- if [ -n "$_spf_enable" ]; then- echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."- scripts/config --enable SPECULATIVE_PAGE_FAULT- fi-- if [ -n "$_lru_enable" ]; then- echo "Enabling multigenerational LRU..."- scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \- --enable LRU_GEN \- --enable LRU_GEN_ENABLED \- --disable LRU_GEN_STATS- fi-- if [ -n "$_damon" ]; then- echo "Enabling DAMON..."- scripts/config --enable DAMON \- --enable DAMON_VADDR \- --enable DAMON_DBGFS \- --enable DAMON_SYSFS \- --enable DAMON_PADDR \- --enable DAMON_RECLAIM- fi-- if [ -n "$_lrng_enable" ]; then- echo "Enabling Linux Random Number Generator ..."- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL- scripts/config --enable CONFIG_LRNG- scripts/config --enable CONFIG_LRNG_SHA256- scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF- scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC- scripts/config --enable CONFIG_LRNG_SYSCTL- scripts/config --enable CONFIG_LRNG_RANDOM_IF- scripts/config --module CONFIG_LRNG_KCAPI_IF- scripts/config --module CONFIG_LRNG_HWRAND_IF- scripts/config --enable CONFIG_LRNG_DEV_IF- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG- scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES- scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES- scripts/config --enable CONFIG_LRNG_TIMER_COMMON- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325- scripts/config --enable CONFIG_LRNG_IRQ- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256- scripts/config --enable CONFIG_LRNG_JENT- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16- scripts/config --enable CONFIG_LRNG_CPU- scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8- scripts/config --enable CONFIG_LRNG_SCHED- scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295- scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20- scripts/config --module CONFIG_LRNG_DRBG- scripts/config --module CONFIG_LRNG_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH- scripts/config --enable CONFIG_LRNG_SWITCH_HASH- scripts/config --module CONFIG_LRNG_HASH_KCAPI- scripts/config --enable CONFIG_LRNG_SWITCH_DRNG- scripts/config --module CONFIG_LRNG_SWITCH_DRBG- scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG- scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI- scripts/config --enable CONFIG_LRNG_TESTING_MENU- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_ARRAY- scripts/config --disable CONFIG_LRNG_IRQ_PERF- scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY- scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY- scripts/config --disable CONFIG_LRNG_SCHED_PERF- scripts/config --disable CONFIG_LRNG_ACVT_HASH- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION- scripts/config --enable CONFIG_LRNG_SELFTEST- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC- fi-- if [ -n "$_zstd_swap_compression" ]; then- echo "Enabling zram ZSTD compression..."- scripts/config --disable ZRAM_DEF_COMP_LZORLE \- --enable ZRAM_DEF_COMP_ZSTD \- --set-str ZRAM_DEF_COMP zstd \- --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \- --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \- --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \- --enable ZRAM_ENTROPY \- --set-val ZRAM_ENTROPY_THRESHOLD 100000- fi-- if [ -n "$_disable_debug" ]; then- scripts/config --disable DEBUG_INFO \- --disable DEBUG_INFO_BTF \- --disable DEBUG_INFO_DWARF4 \- --disable DEBUG_INFO_DWARF5 \- --disable PAHOLE_HAS_SPLIT_BTF \- --disable DEBUG_INFO_BTF_MODULES \- --disable SLUB_DEBUG \- --disable PM_DEBUG \- --disable PM_ADVANCED_DEBUG \- --disable PM_SLEEP_DEBUG \- --disable ACPI_DEBUG \- --disable SCHED_DEBUG \- --disable LATENCYTOP \- --disable DEBUG_PREEMPT- fi-- echo "Enable USER_NS_UNPRIVILEGED"- scripts/config --enable USER_NS- echo "Enable WINE FASTSYNC"- scripts/config --enable WINESYNC- ### Optionally use running kernel's config- # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191- if [ -n "$_use_current" ]; then- if [[ -s /proc/config.gz ]]; then- echo "Extracting config from /proc/config.gz..."- # modprobe configs- zcat /proc/config.gz > ./.config++ ### Selecting the CPU scheduler+ if [ "$_cpusched" = "bmq" ]; then+ echo "Selecting BMQ CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --enable SCHED_BMQ \+ --disable SCHED_PDS+ elif [ "$_cpusched" = "pds" ]; then+ echo "Selecting PDS CPU scheduler..."+ scripts/config --enable SCHED_ALT \+ --disable SCHED_BMQ \+ --enable SCHED_PDS+ elif [ "$_cpusched" = "cacule" ]; then+ echo "Selecting CacULE scheduler..."+ scripts/config --enable CACULE_SCHED \+ --disable CACULE_RDB+ elif [ "$_cpusched" = "cacule-rdb" ]; then+ echo "Selecting CacULE-RDB scheduler..."+ scripts/config --enable CACULE_SCHED \+ --enable CACULE_RDB \+ --set-val RDB_INTERVAL 19+ elif [ "$_cpusched" = "bore" ]; then+ echo "Selecting BORE Scheduler..."+ scripts/config --enable SCHED_BORE+ elif [ "$_cpusched" = "tt" ]; then+ echo "Selecting TT Scheduler..."+ scripts/config --enable TT_SCHED+ scripts/config --enable TT_ACCOUNTING_STATS+ elif [ "$_cpusched" = "cfs" ]; then+ echo "Selecting Completely Fair Scheduler..."+ elif [ "$_cpusched" = "hardened" ]; then+ echo "Selecting hardened..."else- warning "Your kernel was not compiled with IKPROC!"- warning "You cannot read the current config!"- warning "Aborting!"- exit+ if [ -n "$_cpusched" ]; then+ error "The value $_cpusched is invalid. Choose the correct one again."+ else+ error "The value is empty. Choose the correct one again."+ fi+ error "Selecting the CPU scheduler failed!"+ exitfi- fi+ if [ -n "$_use_kcfi" ]; then+ echo "Enabling kCFI"+ scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \+ --enable CFI_CLANG+ fi- ### Optionally load needed modules for the make localmodconfig- # See https://aur.archlinux.org/packages/modprobed-db- if [ -n "$_localmodcfg" ]; then- if [ -e $HOME/.config/modprobed.db ]; then- echo "Running Steven Rostedt's make localmodconfig now"- make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ if [ "$_use_llvm_lto" = "thin" ]; then+ echo "Enabling LLVM THIN LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --disable LTO_CLANG_FULL \+ --enable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINS+ elif [ "$_use_llvm_lto" = "full" ]; then+ echo "Enabling LLVM FULL LTO..."+ scripts/config \+ --enable LTO \+ --enable LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG \+ --enable ARCH_SUPPORTS_LTO_CLANG_THIN \+ --disable LTO_NONE \+ --enable HAS_LTO_CLANG \+ --enable LTO_CLANG_FULL \+ --disable LTO_CLANG_THIN \+ --enable HAVE_GCC_PLUGINSelse- echo "No modprobed.db data found"- exit+ scripts/config --enable LTO_NONEfi- fi+ if [ "$_HZ_ticks" = "1000" ]; then+ echo "Setting tick rate to 1k Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_1000 \+ --set-val HZ 1000+ elif [ "$_HZ_ticks" = "750" ]; then+ echo "Setting tick rate to 750Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_750 \+ --set-val HZ 750+ elif [ "$_HZ_ticks" = "600" ]; then+ echo "Setting tick rate to 600Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_600 \+ --set-val HZ 600+ elif [ "$_HZ_ticks" = "500" ]; then+ echo "Setting tick rate to 500Hz..."+ scripts/config --disable HZ_300 \+ --enable HZ_500 \+ --set-val HZ 500+ elif [ "$_HZ_ticks" = "300" ]; then+ echo "Setting tick rate to 300Hz..."+ fi+ if [ -n "$_NUMAdisable" ]; then+ echo "Disabling NUMA from kernel config..."+ scripts/config --disable NUMA \+ --disable AMD_NUMA \+ --disable X86_64_ACPI_NUMA \+ --disable NODES_SPAN_OTHER_NODES \+ --disable NUMA_EMU \+ --disable NEED_MULTIPLE_NODES \+ --disable USE_PERCPU_NUMA_NODE_ID \+ --disable ACPI_NUMA \+ --disable ARCH_SUPPORTS_NUMA_BALANCING \+ --disable NODES_SHIFT \+ --undefine NODES_SHIFT \+ --disable NEED_MULTIPLE_NODES+ fi- ### Rewrite configuration- echo "Rewrite configuration..."- make ${BUILD_FLAGS[*]} prepare- if [ -n "$_build_zfs" ]; then+ if [ -n "$_mq_deadline_disable" ]; then+ echo "Disabling MQ-Deadline I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_DEADLINE+ fi- cd "${srcdir}/zfs"- ./autogen.sh- ./configure --with-linux=${srcdir}/$_srcname \- --with-linux-obj=${srcdir}/$_srcname --enable-linux-builtin \- --prefix=$pkgdir/usr/lib/modules/$(<version)/build --exec-prefix=$pkgdir/usr/lib/modules/$(<version)/build \- --with-config=kernel --without-udevdir --disable-sysvinit- ./copy-builtin ${srcdir}/$_srcname- cd ${srcdir}/$_srcname- scripts/config --enable CONFIG_ZFS- fi+ if [ -n "$_kyber_disable" ]; then+ echo "Disabling Kyber I/O scheduler..."+ scripts/config --disable MQ_IOSCHED_KYBER+ fi++ if [ -n "$_per_gov" ]; then+ echo "Setting performance governor..."+ scripts/config --disable CPU_FREQ_DEFAULT_GOV_SCHEDUTIL \+ --enable CPU_FREQ_DEFAULT_GOV_PERFORMANCE \+ --enable PCIEASPM \+ --enable PCIEASPM_PERFORMANCE \+ --enable PCIE_BUS_PERFORMANCE+ fi++ if [ "$_tickrate" = "perodic" ]; then+ echo "Enabling periodic ticks..."+ scripts/config --disable NO_HZ_IDLE \+ --disable NO_HZ_FULL \+ --disable NO_HZ \+ --disable NO_HZ_COMMON \+ --enable HZ_PERIODIC+ elif [ "$_tickrate" = "idle" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_FULL \+ --enable NO_HZ_IDLE \+ --enable NO_HZ \+ --enable NO_HZ_COMMON+ elif [ "$_tickrate" = "full" ]; then+ echo "Enabling tickless idle..."+ scripts/config --disable HZ_PERIODIC \+ --disable NO_HZ_IDLE \+ --disable CONTEXT_TRACKING_FORCE \+ --enable NO_HZ_FULL_NODEF \+ --enable NO_HZ_FULL \+ --enable NO_HZ \+ --enable NO_HZ_COMMON \+ --enable CONTEXT_TRACKING+ fi++ if [ "$_preempt" = "full" ]; then+ echo "Enabling low latency preempt..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --enable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --enable PREEMPT_DYNAMIC+ elif [ "$_preempt" = "voluntary" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_BUILD \+ --disable PREEMPT_NONE \+ --enable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --enable PREEMPT_COUNT \+ --enable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ elif [ "$_tickrate" = "server" ]; then+ echo "Enabling tickless idle..."+ scripts/config --enable PREEMPT_NONE_BUILD \+ --enable PREEMPT_NONE \+ --disable PREEMPT_VOLUNTARY \+ --disable PREEMPT \+ --disable PREEMPT_COUNT \+ --disable PREEMPTION \+ --disable PREEMPT_DYNAMIC+ fi++ if [ -n "$_cc_harder" ]; then+ echo "Enabling KBUILD_CFLAGS -O3..."+ scripts/config --disable CC_OPTIMIZE_FOR_PERFORMANCE \+ --enable CC_OPTIMIZE_FOR_PERFORMANCE_O3+ fi- yes "" | make ${BUILD_FLAGS[*]} config >/dev/null- diff -u ../config .config || :+ if [ -n "$_tcp_bbr2" ]; then+ echo "Disabling TCP_CONG_CUBIC..."+ scripts/config --module TCP_CONG_CUBIC \+ --disable DEFAULT_CUBIC \+ --enable TCP_CONG_BBR2 \+ --enable DEFAULT_BBR2 \+ --set-str DEFAULT_TCP_CONG bbr2+ fi- ### Prepared version- make ${BUILD_FLAGS[*]} -s kernelrelease > version- echo "Prepared $pkgbase version $(<version)"+ if [ -n "$_nf_cone" ]; then+ echo "Enabling FULLCONENAT..."+ scripts/config --module IP_NF_TARGET_FULLCONENAT \+ --module NETFILTER_XT_TARGET_FULLCONENAT+ fi- ### Running make nconfig- [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig+ if [ -n "$_spf_enable" ]; then+ echo "Enabling SPECULATIVE_PAGE_FAULT LRU..."+ scripts/config --enable SPECULATIVE_PAGE_FAULT+ fi- ### Save configuration for later reuse- echo "Save configuration for later reuse..."- cat .config > "${startdir}/config.last"+ if [ -n "$_lru_enable" ]; then+ echo "Enabling multigenerational LRU..."+ scripts/config --enable ARCH_HAS_NONLEAF_PMD_YOUNG \+ --enable LRU_GEN \+ --enable LRU_GEN_ENABLED \+ --disable LRU_GEN_STATS+ fi- ### Save configuration for later reuse- # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"+ if [ -n "$_damon" ]; then+ echo "Enabling DAMON..."+ scripts/config --enable DAMON \+ --enable DAMON_VADDR \+ --enable DAMON_DBGFS \+ --enable DAMON_SYSFS \+ --enable DAMON_PADDR \+ --enable DAMON_RECLAIM+ fi++ if [ -n "$_lrng_enable" ]; then+ echo "Enabling Linux Random Number Generator ..."+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL+ scripts/config --enable CONFIG_LRNG+ scripts/config --enable CONFIG_LRNG_SHA256+ scripts/config --enable CONFIG_LRNG_COMMON_DEV_IF+ scripts/config --enable CONFIG_LRNG_DRNG_ATOMIC+ scripts/config --enable CONFIG_LRNG_SYSCTL+ scripts/config --enable CONFIG_LRNG_RANDOM_IF+ scripts/config --module CONFIG_LRNG_KCAPI_IF+ scripts/config --module CONFIG_LRNG_HWRAND_IF+ scripts/config --enable CONFIG_LRNG_DEV_IF+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG+ scripts/config --enable CONFIG_LRNG_IRQ_DFLT_TIMER_ES+ scripts/config --disable CONFIG_LRNG_SCHED_DFLT_TIMER_ES+ scripts/config --enable CONFIG_LRNG_TIMER_COMMON+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_256+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325+ scripts/config --enable CONFIG_LRNG_IRQ+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256+ scripts/config --enable CONFIG_LRNG_JENT+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16+ scripts/config --enable CONFIG_LRNG_CPU+ scripts/config --set-val CONFIG_LRNG_CPU_FULL_ENT_MULTIPLIER 1+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8+ scripts/config --enable CONFIG_LRNG_SCHED+ scripts/config --set-val CONFIG_LRNG_SCHED_ENTROPY_RATE 4294967295+ scripts/config --enable CONFIG_LRNG_DRNG_CHACHA20+ scripts/config --module CONFIG_LRNG_DRBG+ scripts/config --module CONFIG_LRNG_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH+ scripts/config --enable CONFIG_LRNG_SWITCH_HASH+ scripts/config --module CONFIG_LRNG_HASH_KCAPI+ scripts/config --enable CONFIG_LRNG_SWITCH_DRNG+ scripts/config --module CONFIG_LRNG_SWITCH_DRBG+ scripts/config --module CONFIG_LRNG_SWITCH_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_DFLT_DRNG_CHACHA20+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_DRBG+ scripts/config --disable CONFIG_LRNG_DFLT_DRNG_KCAPI+ scripts/config --enable CONFIG_LRNG_TESTING_MENU+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY+ scripts/config --disable CONFIG_LRNG_IRQ_PERF+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_HIRES_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_PID_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_START_TIME_ENTROPY+ scripts/config --disable CONFIG_LRNG_RAW_SCHED_NVCSW_ENTROPY+ scripts/config --disable CONFIG_LRNG_SCHED_PERF+ scripts/config --disable CONFIG_LRNG_ACVT_HASH+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION+ scripts/config --enable CONFIG_LRNG_SELFTEST+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC+ fi++ if [ -n "$_zstd_swap_compression" ]; then+ echo "Enabling zram ZSTD compression..."+ scripts/config --disable ZRAM_DEF_COMP_LZORLE \+ --enable ZRAM_DEF_COMP_ZSTD \+ --set-str ZRAM_DEF_COMP zstd \+ --disable ZSWAP_COMPRESSOR_DEFAULT_LZ4 \+ --enable ZSWAP_COMPRESSOR_DEFAULT_ZSTD \+ --set-str ZSWAP_COMPRESSOR_DEFAULT zstd \+ --enable ZRAM_ENTROPY \+ --set-val ZRAM_ENTROPY_THRESHOLD 100000+ fi++ if [ -n "$_disable_debug" ]; then+ scripts/config --disable DEBUG_INFO \+ --disable DEBUG_INFO_BTF \+ --disable DEBUG_INFO_DWARF4 \+ --disable DEBUG_INFO_DWARF5 \+ --disable PAHOLE_HAS_SPLIT_BTF \+ --disable DEBUG_INFO_BTF_MODULES \+ --disable SLUB_DEBUG \+ --disable PM_DEBUG \+ --disable PM_ADVANCED_DEBUG \+ --disable PM_SLEEP_DEBUG \+ --disable ACPI_DEBUG \+ --disable SCHED_DEBUG \+ --disable LATENCYTOP \+ --disable DEBUG_PREEMPT+ fi++ echo "Enable USER_NS_UNPRIVILEGED"+ scripts/config --enable USER_NS+ echo "Enable WINE FASTSYNC"+ scripts/config --enable WINESYNC+ ### Optionally use running kernel's config+ # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191+ if [ -n "$_use_current" ]; then+ if [[ -s /proc/config.gz ]]; then+ echo "Extracting config from /proc/config.gz..."+ # modprobe configs+ zcat /proc/config.gz > ./.config+ else+ warning "Your kernel was not compiled with IKPROC!"+ warning "You cannot read the current config!"+ warning "Aborting!"+ exit+ fi+ fi+++ ### Optionally load needed modules for the make localmodconfig+ # See https://aur.archlinux.org/packages/modprobed-db+ if [ -n "$_localmodcfg" ]; then+ if [ -e $HOME/.config/modprobed.db ]; then+ echo "Running Steven Rostedt's make localmodconfig now"+ make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig+ else+ echo "No modprobed.db data found"+ exit+ fi+ fi++++ ### Rewrite configuration+ echo "Rewrite configuration..."+ make ${BUILD_FLAGS[*]} prepare+ if [ -n "$_build_zfs" ]; then++ cd "${srcdir}/zfs"+ ./autogen.sh+ ./configure KERNEL_LLVM=1 --with-linux=${srcdir}/$_srcname \+ --with-linux-obj=${srcdir}/$_srcname --enable-linux-builtin \+ --prefix=$pkgdir/usr/lib/modules/$(<version)/build --exec-prefix=$pkgdir/usr/lib/modules/$(<version)/build \+ --with-config=kernel --enable-systemd+ ./copy-builtin ${srcdir}/$_srcname+ cd ${srcdir}/$_srcname+ scripts/config --enable CONFIG_ZFS+ fi++ yes "" | make ${BUILD_FLAGS[*]} config >/dev/null+ diff -u ../config .config || :++ ### Prepared version+ make ${BUILD_FLAGS[*]} -s kernelrelease > version+ echo "Prepared $pkgbase version $(<version)"++ ### Running make nconfig+ [[ -z "$_makenconfig" ]] || make ${BUILD_FLAGS[*]} nconfig++ ### Save configuration for later reuse+ echo "Save configuration for later reuse..."+ cat .config > "${startdir}/config.last"++ ### Save configuration for later reuse+ # cp -Tf ./.config "${startdir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"}build() {- cd ${srcdir}/$_srcname- make ${BUILD_FLAGS[*]} -j$(nproc) all+ cd ${srcdir}/$_srcname+ make ${BUILD_FLAGS[*]} -j$(nproc) all}_package() {- pkgdesc="The $pkgdesc kernel and modules"- depends=('coreutils' 'kmod' 'initramfs')- optdepends=('wireless-regdb: to set the correct wireless channels of your country'- 'linux-firmware: firmware images needed for some devices'- 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'- 'uksmd: Userspace KSM helper daemon')- provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)- if [ -n "$_build_zfs" ]; then- provides+=($pkgbase-zfs)- optdepends+=('zfs-utils')- fi-- cd $_srcname-- local kernver="$(<version)"- local modulesdir="$pkgdir/usr/lib/modules/$kernver"-- echo "Installing boot image..."- # systemd expects to find the kernel here to allow hibernation- # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"-- # Used by mkinitcpio to name the kernel- echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"-- echo "Installing modules..."- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \- DEPMOD=/doesnt/exist modules_install # Suppress depmod-- # remove build and source links- rm "$modulesdir"/{source,build}+ pkgdesc="The $pkgdesc kernel and modules"+ depends=('coreutils' 'kmod' 'initramfs')+ optdepends=('wireless-regdb: to set the correct wireless channels of your country'+ 'linux-firmware: firmware images needed for some devices'+ 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig'+ 'uksmd: Userspace KSM helper daemon')+ provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE UKSMD-BUILTIN)+ if [ -n "$_build_zfs" ]; then+ provides+=($pkgbase-zfs)+ optdepends+=('zfs-utils')+ fi++ cd $_srcname++ local kernver="$(<version)"+ local modulesdir="$pkgdir/usr/lib/modules/$kernver"++ echo "Installing boot image..."+ # systemd expects to find the kernel here to allow hibernation+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344+ install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"++ # Used by mkinitcpio to name the kernel+ echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"++ echo "Installing modules..."+ make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \+ DEPMOD=/doesnt/exist modules_install # Suppress depmod++ # remove build and source links+ rm "$modulesdir"/{source,build}}_package-headers() {- pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"- depends=(pahole)- if [ -n "$_build_zfs" ]; then- provides=("zfs-headers" "spl-headers")- fi-- cd ${_srcname}- local builddir="$pkgdir/usr/lib/modules/$(<version)/build"-- echo "Installing build files..."- install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \- localversion.* version vmlinux- install -Dt "$builddir/kernel" -m644 kernel/Makefile- install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile- cp -t "$builddir" -a scripts-- # required when STACK_VALIDATION is enabled- install -Dt "$builddir/tools/objtool" tools/objtool/objtool-- # required when DEBUG_INFO_BTF_MODULES is enabled- if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids- fi-- echo "Installing headers..."- cp -t "$builddir" -a include- cp -t "$builddir/arch/x86" -a arch/x86/include- install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s-- install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h- install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h-- # https://bugs.archlinux.org/task/13146- install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h-- # https://bugs.archlinux.org/task/20402- install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h- install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h- install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h-- # https://bugs.archlinux.org/task/71392- install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h-- echo "Installing KConfig files..."- find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;-- echo "Removing unneeded architectures..."- local arch- for arch in "$builddir"/arch/*/; do- [[ $arch = */x86/ ]] && continue- echo "Removing $(basename "$arch")"- rm -r "$arch"- done-- echo "Removing documentation..."- rm -r "$builddir/Documentation"-- echo "Removing broken symlinks..."- find -L "$builddir" -type l -printf 'Removing %P\n' -delete-- echo "Removing loose objects..."- find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete-- echo "Stripping build tools..."- local file- while read -rd '' file; do- case "$(file -bi "$file")" in- application/x-sharedlib\;*) # Libraries (.so)- strip -v $STRIP_SHARED "$file" ;;- application/x-archive\;*) # Libraries (.a)- strip -v $STRIP_STATIC "$file" ;;- application/x-executable\;*) # Binaries- strip -v $STRIP_BINARIES "$file" ;;- application/x-pie-executable\;*) # Relocatable binaries- strip -v $STRIP_SHARED "$file" ;;- esac- done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)-- echo "Stripping vmlinux..."- strip -v $STRIP_STATIC "$builddir/vmlinux"-- echo "Adding symlink..."- mkdir -p "$pkgdir/usr/src"- ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"+ pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"+ depends=(pahole)+ if [ -n "$_build_zfs" ]; then+ provides=("zfs-headers" "spl-headers")+ fi++ cd ${_srcname}+ local builddir="$pkgdir/usr/lib/modules/$(<version)/build"++ echo "Installing build files..."+ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \+ localversion.* version vmlinux+ install -Dt "$builddir/kernel" -m644 kernel/Makefile+ install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile+ cp -t "$builddir" -a scripts++ # required when STACK_VALIDATION is enabled+ install -Dt "$builddir/tools/objtool" tools/objtool/objtool++ # required when DEBUG_INFO_BTF_MODULES is enabled+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids+ fi++ echo "Installing headers..."+ cp -t "$builddir" -a include+ cp -t "$builddir/arch/x86" -a arch/x86/include+ install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s++ install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h+ install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h++ # https://bugs.archlinux.org/task/13146+ install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h++ # https://bugs.archlinux.org/task/20402+ install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h+ install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h+ install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h++ # https://bugs.archlinux.org/task/71392+ install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h++ echo "Installing KConfig files..."+ find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;++ echo "Removing unneeded architectures..."+ local arch+ for arch in "$builddir"/arch/*/; do+ [[ $arch = */x86/ ]] && continue+ echo "Removing $(basename "$arch")"+ rm -r "$arch"+ done++ echo "Removing documentation..."+ rm -r "$builddir/Documentation"++ echo "Removing broken symlinks..."+ find -L "$builddir" -type l -printf 'Removing %P\n' -delete++ echo "Removing loose objects..."+ find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete++ echo "Stripping build tools..."+ local file+ while read -rd '' file; do+ case "$(file -bi "$file")" in+ application/x-sharedlib\;*) # Libraries (.so)+ strip -v $STRIP_SHARED "$file" ;;+ application/x-archive\;*) # Libraries (.a)+ strip -v $STRIP_STATIC "$file" ;;+ application/x-executable\;*) # Binaries+ strip -v $STRIP_BINARIES "$file" ;;+ application/x-pie-executable\;*) # Relocatable binaries+ strip -v $STRIP_SHARED "$file" ;;+ esac+ done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)++ echo "Stripping vmlinux..."+ strip -v $STRIP_STATIC "$builddir/vmlinux"++ echo "Adding symlink..."+ mkdir -p "$pkgdir/usr/src"+ ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"}pkgname=("$pkgbase" "$pkgbase-headers")for _p in "${pkgname[@]}"; do- eval "package_$_p() {+ eval "package_$_p() {$(declare -f "_package${_p#$pkgbase}")_package${_p#$pkgbase}- }"+ }"donesha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea'- '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'- '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'- 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'- '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'- '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'- 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'- '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'- 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'- 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'- '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'- '4b18c6a82b62c50b45568526eeb16ae877c8f52c407a4bb9c6144c07a0d1233a'- 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'- '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'- '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'- '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'- 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'- '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'- 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'- 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'- 'c89ea5d5791b1cf5227917627a383439b0d8e459f6320372b4758e6f0814ecc6'- 'SKIP')+ '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8'+ '7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271'+ 'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'+ '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6'+ '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'+ 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232'+ '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d'+ 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521'+ 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'+ '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'+ '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857'+ 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'+ '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'+ '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d'+ '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'+ 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'+ 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'+ 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7'+ 'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f'+'SKIP')