Browse Source

oe.external: run in topdir, not tmpdir

If we run in tmpdir, and run a bitbake -e after wiping tmpdir,
EXTERNAL_TOOLCHAIN_SYSROOT will be 'UNKNOWN' rather than the correct path, due
to PWD not existing when we try to extract the sysroot path.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Christopher Larson 7 years ago
parent
commit
6ac1c14748
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/oe/external.py

+ 1 - 1
lib/oe/external.py

@@ -4,7 +4,7 @@ import bb
 
 
 def run(d, cmd, *args):
-    topdir = d.getVar('TMPDIR', True)
+    topdir = d.getVar('TOPDIR', True)
     toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True)
     if toolchain_path:
         target_prefix = d.getVar('EXTERNAL_TARGET_SYS', True) + '-'