]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
qemu: disable libkeyutils
authorChangqing Li <changqing.li@windriver.com>
Tue, 23 Dec 2025 04:14:53 +0000 (12:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Dec 2025 12:28:41 +0000 (12:28 +0000)
When package keyutils-devel is installed on host and gcc in extend buildtools
is used, qemu-system-native do_compile failed with error:
../qemu-9.2.0/backends/cryptodev-lkcf.c:36:10: fatal error: keyutils.h: No such file or directory*

 36    #include <keyutils.h>

                ^~~~~~~~~~~~

gcc in extend buildtools can find libkeyutil on the host, but it will not
search the headers on the host cause above issue. add PACKAGECONFIG
libkeyutils, and disable libkeyutils by default to fix the issue

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc

index 63414196fa15a8669a8ca555b32c88bbbee28a1e..908dca7d5d1eb44e4cace4ac72c6ac41ec973a1d 100644 (file)
@@ -229,6 +229,7 @@ PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack,"
 PACKAGECONFIG[debuginfo] = "--enable-libdw,--disable-libdw,elfutils"
 PACKAGECONFIG[pipewire] = "--enable-pipewire,--disable-pipewire,pipewire"
 PACKAGECONFIG[sndio] = "--enable-sndio,--disable-sndio,sndio"
+PACKAGECONFIG[libkeyutils] = "--enable-libkeyutils,--disable-libkeyutils,keyutils"
 
 INSANE_SKIP:${PN}-common = "arch"