summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorJonas Eriksson <jonas.eriksson@enea.com>2014-01-29 10:38:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-29 17:36:02 +0000
commite88b85406f2a6722a507b5db3485358a88d950f7 (patch)
treef75f5fd55797ff2e5fdb86a627eaccc22d81eac4 /meta/recipes-devtools
parent7d8075c64bd0734cb70d16acef36c1a17276b359 (diff)
downloadopenembedded-core-e88b85406f2a6722a507b5db3485358a88d950f7.tar.gz
openembedded-core-e88b85406f2a6722a507b5db3485358a88d950f7.tar.bz2
openembedded-core-e88b85406f2a6722a507b5db3485358a88d950f7.zip
qemu: Allow building without X11 support
To enable the construction of minimal hypervisors based on OE, it is important to be able to build qemu without it requiring X support. By checking that the distro is built with the x11 feature before adding virtual/x11 to the dependencies, this is made possible. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 8705dc78a4..76119c0bd4 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -1,7 +1,8 @@
SUMMARY = "Fast open source processor emulator"
HOMEPAGE = "http://qemu.org"
LICENSE = "GPLv2 & LGPLv2.1"
-DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl"
+DEPENDS = "glib-2.0 zlib alsa-lib pixman dtc libsdl \
+ ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}"
DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"