aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2021-01-06 18:51:21 +0800
committerRobert Yang <liezhi.yang@windriver.com>2021-01-06 03:57:01 -0800
commit753dd31d17c544d8939b6369a5c866ab140ea247 (patch)
treeb63b15a491003bd5130a818ceffd94767e41588d
parent23cb39a5fa2a55681e7bc2605f435135cec9173b (diff)
downloadopenembedded-core-contrib-753dd31d17c544d8939b6369a5c866ab140ea247.tar.gz
openembedded-core-contrib-753dd31d17c544d8939b6369a5c866ab140ea247.tar.bz2
openembedded-core-contrib-753dd31d17c544d8939b6369a5c866ab140ea247.zip
base.bbclass: Fix dangling NATIVELSBSTRINGrbt/lsb
Fixed: $ rm -fr tmp; bitbake quilt-native -n Build Configuration: [snip] NATIVELSBSTRING = "ubuntu-18.04" [snip] And when run bitbake again: $ bitbake quilt-native -n Build Configuration: NATIVELSBSTRING = "universal" It has been changed from ubuntu-18.04 to universal on the same host and build directory, this is because it is overridded by NATIVELSBSTRING. This patch makes it print the correct value. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 78ae28bb0f4..aeb41efd24d 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -208,6 +208,8 @@ BUILDCFG_FUNCS[type] = "list"
def buildcfg_vars(d):
statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
for var in statusvars:
+ if var == 'NATIVELSBSTRING':
+ var = 'ORIGNATIVELSBSTRING'
value = d.getVar(var)
if value is not None:
yield '%-20s = "%s"' % (var, value)