]> code.ossystems Code Review - openembedded-core.git/commit
goarch.bbclass: Replace logic for setting GOARM
authorWill Newton <will.newton@gmail.com>
Fri, 8 Sep 2017 21:04:34 +0000 (18:04 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:30:14 +0000 (17:30 +0100)
commit07b60c15e9ef650940afdde37bf3f3b9c50a336d
tree979dbb96a17c17ee6e22e4f063278b9082bbd2b5
parent26abbf129d7ca0d36f6244f96fa8a572fd847899
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.

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>
meta/classes/goarch.bbclass