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:49 +0100 |
commit | 4130931694fdf29aabaaefeabccfabefc00be4e3 (patch) | |
tree | d02c3d9a80213f71eae05f5f06d5c429560abe0c /meta/classes | |
parent | 4a75a370fdc2ff3fcd61652b80cf5516b0022415 (diff) | |
download | poky-4130931694fdf29aabaaefeabccfabefc00be4e3.tar.gz |
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.
(From OE-Core rev: 08c0b7060009113e8dffdef51ff6b9b4b7f28894)
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): | |||
133 | f.write(proxy_command) | 133 | f.write(proxy_command) |
134 | f.close | 134 | f.close |
135 | 135 | ||
136 | def pkgarch_mapping(d): | ||
137 | # Compatibility mappings of TUNE_PKGARCH (opt in) | ||
138 | if d.getVar("PKGARCHCOMPAT_ARMV7A", True): | ||
139 | if d.getVar("TUNE_PKGARCH", True) == "armv7a-vfp-neon": | ||
140 | d.setVar("TUNE_PKGARCH", "armv7a") | ||
141 | |||
142 | |||
136 | addhandler base_eventhandler | 143 | addhandler base_eventhandler |
137 | python base_eventhandler() { | 144 | python base_eventhandler() { |
138 | from bb import note, error, data | 145 | from bb import note, error, data |
@@ -203,6 +210,7 @@ python base_eventhandler() { | |||
203 | 210 | ||
204 | if name == "ConfigParsed": | 211 | if name == "ConfigParsed": |
205 | generate_git_config(e) | 212 | generate_git_config(e) |
213 | pkgarch_mapping(e.data) | ||
206 | 214 | ||
207 | if not data in e.__dict__: | 215 | if not data in e.__dict__: |
208 | return | 216 | return |