I'm building this package like this: env _compiler=clang _microarchitecture=99 use_tracers=n use_numa=n _compress_modules=y _localmodcfg=y makepkg -sficC. During the build, an error appears: ./arch/x86/include/asm/tlbflush.h:153:1: error: use of undeclared identifier 'CONFIG_X86_L1_CACHE_SHIFT'. As far as I understand, the identifier 'CONFIG_X86_L1_CACHE_SHIFT' is missing from .config. According to the patch, it modifies src/linux-6.16/CONFIGS/x86_64/config, then this config is copied to src/linux-6.16/.config, and something else happens to this file afterward, after which 'CONFIG_X86_L1_CACHE_SHIFT=6' disappears from it.
The problem occurs only when I select "Native optimizations autodetected" (98, 99) as the microarchitecture. When I specifically choose my processor's architecture (Zen2 - 12), the build proceeds without errors.
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: