goarch.bbclass: Replace logic for setting GOARM
PATCH 1/1 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 "armv7a" instead. At the same time add a check for "armv6" and set GOARM to 6 in that case.
--- meta/classes/goarch.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
meta/classes/goarch.bbclass +5 -2
@@ -38,8 +38,11 @@ def go_map_arch(a, d): def go_map_arm(a, f, d): import re - if re.match('arm.*', a) and re.match('arm.*7.*', f): - return '7' + if re.match('arm.*', a): + if 'armv7a' in f: + return '7' + elif 'armv6' in f: + return '6' return '' def go_map_os(o, d):
Signature · 1 line
2.7.4
Wrong ML
Quoted 38 lines · Will Newton
The previous logic applied a regex to
TUNE_FEATURESwhich could set the GOARM value to 7 incorrectly, for example when dealing with an arm1176 core. Simplify to check for the presence of "armv7a" instead. At the same time add a check for "armv6" and set GOARM to 6 in that case.Signed-off-by Will Newton <[email protected]>--- meta/classes/goarch.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)meta/classes/goarch.bbclass +5
-3@@ -38,8 +38,11 @@ def go_map_arch(a, d): def go_map_arm(a, f, d): import re - if re.match('arm.*', a) and re.match('arm.*7.*', f): - return '7' + if re.match('arm.*', a): + if 'armv7a' in f: + return '7' + elif 'armv6' in f: + return '6' return '' def go_map_os(o, d): --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 1 line · Martin Jansa
Wrong ML
I appreciate you taking the time to craft this response, but it isn't very helpful to me.
Quoted 41 lines · Will Newton
Quoted 38 lines
The previous logic applied a regex to
TUNE_FEATURESwhich could set the GOARM value to 7 incorrectly, for example when dealing with an arm1176 core. Simplify to check for the presence of "armv7a" instead. At the same time add a check for "armv6" and set GOARM to 6 in that case.Signed-off-by Will Newton <[email protected]>--- meta/classes/goarch.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)meta/classes/goarch.bbclass +5
-3@@ -38,8 +38,11 @@ def go_map_arch(a, d): def go_map_arm(a, f, d): import re - if re.match('arm.*', a) and re.match('arm.*7.*', f): - return '7' + if re.match('arm.*', a): + if 'armv7a' in f: + return '7' + elif 'armv6' in f: + return '6' return '' def go_map_os(o, d): --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
This class is in oe-core, so should go do openembedded-core@ not -devel@.
Ross
Quoted 55 lines · Will Newton
Quoted 1 line · Martin Jansa
Wrong ML
I appreciate you taking the time to craft this response, but it isn't very helpful to me.
Quoted 1 line
On Thu, Sep 7, 2017 at 11:17 AM, Will Newton <[email protected]>
Quoted 33 lines · wrote:
Quoted 33 lines
The previous logic applied a regex to
TUNE_FEATURESwhich could set the GOARM value to 7 incorrectly, for example when dealing with an arm1176 core. Simplify to check for the presence of "armv7a" instead. At the same time add a check for "armv6" and set GOARM to 6 in that case.Signed-off-by Will Newton <[email protected]>--- meta/classes/goarch.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)meta/classes/goarch.bbclass +5
-3@@ -38,8 +38,11 @@ def go_map_arch(a, d): def go_map_arm(a, f, d): import re - if re.match('arm.*', a) and re.match('arm.*7.*', f): - return '7' + if re.match('arm.*', a): + if 'armv7a' in f: + return '7' + elif 'armv6' in f: + return '6' return '' def go_map_os(o, d): --2.7.4
Quoted 7 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel