mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
go-cross: take GOARM environment setting
Instead of hard-coding GOARM to ${TARGET_GOARM} in
the wrapper script, take it from an existing
environment setting if present. This allows the
same cross-compiler to be used for different ARM
targets.
(From OE-Core rev: 1d319f102cd1f37ce5629c73948efae01478f866)
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>
This commit is contained in:
committed by
Richard Purdie
parent
242318fa28
commit
34fa930027
@@ -36,7 +36,7 @@ make_wrapper() {
|
||||
here=\`dirname \$0\`
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
export GOOS="${TARGET_GOOS}"
|
||||
export GOARM="${TARGET_GOARM}"
|
||||
export GOARM="\${GOARM:-${TARGET_GOARM}}"
|
||||
\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
|
||||
END
|
||||
chmod +x ${D}${bindir}/$2
|
||||
|
||||
Reference in New Issue
Block a user