diff options
author | Will Newton <will.newton@gmail.com> | 2017-09-08 18:04:34 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-11 17:30:30 +0100 |
commit | 602f786ecdace325e8f4858b3e07e9bd79229e64 (patch) | |
tree | 309e4836c960571f361367a3011a42bade08ecfd /meta/classes/goarch.bbclass | |
parent | 30e23e15563dcee2e9d8d559a55bff97079cf713 (diff) | |
download | poky-602f786ecdace325e8f4858b3e07e9bd79229e64.tar.gz |
goarch.bbclass: Replace logic for setting GOARM
The previous logic applied a regex to TUNE_FEATURES which could
set the GOARM value to 7 incorrectly, for example when dealing
with an arm1176 core. Simplify to check for the presence of
"armv7" instead. At the same time add a check for "armv6" and
set GOARM to 6 in that case.
(From OE-Core rev: 07b60c15e9ef650940afdde37bf3f3b9c50a336d)
Signed-off-by: Will Newton <willn@resin.io>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r-- | meta/classes/goarch.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 7960ac5f9e..0f0d8b6a60 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass | |||
@@ -45,8 +45,11 @@ def go_map_arch(a, d): | |||
45 | 45 | ||
46 | def go_map_arm(a, f, d): | 46 | def go_map_arm(a, f, d): |
47 | import re | 47 | import re |
48 | if re.match('arm.*', a) and re.match('arm.*7.*', f): | 48 | if re.match('arm.*', a): |
49 | return '7' | 49 | if 'armv7' in f: |
50 | return '7' | ||
51 | elif 'armv6' in f: | ||
52 | return '6' | ||
50 | return '' | 53 | return '' |
51 | 54 | ||
52 | def go_map_os(o, d): | 55 | def go_map_os(o, d): |