View previous topic :: View next topic |
Author |
Message |
Muldakmens n00b
Joined: 12 Dec 2024 Posts: 1
|
Posted: Thu Dec 12, 2024 3:36 pm Post subject: Cannot compile the CachyOS kernel |
|
|
Hi,
This is my first time ever manually configuring and compiling the kernel, and I seem to get in trouble due to unwanted secure boot features.
Code: | koknese /usr/src/linux # make -j9 && make modules_install && make install
mkdir -p /usr/src/linux-6.12.4-cachyos-6.12.4/tools/objtool && make O=/usr/src/linux-6.12.4-cachyos-6.12.4 subdir=tools/objtool --no-print-directory -C objtool
mkdir -p /usr/src/linux-6.12.4-cachyos-6.12.4/tools/bpf/resolve_btfids && make O=/usr/src/linux-6.12.4-cachyos-6.12.4 subdir=tools/bpf/resolve_btfids --no-print-directory -C bpf/resolve_btfids
INSTALL libsubcmd_headers
CALL scripts/checksyscalls.sh
INSTALL libsubcmd_headers
make[3]: *** No rule to make target '/var/tmp/portage/sys-kernel/gentoo-kernel-6.12.3/temp/kernel_key.pem', needed by 'certs/signing_key.x509'. Stop.
make[2]: *** [scripts/Makefile.build:478: certs] Error 2
make[2]: *** Waiting for unfinished jobs....
CHK kernel/kheaders_data.tar.xz
make[1]: *** [/usr/src/linux-6.12.4-cachyos-6.12.4/Makefile:1948: .] Error 2
make: *** [Makefile:224: __sub-make] Error 2 |
I have also disabled this in the kernel config
Code: |
-*- Module signature verification
│ │ [ ] Require modules to be validly signed
│ │ [ ] Automatically sign all modules
|
yet, to no avail. Is there a way I can disable Secure Boot related features and continue compiling? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1761 Location: South America
|
Posted: Thu Dec 12, 2024 4:54 pm Post subject: |
|
|
This looks like something related to CONFIG_SYSTEM_TRUSTED_KEYRING and CONFIG_MODULE_SIG_KEY; it will be easier to help you if you put the .config file in a pastebin site and post a link. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
|