From 6ac1c1474840e11127eb63128707d97dcc084b29 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 1 Nov 2016 10:53:08 -0700 Subject: [PATCH] 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 --- lib/oe/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oe/external.py b/lib/oe/external.py index 9619244..2754bad 100644 --- a/lib/oe/external.py +++ b/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) + '-'