summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorbrian avery <brian.avery@intel.com>2017-04-04 16:23:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 09:40:55 +0100
commit1910f9e9336bfedc8278a3bc02e7e7f934a4fc86 (patch)
tree9ed404da0b77c6465c60ecd7691f44bb1572a1e5 /scripts/lib
parent6c0fc4daee0e32c85c8895ce77126d3d0c6c2ed5 (diff)
downloadopenembedded-core-1910f9e9336bfedc8278a3bc02e7e7f934a4fc86.tar.gz
openembedded-core-1910f9e9336bfedc8278a3bc02e7e7f934a4fc86.tar.bz2
openembedded-core-1910f9e9336bfedc8278a3bc02e7e7f934a4fc86.zip
devtool: point runqemu to correct native bindir
devtool/runqemu.py was relying on STAGING_BINDIR_NATIVE to find the host tools it needed like qemu-system-<arch>. In the post RSS world, this no longer exists. This patch points it to {STAGING_DIR}/{BUILD_ARCH}/{bindir_native}. [YOCTO #11223] Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/devtool/runqemu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/devtool/runqemu.py b/scripts/lib/devtool/runqemu.py
index 641664e565..e26cf28c2f 100644
--- a/scripts/lib/devtool/runqemu.py
+++ b/scripts/lib/devtool/runqemu.py
@@ -32,7 +32,9 @@ def runqemu(args, config, basepath, workspace):
tinfoil = setup_tinfoil(config_only=True, basepath=basepath)
try:
machine = tinfoil.config_data.getVar('MACHINE')
- bindir_native = tinfoil.config_data.getVar('STAGING_BINDIR_NATIVE')
+ bindir_native = os.path.join(tinfoil.config_data.getVar('STAGING_DIR'),
+ tinfoil.config_data.getVar('BUILD_ARCH'),
+ tinfoil.config_data.getVar('bindir_native').lstrip(os.path.sep))
finally:
tinfoil.shutdown()