diff --git a/.SRCINFO b/.SRCINFO index 63af03a62c05..61869a99647b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-bmq - pkgdesc = Linux-bmq Kernel by CachyOS and with some other patches and other improvements - pkgver = 5.15 - pkgrel = 6 + pkgdesc = Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements + pkgver = 5.15.1 + pkgrel = 3 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 arch = x86_64_v3 @@ -19,10 +19,11 @@ pkgbase = linux-cachyos-bmq makedepends = tar makedepends = xz options = !strip - source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.tar.xz + source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.15.1.tar.xz source = config - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-prjc-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-stable-fix.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-prjc-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-misc.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/android-patches/0001-android-export-symbold-and-enable-building-ashmem-an.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/AMD/0001-amd64-patches.patch @@ -30,6 +31,7 @@ pkgbase = linux-cachyos-bmq source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-clearlinux-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-cpu-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-cpufreq-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-block-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-btrfs-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-fixes-miscellaneous.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-futex.patch @@ -40,40 +42,46 @@ pkgbase = linux-cachyos-bmq source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-lqx-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-lrng-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-security-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-xfs-backport.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-v4l2loopback.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-zen-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-zstd-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-zstd-upstream-patches.patch source = auto-cpu-optimization.sh - md5sums = 071d49ff4e020d58c04f9f3f76d3b594 - md5sums = 1e1dc995c4f531c9c29f9868e8adc835 - md5sums = 3458cd35e4b13db668de0b711d8f529b - md5sums = cf26387aadf2a90428350ac246b070c9 - md5sums = 9b69c2bb5bd14add123fdf1164b2225d - md5sums = a2f2715c541983f81fbcd22d8c4f2919 - md5sums = 53f037488a66667220c263f92ded333d - md5sums = 2a8097ba46be56fbbe3967e9c34c9a0b - md5sums = 0b6d09bdd920f4c31c05fdeaa0740548 - md5sums = d7f5fefd8ae018999e2b55073aaca706 - md5sums = 4792a194feb0e9267f8660f38746f4fb - md5sums = 2b793d08fe0033546a7264a565af51f3 - md5sums = 00decf9061d63b59d6a2857f4bc681df - md5sums = 5bd0ac7a56ecc0be1a71a321d100f5e8 - md5sums = a1c6a106ddbbff6be6711f6a72706cb0 - md5sums = 0dbf246a4e501c5dc276985d34faa5df - md5sums = f845dc3bca8d4e0020ed8f37e4e8d9ea - md5sums = 07fb571e48d0772a30c9777ecf13031e - md5sums = 39c65dd4eeec0dfedbf79ca5e43276d5 - md5sums = bac586853f924588e24869d8aa62f5be - md5sums = bc64b1d1a9c95b07c28457f7214ebf81 - md5sums = 8cb0301d159b59727b7bdd09350e2a9f - md5sums = de6db1147385c058b2e94df3c1739fdf - md5sums = bf58290793d3a095ef95fb1fac2de89a - md5sums = a86ed27c2ef70973502660ca6804d6fe - md5sums = 21c98f19e883879dd3336c1fa143fd31 + sha512sums = c636e16efdff88320b5354b16d2a6eb1 + sha512sums = b638c0de217b3208dcb2b4ceb5bdd66d + sha512sums = cf26387aadf2a90428350ac246b070c9 + sha512sums = 9b69c2bb5bd14add123fdf1164b2225d + sha512sums = a2f2715c541983f81fbcd22d8c4f2919 + sha512sums = 53f037488a66667220c263f92ded333d + sha512sums = 2a8097ba46be56fbbe3967e9c34c9a0b + sha512sums = 0b6d09bdd920f4c31c05fdeaa0740548 + sha512sums = d7f5fefd8ae018999e2b55073aaca706 + sha512sums = 4792a194feb0e9267f8660f38746f4fb + sha512sums = d6452799e92e21e8f8bea1fddeec60e2 + sha512sums = fb3f67bb491a4f8ed3ef3121383deb25 + sha512sums = 6038177c72982533035309fcd6df208a + sha512sums = e11e39e9ded08ca69f3bf978edd66fb5 + sha512sums = 00decf9061d63b59d6a2857f4bc681df + sha512sums = 5bd0ac7a56ecc0be1a71a321d100f5e8 + sha512sums = a1c6a106ddbbff6be6711f6a72706cb0 + sha512sums = 0dbf246a4e501c5dc276985d34faa5df + sha512sums = f845dc3bca8d4e0020ed8f37e4e8d9ea + sha512sums = bf3787026e2faa485dce9e45cc721ec5 + sha512sums = 07fb571e48d0772a30c9777ecf13031e + sha512sums = 39c65dd4eeec0dfedbf79ca5e43276d5 + sha512sums = bac586853f924588e24869d8aa62f5be + sha512sums = da85931866f501403448290f52dfe729 + sha512sums = bc64b1d1a9c95b07c28457f7214ebf81 + sha512sums = 4e4d84a2759740ec1856392f5b98de12 + sha512sums = 8cb0301d159b59727b7bdd09350e2a9f + sha512sums = de6db1147385c058b2e94df3c1739fdf + sha512sums = bf58290793d3a095ef95fb1fac2de89a + sha512sums = a86ed27c2ef70973502660ca6804d6fe + sha512sums = 21c98f19e883879dd3336c1fa143fd31 pkgname = linux-cachyos-bmq - pkgdesc = The Linux-bmq Kernel by CachyOS and with some other patches and other improvements kernel and modules + pkgdesc = The Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements kernel and modules depends = coreutils depends = kmod depends = initramfs @@ -84,6 +92,6 @@ pkgname = linux-cachyos-bmq provides = WIREGUARD-MODULE pkgname = linux-cachyos-bmq-headers - pkgdesc = Headers and scripts for building modules for the Linux-bmq Kernel by CachyOS and with some other patches and other improvements - depends = linux-cachyos-bmq=5.15 + pkgdesc = Headers and scripts for building modules for the Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements + depends = linux-cachyos-bmq=5.15.1 depends = pahole diff --git a/PKGBUILD b/PKGBUILD index d79a9ad17496..fffb35c32620 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,13 +1,47 @@ # Maintainer: Peter Jung ptr1337 +# Maintainer: Piotr Gorski +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Tobias Powalowski +# Contributor: Thomas Baechler ### BUILD OPTIONS -# Set the next two variables to ANYTHING that is not null to enable them +# Set these variables to ANYTHING that is not null to enable them + +### Tweak kernel options prior to a build via nconfig +_makenconfig= + +### Tweak kernel options prior to a build via menuconfig +_makemenuconfig= + +### Tweak kernel options prior to a build via xconfig +_makexconfig= + +### Tweak kernel options prior to a build via gconfig +_makegconfig= # NUMA is optimized for multi-socket motherboards. # A single multi-core CPU actually runs slower with NUMA enabled. # See, https://bugs.archlinux.org/task/31187 _NUMAdisable=y +# Compile ONLY used modules to VASTLYreduce the number of modules built +# and the build time. +# +# To keep track of which modules are needed for your specific system/hardware, +# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db +# This PKGBUILD read the database kept if it exists +# +# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db +_localmodcfg= + +# Use the current kernel's .config file +# Enabling this option will use the .config of the RUNNING kernel rather than +# the ARCH defaults. Useful when the package gets updated and you already went +# through the trouble of customizing your config options. NOT recommended when +# a new kernel is released, but again, convenient for package bumps. +_use_current= + + # Enable fsync _fsync=y @@ -39,10 +73,6 @@ _lru_enable=y ### Enable Linux Random Number Generator _lrng_enable=y -## Samba3 Server -_ksmbd_enable= - - ## Apply Kernel automatic Optimization _use_auto_optimization=y @@ -76,6 +106,13 @@ _zstd_module_level='normal' # Leave it unselected. _fork_brute= +### Enable SPECULATIVE_PAGE +# ATTENTION - one of three predefined values should be selected! +# 'full' - enable full SPECULATIVE_PAGE +# 'basic' - enable basic SPECULATIVE_PAGE +# 'none' - disable SPECULATIVE_PAGE +_speculative_page='none' + ## Enable it for compiling with LLVM and THINLTO _use_llvm_lto= @@ -85,37 +122,20 @@ _use_cfi= ## Enable PGO (patch is failing when cfi is also used) _use_pgo= -# Only compile active modules to VASTLY reduce the number of modules built and -# the build time. -# -# To keep track of which modules are needed for your specific system/hardware, -# give module_db a try: https://aur.archlinux.org/packages/modprobed-db -# This PKGBUILD reads the database kept if it exists -# -# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db -_localmodcfg= - -# Use the current kernel's .config file -# Enabling this option will use the .config of the RUNNING kernel rather than -# the ARCH defaults. Useful when the package gets updated and you already went -# through the trouble of customizing your config options. NOT recommended when -# a new kernel is released, but again, convenient for package bumps. -_use_current= - -# Tweak kernel options prior to a build via nconfig -_makenconfig= - if [ -n "$_use_llvm_lto" ]; then pkgbase=linux-cachyos-bmq-lto else pkgbase=linux-cachyos-bmq fi -pkgver=5.15.1 -pkgrel=1 +_major=5.15 +_minor=1 +pkgver=${_major}.${_minor} +_srcname=linux-${pkgver} arch=(x86_64 x86_64_v3) -pkgdesc='Linux-bmq Kernel by CachyOS and with some other patches and other improvements' -_gittag=v${pkgver%.*}-${pkgver##*.} +pkgdesc='Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements' +_srcname=linux-${pkgver} +pkgrel=3 arch=('x86_64' 'x86_64_v3') url="https://github.com/CachyOS/linux-cachyos" license=('GPL2') @@ -126,10 +146,11 @@ if [ -n "$_use_llvm_lto" ]; then makedepends+=(clang llvm lld python) fi _patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15" -source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.xz" +source=("https://www.kernel.org/pub/linux/kernel/v5.x/${_srcname}.tar.xz" "config" - "${_patchsource}/0001-prjc-patches.patch" "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch" + "${_patchsource}/0001-stable-fix.patch" + "${_patchsource}/0001-prjc-patches.patch" "${_patchsource}/0001-misc.patch" "${_patchsource}/android-patches/0001-android-export-symbold-and-enable-building-ashmem-an.patch" "${_patchsource}/AMD/0001-amd64-patches.patch" @@ -137,26 +158,30 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver "${_patchsource}/0001-clearlinux-patches.patch" "${_patchsource}/0001-cpu-patches.patch" "${_patchsource}/0001-cpufreq-patches.patch" - # "${_patchsource}/0001-block-backport.patch" + "${_patchsource}/0001-block-patches.patch" "${_patchsource}/0001-btrfs-patches.patch" +# "${_patchsource}/0001-ck-hrtimer.patch" "${_patchsource}/0001-fixes-miscellaneous.patch" "${_patchsource}/0001-futex.patch" "${_patchsource}/0001-hwmon-patches.patch" "${_patchsource}/0001-acpi.patch" "${_patchsource}/0001-ksmbd-patches.patch" - # "${_patchsource}/0001-sched.patch" +# "${_patchsource}/0001-sched.patch" "${_patchsource}/0001-lru-patches.patch" "${_patchsource}/0001-lqx-patches.patch" "${_patchsource}/0001-lrng-patches.patch" + # "${_patchsource}/0001-speculative-patches.patch" "${_patchsource}/0001-security-patches.patch" + "${_patchsource}/0001-xfs-backport.patch" "${_patchsource}/0001-v4l2loopback.patch" "${_patchsource}/0001-zen-patches.patch" "${_patchsource}/0001-zstd-patches.patch" "${_patchsource}/0001-zstd-upstream-patches.patch" "auto-cpu-optimization.sh" ) + if [ -n "$_use_cfi" ]; then - source+=("${_patchsource}/0002-clang-cfi.patch") + source+=("${_patchsource}/0001-cfi.patch") fi if [ -n "$_use_pgo" ]; then @@ -175,12 +200,9 @@ export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" - prepare() { - cd "${srcdir:?}/linux-${pkgver}" || ( - echo -e "\E[1;31mCan't cd to ${srcdir:?}/linux-${pkgver} directory! Prepare failed! \E[0m" - exit 1 - ) + + cd $_srcname ### Setting version echo "Setting version..." @@ -188,7 +210,7 @@ prepare() { echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname - + ### Patching sources local src for src in "${source[@]}"; do src="${src%%::*}" @@ -198,9 +220,26 @@ prepare() { patch -Np1 < "../$src" done + ### Setting config echo "Setting config..." cp ../config .config + + ### 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 IKCONFIG_PROC!" + warning "You cannot read the current config!" + warning "Aborting!" + exit + fi + fi + if [ -n "$_use_cfi" ]; then scripts/config --enable CONFIG_ARCH_SUPPORTS_CFI_CLANG scripts/config --enable CONFIG_CFI_CLANG @@ -216,10 +255,14 @@ prepare() { if [ -n "$_use_auto_optimization" ]; then "${srcdir}"/auto-cpu-optimization.sh fi + + if [ -n "$_use_optimization_select" ]; then source "${startdir}"/configure cpu_arch fi + + ### Optionally set tickrate to 2000HZ if [ -n "$_2k_HZ_ticks" ]; then echo "Setting tick rate to 2k..." @@ -243,6 +286,7 @@ prepare() { scripts/config --enable CONFIG_HZ_750 scripts/config --set-val CONFIG_HZ 750 fi + ### Optionally set tickrate to 600HZ if [ -n "$_600_HZ_ticks" ]; then echo "Setting tick rate to 600HZ..." @@ -250,6 +294,7 @@ prepare() { scripts/config --enable CONFIG_HZ_600 scripts/config --set-val CONFIG_HZ 600 fi + ### Optionally set tickrate to 500HZ if [ -n "$_500_HZ_ticks" ]; then echo "Setting tick rate to 500HZ..." @@ -293,12 +338,13 @@ prepare() { scripts/config --disable CONFIG_MQ_IOSCHED_KYBER fi - ### Enable protect file mappings under memory pressure + ### Enable protect mappings under memory pressure if [ -n "$_mm_protect" ]; then echo "Enabling protect file mappings under memory pressure..." scripts/config --enable CONFIG_UNEVICTABLE_FILE scripts/config --set-val CONFIG_UNEVICTABLE_FILE_KBYTES_LOW 262144 scripts/config --set-val CONFIG_UNEVICTABLE_FILE_KBYTES_MIN 131072 + echo "Enabling protect anonymous mappings under memory pressure..." scripts/config --enable CONFIG_UNEVICTABLE_ANON scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_LOW 65536 scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_MIN 32768 @@ -315,6 +361,30 @@ prepare() { scripts/config --disable CONFIG_LRU_GEN_STATS fi + ### Enable SPECULATIVE_PAGE + if [ "$_speculative_page" = "full" ]; then + echo "Enabling full SPECULATIVE_PAGE..." + scripts/config --enable CONFIG_ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT + scripts/config --enable CONFIG_SPECULATIVE_PAGE_FAULT + scripts/config --enable CONFIG_SPECULATIVE_PAGE_FAULT_STATS + elif [ "$_speculative_page" = "basic" ]; then + echo "Enabling basic SPECULATIVE_PAGE..." + scripts/config --enable CONFIG_ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT + scripts/config --enable CONFIG_SPECULATIVE_PAGE_FAULT + scripts/config --disable CONFIG_SPECULATIVE_PAGE_FAULT_STATS + elif [ "$_speculative_page" = "none" ]; then + echo "Disabling SPECULATIVE_PAGE..." + scripts/config --disable CONFIG_SPECULATIVE_PAGE_FAULT + else + if [ -n "$_speculative_page" ]; then + error "The value $_speculative_page is invalid. Choose the correct one again." + else + error "The value is empty. Choose the correct one again." + fi + error "Selecting SPECULATIVE_PAGE failed!" + exit + fi + ### Enable Linux Random Number Generator if [ -n "$_lrng_enable" ]; then echo "Enabling Linux Random Number Generator ..." @@ -322,6 +392,7 @@ prepare() { scripts/config --enable CONFIG_LRNG_OVERSAMPLE_ENTROPY_SOURCES scripts/config --set-val CONFIG_CONFIG_LRNG_OVERSAMPLE_ES_BITS 64 scripts/config --set-val CONFIG_LRNG_SEED_BUFFER_INIT_ADD_BITS 128 + 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 @@ -338,6 +409,7 @@ prepare() { 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_ENTROPY_RATE 8 scripts/config --enable CONFIG_LRNG_DRNG_SWITCH scripts/config --enable CONFIG_LRNG_KCAPI_HASH @@ -355,23 +427,16 @@ prepare() { scripts/config --disable CONFIG_LRNG_ACVT_HASH scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG 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 + echo "Enable LLVM LTO" if [ -n "$_use_llvm_lto" ]; then scripts/config --disable CONFIG_LTO_NONE fi - ### Enable SMB3 Kernel Server - if [ -n "$_ksmbd_enable" ]; then - echo "Enabling SMB3 Kernel Server..." - scripts/config --module CONFIG_SMB_SERVER - scripts/config --enable CONFIG_SMB_SERVER_SMBDIRECT - scripts/config --enable CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN - scripts/config --enable CONFIG_SMB_SERVER_KERBEROS5 - fi - ### Selecting the ZSTD compression level if [ "$_zstd_level" = "ultra" ]; then echo "Enabling highest ZSTD compression ratio..." @@ -418,9 +483,6 @@ prepare() { scripts/config --enable CONFIG_TCP_CONG_BBR2 scripts/config --enable CONFIG_DEFAULT_BBR2 scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2 - echo "Enabling FULLCONENAT..." - scripts/config --module CONFIG_IP_NF_TARGET_FULLCONENAT - scripts/config --module CONFIG_NETFILTER_XT_TARGET_FULLCONENAT echo "Enable BMQ CPU scheduler..." scripts/config --enable CONFIG_SCHED_ALT scripts/config --enable CONFIG_SCHED_BMQ @@ -429,6 +491,7 @@ prepare() { scripts/config --disable CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL scripts/config --enable CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE scripts/config --enable CONFIG_CPU_FREQ_GOV_ONDEMAND + scripts/config --enable CONFIG_CPU_FREQ_GOV_PERFORMANCE scripts/config --enable CONFIG_CPU_FREQ_GOV_CONSERVATIVE scripts/config --enable CONFIG_CPU_FREQ_GOV_USERSPACE scripts/config --enable CONFIG_CPU_FREQ_GOV_SCHEDUTIL @@ -441,57 +504,52 @@ prepare() { scripts/config --enable CONFIG_ANDROID_BINDER_IPC scripts/config --enable CONFIG_ANDROID_BINDERFS scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder" + echo "Enable NTFS" + scripts/config --enable CONFIG_NTFS3_FS_POSIX_ACL + scripts/config --enable CONFIG_NTFS3_FS + scripts/config --enable CONFIG_NTFS3_64BIT_CLUSTER + scripts/config --enable CONFIG_NTFS3_LZX_XPRESS + scripts/config --enable CONFIG_NLS_DEFAULT - ### Optionally disable NUMA for 64-bit kernels only - # (x86 kernels do not support NUMA) - if [ -n "$_NUMAdisable" ]; then - echo "Disabling NUMA from kernel config..." - scripts/config --disable CONFIG_NUMA - fi - - ### 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 IKCONFIG_PROC!" - 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 + if [ -f $HOME/.config/modprobed.db ]; then echo "Running Steven Rostedt's make localmodconfig now" - make ${BUILD_FLAGS[*]} LSMOD="$HOME"/.config/modprobed.db localmodconfig + make ${BUILD_FLAGS[*]} LSMOD=$HOME/.config/modprobed.db localmodconfig else echo "No modprobed.db data found" exit fi fi + echo "Applying default config..." make ${BUILD_FLAGS[*]} olddefconfig make ${BUILD_FLAGS[*]} -s kernelrelease > version echo "Prepared $pkgbase version $(