* [PATCH 0/1] devtool: runqemu: work around runqemu script path assumption
@ 2016-10-18 2:51 Paul Eggleton
2016-10-18 2:51 ` [PATCH 1/1] " Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2016-10-18 2:51 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 327e4bf5a84d5b49ccc65927df622c9ef6302d55:
build-appliance-image: Update to master head revision (2016-10-15 13:22:16 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/esdk-runqemu-path
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/esdk-runqemu-path
Paul Eggleton (1):
devtool: runqemu: work around runqemu script path assumption
scripts/lib/devtool/runqemu.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--
2.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] devtool: runqemu: work around runqemu script path assumption
2016-10-18 2:51 [PATCH 0/1] devtool: runqemu: work around runqemu script path assumption Paul Eggleton
@ 2016-10-18 2:51 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2016-10-18 2:51 UTC (permalink / raw)
To: openembedded-core
The new runqemu script assumes that if OECORE_NATIVE_SYSROOT is set then
it shouldn't try to run bitbake to find out the values of various
variables such as DEPLOY_DIR_IMAGE; this assumption is incorrect for the
extensible SDK. To work around this, clear OECORE_NATIVE_SYSROOT in the
environment when running runqemu.
Fixes [YOCTO #10447].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
scripts/lib/devtool/runqemu.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/runqemu.py b/scripts/lib/devtool/runqemu.py
index 303abca..ae25cee 100644
--- a/scripts/lib/devtool/runqemu.py
+++ b/scripts/lib/devtool/runqemu.py
@@ -48,7 +48,12 @@ def runqemu(args, config, basepath, workspace):
raise DevtoolError('Unable to determine image name to run, please specify one')
try:
- exec_build_env_command(config.init_path, basepath, 'runqemu %s %s %s' % (machine, imagename, " ".join(args.args)), watch=True)
+ # FIXME runqemu assumes that if OECORE_NATIVE_SYSROOT is set then it shouldn't
+ # run bitbake to find out the values of various environment variables, which
+ # isn't the case for the extensible SDK. Work around it for now.
+ newenv = dict(os.environ)
+ newenv.pop('OECORE_NATIVE_SYSROOT', '')
+ exec_build_env_command(config.init_path, basepath, 'runqemu %s %s %s' % (machine, imagename, " ".join(args.args)), watch=True, env=newenv)
except bb.process.ExecutionError as e:
# We've already seen the output since watch=True, so just ensure we return something to the user
return e.exitcode
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-18 2:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 2:51 [PATCH 0/1] devtool: runqemu: work around runqemu script path assumption Paul Eggleton
2016-10-18 2:51 ` [PATCH 1/1] " Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox