d.e: I don't really know what you are meaning with "config changes [...] are not carried over". All config settings should be applied as make nconfig
is the last statement executed in prepare() that is modifying the kernel configuration
But that "overwriting kernel-config options permanently" I can help you with. I am maintaining a personal fork of this package at https://git.staropensource.de/JeremyStarTM/kernel-optimized. Just pass the env variable _copyfinalconfig=y
to the PKGBUILD or answer y
in the handy buildtool.sh
script. After the build completes, execute `mv kconfig-final kconfig" to replace the repository's kernel config with your own. From now on, your kernel config will be used for each future build.
Alternatively, you could modify the PKGBUILD and add that functionality to your own.
I hope that helps ;)
Pinned Comments
metak commented on 2022-03-27 13:44 (UTC) (edited on 2022-04-02 13:20 (UTC) by metak)
The PKGBUILD file supports a few different configurable build-time options:
_makenconfig
Tweak kernel options prior to a build via nconfig. Pseudo-graphical menu based on ncurses. 1 2_localmodcfg
Only compile active modules to VASTLY reduce the number of modules built and the build time._subarch
Enable additional optimization/tuning for kernel builds by adding more micro-architectures options. Default isGeneric-x86-64
number36
if nothing else is selected._use_current
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_llvm_lto
Compile the kernel with LLVM/Clang._debug
Enabley
some additional debug features present in arch kernel, but not in Clear upstream.n
to force disable or leave empty to ignore.Lastly, build the kernel by setting your environment variable
env _subarch=40 _localmodcfg=y
.metak commented on 2018-01-22 01:49 (UTC) (edited on 2021-12-01 12:47 (UTC) by metak)
1. Binaries available in my repo: http://download.opensuse.org/repositories/home:/metakcahura:/kernel/Arch_Extra_standard/x86_64/
THIS IS OPTIONAL:
2. After install adjust your boot cmd line. ClearLinux uses clr-boot-manager which takes care of that. This is upstream default: