Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] esdk: Fixes for runqemu and sysroot
@ 2017-04-04 23:23 brian avery
  2017-04-04 23:23 ` [PATCH 1/1] devtool: point runqemu to correct native bindir brian avery
  0 siblings, 1 reply; 2+ messages in thread
From: brian avery @ 2017-04-04 23:23 UTC (permalink / raw)
  To: openembedded-core

The removal of STAGING_BINDIR_NATIVE broke runqemu in the esdk. This patch points the
"devtool runqemu" into the correct native bindir where the necessary tools are
located.

This fixes Bug 11223.

-brian

The following changes since commit eff56e4f0d59b1d965a68e4f009b7f07717b7edd:

  bitbake: bitbake-user-manual: Fixed special character in -D output (2017-04-03 22:32:02 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib bavery/esdk_sadqemu/bug11223
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/esdk_sadqemu/bug11223

brian avery (1):
  devtool: point runqemu to correct native bindir

 scripts/lib/devtool/runqemu.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--
1.9.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] devtool: point runqemu to correct native bindir
  2017-04-04 23:23 [PATCH 0/1] esdk: Fixes for runqemu and sysroot brian avery
@ 2017-04-04 23:23 ` brian avery
  0 siblings, 0 replies; 2+ messages in thread
From: brian avery @ 2017-04-04 23:23 UTC (permalink / raw)
  To: openembedded-core

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>
---
 scripts/lib/devtool/runqemu.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/runqemu.py b/scripts/lib/devtool/runqemu.py
index 641664e..e26cf28 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()
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-04 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-04 23:23 [PATCH 0/1] esdk: Fixes for runqemu and sysroot brian avery
2017-04-04 23:23 ` [PATCH 1/1] devtool: point runqemu to correct native bindir brian avery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox