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>
def buildcfg_vars(d):
statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
for var in statusvars:
- value = d.getVar(var)
+ # NATIVELSBSTRING var may have been overridden with "universal", so
+ # get actual host distribution id and version
+ if var == 'NATIVELSBSTRING':
+ value = lsb_distro_identifier(d)
+ else:
+ value = d.getVar(var)
if value is not None:
yield '%-20s = "%s"' % (var, value)