]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu-native: only depends on libxext-native when x11
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 2 Sep 2014 13:29:13 +0000 (06:29 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Sep 2014 09:24:20 +0000 (10:24 +0100)
Fixed when build without x11 in DISTRO_FEATURES:
ERROR: libxext-native was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc

index f7717401281fbf23cc37dfc57c89880dfb09d555..c8b400a36616f83607a51a927c08f4b0ae88b4e7 100644 (file)
@@ -87,7 +87,7 @@ PACKAGECONFIG ??= "fdt sdl alsa"
 PACKAGECONFIG_class-native ??= "fdt alsa"
 PACKAGECONFIG_class-nativesdk ??= "fdt sdl"
 NATIVEDEPS = ""
-NATIVEDEPS_class-native = "libxext-native"
+NATIVEDEPS_class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxext-native', '',d)}"
 PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl ${NATIVEDEPS},"
 PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr,"
 PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio,"