* [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE
@ 2013-02-04 9:57 Martin Jansa
2013-02-04 12:18 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-02-04 9:57 UTC (permalink / raw)
To: openembedded-core
* qemu images are usefull even without qemu installed on build machine.
Some people are building on one machine, but then downloading images
somewhere else to test them.
* use new "runqemu" DISTRO_FEATURE and BACKFILL it so the behavior stays
the same, unless disabled by DISTRO_FEATURES_BACKFILL_CONSIDERED
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/conf/bitbake.conf | 2 +-
meta/conf/machine/include/qemu.inc | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 223c03f..c5ebc94 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -732,7 +732,7 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
-DISTRO_FEATURES_BACKFILL = "pulseaudio ${DISTRO_FEATURES_INITMAN}"
+DISTRO_FEATURES_BACKFILL = "pulseaudio ${DISTRO_FEATURES_INITMAN} runqemu"
MACHINE_FEATURES_BACKFILL = "rtc"
COMBINED_FEATURES = "\
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc
index f68bf32..1470778 100644
--- a/meta/conf/machine/include/qemu.inc
+++ b/meta/conf/machine/include/qemu.inc
@@ -24,4 +24,5 @@ RDEPENDS_kernel-base = ""
# Use a common kernel recipe for all QEMU machines
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
-EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
+RUNQEMU_IMAGEDEPENDS = "qemu-native qemu-helper-native"
+EXTRA_IMAGEDEPENDS += "${@base_contains("DISTRO_FEATURES", "runqemu", "${RUNQEMU_IMAGEDEPENDS}", "", d)}"
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE
2013-02-04 9:57 [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE Martin Jansa
@ 2013-02-04 12:18 ` Richard Purdie
2013-03-03 0:59 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2013-02-04 12:18 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
On Mon, 2013-02-04 at 10:57 +0100, Martin Jansa wrote:
> * qemu images are usefull even without qemu installed on build machine.
> Some people are building on one machine, but then downloading images
> somewhere else to test them.
> * use new "runqemu" DISTRO_FEATURE and BACKFILL it so the behavior stays
> the same, unless disabled by DISTRO_FEATURES_BACKFILL_CONSIDERED
Using DISTRO_FEATURES for this is nasty since if you change this item,
the sstate cache is invalidated. Its really a build configuration level
thing, not a distro feature...
So whilst I appreciate the reasoning for it, I don't think its the right
approach and we'll need to find another one.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE
2013-02-04 12:18 ` Richard Purdie
@ 2013-03-03 0:59 ` Martin Jansa
2013-04-12 20:11 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-03-03 0:59 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
On Mon, Feb 04, 2013 at 12:18:24PM +0000, Richard Purdie wrote:
> On Mon, 2013-02-04 at 10:57 +0100, Martin Jansa wrote:
> > * qemu images are usefull even without qemu installed on build machine.
> > Some people are building on one machine, but then downloading images
> > somewhere else to test them.
> > * use new "runqemu" DISTRO_FEATURE and BACKFILL it so the behavior stays
> > the same, unless disabled by DISTRO_FEATURES_BACKFILL_CONSIDERED
>
> Using DISTRO_FEATURES for this is nasty since if you change this item,
> the sstate cache is invalidated. Its really a build configuration level
> thing, not a distro feature...
>
> So whilst I appreciate the reasoning for it, I don't think its the right
> approach and we'll need to find another one.
What about removing this completely and adding check in runqemu script
to say that qemu-native wasn't built?
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE
2013-03-03 0:59 ` Martin Jansa
@ 2013-04-12 20:11 ` Martin Jansa
0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2013-04-12 20:11 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
On Sun, Mar 03, 2013 at 01:59:28AM +0100, Martin Jansa wrote:
> On Mon, Feb 04, 2013 at 12:18:24PM +0000, Richard Purdie wrote:
> > On Mon, 2013-02-04 at 10:57 +0100, Martin Jansa wrote:
> > > * qemu images are usefull even without qemu installed on build machine.
> > > Some people are building on one machine, but then downloading images
> > > somewhere else to test them.
> > > * use new "runqemu" DISTRO_FEATURE and BACKFILL it so the behavior stays
> > > the same, unless disabled by DISTRO_FEATURES_BACKFILL_CONSIDERED
> >
> > Using DISTRO_FEATURES for this is nasty since if you change this item,
> > the sstate cache is invalidated. Its really a build configuration level
> > thing, not a distro feature...
> >
> > So whilst I appreciate the reasoning for it, I don't think its the right
> > approach and we'll need to find another one.
>
> What about removing this completely and adding check in runqemu script
> to say that qemu-native wasn't built?
Or using IMAGETEST variable?
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-12 20:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-04 9:57 [PATCH] qemu.inc: depend on qemu-native only with runqemu DISTRO_FEATURE Martin Jansa
2013-02-04 12:18 ` Richard Purdie
2013-03-03 0:59 ` Martin Jansa
2013-04-12 20:11 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox