]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
go.bbclass: clean up CGO_xxx settings
authorMatt Madison <matt@madison.systems>
Tue, 12 Sep 2017 12:50:25 +0000 (09:50 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Sep 2017 22:51:37 +0000 (23:51 +0100)
commit088528021d6979a8e2d6bc33d63a166e300cfde4
tree5d0752057c72f9bc2b3c563524e19817c36d55fb
parent53bbd2222027b7bbca8df066a8a9a58355ae0f91
go.bbclass: clean up CGO_xxx settings

* use conditional assignment for  the CGO_xxx
  variables, so they can be overridden more easily
* remove the TOOLCHAIN_OPTIONS and TARGET_CC_ARCH
  references, since those are already present in
  CC and CXX
* remove the TARGET_ prefix so the values are
  appropriate for native, nativesdk, etc. builds
* move the GOROOT export away from the CGO settings
  and closer to its definition

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/go.bbclass