From: Ioan-Adrian Ratiu Date: Tue, 27 Sep 2016 14:40:11 +0000 (+0300) Subject: populate_sdk_base.bbclass: fix broken variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93d4250c2b2b2b200579d9b81a56c3dac467b10d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git populate_sdk_base.bbclass: fix broken variables This function never worked because the SDK_OUTPUT and SDKPATH vars are written bash-style in a python function. The only reason it never failed a build is because the function bails out the start because of the flag CHECK_SDK_SYSROOTS. And I guess nobody tested with CHECK_SDK_SYSROOTS enabled until now. (From OE-Core rev: 9f60dfdaaa74b90ebcfcdd9f3817c62a56243e92) Signed-off-by: Ioan-Adrian Ratiu Signed-off-by: Richard Purdie --- diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index ce12f275bbc..a23775e6c57 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -147,7 +147,8 @@ python check_sdk_sysroots() { return os.path.abspath(path) # Get scan root - SCAN_ROOT = norm_path("${SDK_OUTPUT}/${SDKPATH}/sysroots/") + SCAN_ROOT = norm_path("%s/%s/sysroots/" % (d.getVar('SDK_OUTPUT', True), + d.getVar('SDKPATH', True))) bb.note('Checking SDK sysroots at ' + SCAN_ROOT)