diff mbox series

[V2] qemu: disable libkeyutils

Message ID 20251223041453.1544017-1-changqing.li@windriver.com
State New
Headers show
Series [V2] qemu: disable libkeyutils | expand

Commit Message

Changqing Li Dec. 23, 2025, 4:14 a.m. UTC
From: Changqing Li <changqing.li@windriver.com>

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>
---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 63414196fa..908dca7d5d 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -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"