summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 591746f657..e8360c2af1 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -306,11 +306,16 @@ class BaseConfig(object):
306 # FIXME: testimage.bbclass exports these two variables into env, 306 # FIXME: testimage.bbclass exports these two variables into env,
307 # are there other scenarios in which we need to support being 307 # are there other scenarios in which we need to support being
308 # invoked by bitbake? 308 # invoked by bitbake?
309 deploy = os.environ.get('DEPLOY_DIR_IMAGE', None) 309 deploy = os.environ.get('DEPLOY_DIR_IMAGE')
310 bbchild = deploy and os.environ.get('OE_TMPDIR', None) 310 bbchild = deploy and os.environ.get('OE_TMPDIR')
311 if bbchild: 311 if bbchild:
312 self.set_machine_deploy_dir(arg, deploy) 312 self.set_machine_deploy_dir(arg, deploy)
313 return 313 return
314 # also check whether we're running under a sourced toolchain
315 # environment file
316 if os.environ.get('OECORE_NATIVE_SYSROOT'):
317 self.set("MACHINE", arg)
318 return
314 319
315 cmd = 'MACHINE=%s bitbake -e' % arg 320 cmd = 'MACHINE=%s bitbake -e' % arg
316 logger.info('Running %s...' % cmd) 321 logger.info('Running %s...' % cmd)