diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 09:17:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 15:45:28 +0100 |
commit | 08c0b7060009113e8dffdef51ff6b9b4b7f28894 (patch) | |
tree | c7e086bc34615c40c2faf3083bbc0af575a42153 /meta/classes | |
parent | e198b72bc03c7545417944dcb3c930aaf2376488 (diff) | |
download | openembedded-core-08c0b7060009113e8dffdef51ff6b9b4b7f28894.tar.gz openembedded-core-08c0b7060009113e8dffdef51ff6b9b4b7f28894.tar.bz2 openembedded-core-08c0b7060009113e8dffdef51ff6b9b4b7f28894.zip |
base.bbclass: Add compatibility package name mapping handler
This means if PKGARCHCOMPAT_ARMV7A is set, "armv7a-vfp-neon" is renamed
to be "armv7a". Other compatibility mappings can be added as needed.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f12b3cb870..3ed1bb84b9 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -133,6 +133,13 @@ def generate_git_config(e): f.write(proxy_command) f.close +def pkgarch_mapping(d): + # Compatibility mappings of TUNE_PKGARCH (opt in) + if d.getVar("PKGARCHCOMPAT_ARMV7A", True): + if d.getVar("TUNE_PKGARCH", True) == "armv7a-vfp-neon": + d.setVar("TUNE_PKGARCH", "armv7a") + + addhandler base_eventhandler python base_eventhandler() { from bb import note, error, data @@ -203,6 +210,7 @@ python base_eventhandler() { if name == "ConfigParsed": generate_git_config(e) + pkgarch_mapping(e.data) if not data in e.__dict__: return |