summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 09:17:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 15:45:49 +0100
commit4130931694fdf29aabaaefeabccfabefc00be4e3 (patch)
treed02c3d9a80213f71eae05f5f06d5c429560abe0c
parent4a75a370fdc2ff3fcd61652b80cf5516b0022415 (diff)
downloadpoky-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>
-rw-r--r--meta/classes/base.bbclass8
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
136def 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
136addhandler base_eventhandler 143addhandler base_eventhandler
137python base_eventhandler() { 144python 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