]> code.ossystems Code Review - openembedded-core.git/commit
goarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()
authorMark Asselstine <mark.asselstine@windriver.com>
Mon, 18 Mar 2019 15:21:53 +0000 (11:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Apr 2019 12:46:08 +0000 (13:46 +0100)
commit5f48939e26402b77fc3343f326765137f9570f40
tree3b6098b1793fdd482a7e84a12b9d08ed18511c3a
parent6300c4a83f7c8fc88702798ffe25bd6d57091673
goarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()

Per https://github.com/golang/go/wiki/GoArm we need to set GOARM when
cross building for ARMv5, ARMv6 and ARMv7. The current approach of
using TUNE_FEATURES can be error prone, as we can see today when
attempting to build for Cortex-A7 which results in GOARM=''.

Since the value of MACHINEOVERRIDES already consolidates the values of
TUNE_FEATURES into something more consistent we can use the overrides
mechanism to set GOARM, leaving just a little bit of logic in
go_map_arm() to trigger off the arch (basically target vs host)
for the setting of GOARM.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/goarch.bbclass