diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-10 14:07:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-12 22:53:18 +0100 |
commit | 2da156d491caf25dfa3efd567d6dbb451dd7e9dc (patch) | |
tree | 1047b898b7ad6da60c17b6fe43e74ccad2fa7c3f /meta/classes/base.bbclass | |
parent | c9821a56da9c6e341408ea21e0d8a4cc5291dba6 (diff) | |
download | openembedded-core-2da156d491caf25dfa3efd567d6dbb451dd7e9dc.tar.gz openembedded-core-2da156d491caf25dfa3efd567d6dbb451dd7e9dc.tar.bz2 openembedded-core-2da156d491caf25dfa3efd567d6dbb451dd7e9dc.zip |
oeqa/sstatetests: Add NATIVELSB sstate signature equivalence test
The sstate checksums should be independent of whichever NATIVELSBSTRING is
detected. Add an automated QA test which tests this using bitbake -S.
To make this possible, we need to be able to override the value of
NATIVELSBSTRING so make a small change to allow this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 56fe5f2122..fe803f1836 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -210,7 +210,8 @@ addhandler base_eventhandler base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted bb.event.RecipePreFinalise" python base_eventhandler() { if isinstance(e, bb.event.ConfigParsed): - e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) + if not e.data.getVar("NATIVELSBSTRING", False): + e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) e.data.setVar('BB_VERSION', bb.__version__) pkgarch_mapping(e.data) oe.utils.features_backfill("DISTRO_FEATURES", e.data) |