diff options
-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 |