diff options
author | Alexander Kanavin <alex@linutronix.de> | 2025-10-01 13:45:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-02 11:28:03 +0100 |
commit | d1e80c53a9be07f67685ffe1a53a2f437f84d573 (patch) | |
tree | 44aaa4c6443536bd6deca0bc780f5b7c1639e12a | |
parent | e02f0d06a35ed236ba0386cc031a6189ab2f168a (diff) | |
download | poky-master.tar.gz |
The version checks for local.conf/site.conf/bblayers.conf are all optional,
and aren't enforced (by insane class) if the versions aren't set.
As bitbake-setup writes out a blank local.conf, it doesn't put a version in it
either. Also, esdk bundle has a fixed set of layers and is not at risk of
needing to update its own local.conf.
The same condition is already in place for esdk's bblayers.conf for similar reasons.
(From OE-Core rev: d83ff28157aaa9322f98b8da5dd50b562085085a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index 20dfdf02d4..36a3e9c836 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
@@ -345,7 +345,13 @@ def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_che | |||
345 | if bb.data.inherits_class('uninative', d): | 345 | if bb.data.inherits_class('uninative', d): |
346 | f.write('INHERIT += "%s"\n' % 'uninative') | 346 | f.write('INHERIT += "%s"\n' % 'uninative') |
347 | f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' % (d.getVar('BUILD_ARCH'), uninative_checksum)) | 347 | f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' % (d.getVar('BUILD_ARCH'), uninative_checksum)) |
348 | f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False)) | 348 | |
349 | # CONF_VERSION may not be set, for example when using an empty local.conf | ||
350 | # generated with bitbake-setup, and it is not otherwise required to exist. | ||
351 | # Write it out only if it's defined. | ||
352 | conf_version = d.getVar('CONF_VERSION', False) | ||
353 | if conf_version is not None: | ||
354 | f.write('CONF_VERSION = "%s"\n\n' % conf_version) | ||
349 | 355 | ||
350 | # Some classes are not suitable for SDK, remove them from INHERIT | 356 | # Some classes are not suitable for SDK, remove them from INHERIT |
351 | f.write('INHERIT:remove = "%s"\n' % d.getVar('ESDK_CLASS_INHERIT_DISABLE', False)) | 357 | f.write('INHERIT:remove = "%s"\n' % d.getVar('ESDK_CLASS_INHERIT_DISABLE', False)) |