summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-19 20:37:26 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-19 20:56:26 +1200
commit63ad928771459b7087ce69f5f372d159c02103f9 (patch)
treee5720a8950120245ee14c7570a9d263e28c4713e
parentba2884f6ad3a4e746fc80cbd707f83fa8abd4210 (diff)
downloadopenembedded-core-contrib-63ad928771459b7087ce69f5f372d159c02103f9.tar.gz
openembedded-core-contrib-63ad928771459b7087ce69f5f372d159c02103f9.tar.bz2
openembedded-core-contrib-63ad928771459b7087ce69f5f372d159c02103f9.zip
runqemu: fix incorrect calls to get variable values
We were specifying a default parameter; the get() function defined here does not take such a parameter. I appears this code had not been tested. This fixes runqemu erroring out immediately when used within the eSDK. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rwxr-xr-xscripts/runqemu4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 3744c67409..605bcf25d6 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -732,8 +732,8 @@ class BaseConfig(object):
# be able to call `bitbake -e`, then try:
# - get OE_TMPDIR from environment and guess paths based on it
# - get OECORE_NATIVE_SYSROOT from environment (for sdk)
- tmpdir = self.get('OE_TMPDIR', None)
- oecore_native_sysroot = self.get('OECORE_NATIVE_SYSROOT', None)
+ tmpdir = self.get('OE_TMPDIR')
+ oecore_native_sysroot = self.get('OECORE_NATIVE_SYSROOT')
if tmpdir:
logger.info('Setting STAGING_DIR_NATIVE and STAGING_BINDIR_NATIVE relative to OE_TMPDIR (%s)' % tmpdir)
hostos, _, _, _, machine = os.uname()