@metak thanks for your work, having the options listed is very helpful. For somebody new coming to this project, it will be very beneficial.
Regarding _debug
it looks like you check if it is set, and then enable the proper debug kernel flags. As far as I understand, the issue with btfids is because the default arch kernel has these on, and when we use _use_current
it is pulling in those options even if they aren't enabled in clear. Because those are set, you need to run resolve_btfids
.
I am thinking that this is one of those 'tradeoffs' of debug vs performance. I might want to disable these. If I pass _debug=n
do you think you could disable these kernel flags instead of enabling them if it is set?
I know I could use _makenconfig
to disable these, but then if I ever have to boot standard arch kernel and compile linux-clear I will likely forget and miss them again.
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: