diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-04-19 20:57:27 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-19 10:38:36 +0100 |
commit | 6ffec971e8e01964c4393c54872400d489a5c0d6 (patch) | |
tree | ce578e8566af43e6223b411ccedddad4ca6872e7 /scripts/runqemu | |
parent | 00d49a05a6bf659cce6cdc025a1fade35ce8f1d2 (diff) | |
download | poky-6ffec971e8e01964c4393c54872400d489a5c0d6.tar.gz |
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.
(From OE-Core rev: e4548531112c824653ae42b9bcc335a7ca8588e0)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
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): | |||
732 | # be able to call `bitbake -e`, then try: | 732 | # be able to call `bitbake -e`, then try: |
733 | # - get OE_TMPDIR from environment and guess paths based on it | 733 | # - get OE_TMPDIR from environment and guess paths based on it |
734 | # - get OECORE_NATIVE_SYSROOT from environment (for sdk) | 734 | # - get OECORE_NATIVE_SYSROOT from environment (for sdk) |
735 | tmpdir = self.get('OE_TMPDIR', None) | 735 | tmpdir = self.get('OE_TMPDIR') |
736 | oecore_native_sysroot = self.get('OECORE_NATIVE_SYSROOT', None) | 736 | oecore_native_sysroot = self.get('OECORE_NATIVE_SYSROOT') |
737 | if tmpdir: | 737 | if tmpdir: |
738 | logger.info('Setting STAGING_DIR_NATIVE and STAGING_BINDIR_NATIVE relative to OE_TMPDIR (%s)' % tmpdir) | 738 | logger.info('Setting STAGING_DIR_NATIVE and STAGING_BINDIR_NATIVE relative to OE_TMPDIR (%s)' % tmpdir) |
739 | hostos, _, _, _, machine = os.uname() | 739 | hostos, _, _, _, machine = os.uname() |