Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] qemu: Allow building without X11 support
@ 2014-01-29  9:38 Jonas Eriksson
  2014-01-29 13:59 ` David Nyström
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Eriksson @ 2014-01-29  9:38 UTC (permalink / raw)
  To: openembedded-core

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.
---
 meta/recipes-devtools/qemu/qemu.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 8705dc7..76119c0 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"
-- 
1.9.rc1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qemu: Allow building without X11 support
  2014-01-29  9:38 [PATCH] qemu: Allow building without X11 support Jonas Eriksson
@ 2014-01-29 13:59 ` David Nyström
  0 siblings, 0 replies; 2+ messages in thread
From: David Nyström @ 2014-01-29 13:59 UTC (permalink / raw)
  To: Jonas Eriksson, openembedded-core

On 2014-01-29 10:38, Jonas Eriksson wrote:
> 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.
> ---
>   meta/recipes-devtools/qemu/qemu.inc | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> index 8705dc7..76119c0 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"
>

Reviewed-by: David Nyström <david.nystrom@enea.com>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-29 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-29  9:38 [PATCH] qemu: Allow building without X11 support Jonas Eriksson
2014-01-29 13:59 ` David Nyström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox