[OE-core] [PATCH] qemu.inc: Non deterministic compile of qemu

Richard Purdie richard.purdie at linuxfoundation.org
Sat Mar 2 13:02:03 UTC 2013


On Fri, 2013-03-01 at 11:05 -0500, Trevor Woerner wrote:
> On Fri, Mar 1, 2013 at 9:26 AM, Jason Wessel <jason.wessel at windriver.com> wrote:
> > When you using a qemuppc target and sstate you might end up with
> > the problem:
> >
> > diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> > index 6c44b31..eb60d43 100644
> > --- a/meta/recipes-devtools/qemu/qemu.inc
> > +++ b/meta/recipes-devtools/qemu/qemu.inc
> > @@ -2,8 +2,8 @@ DESCRIPTION = "open source processor emulator"
> >  HOMEPAGE = "http://qemu.org"
> >  LICENSE = "GPLv2 & LGPLv2.1"
> >  DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman"
> > -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native"
> > -DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman"
> > +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"
> 
> Is there a way to instrument this in such a way that these depends are
> included only when the target machine is qemuppc? Some sort of
> @machine_depends or something?

You could do that but it would mean you'd have a -native recipe
rebuilding when changing machine. I'd not recommend it.

Cheers,

Richard





More information about the Openembedded-core mailing list