* [Buildroot] [git commit] package/go: drop GO_TARGET_ENV / GO_HOST_ENV
@ 2020-08-29 12:35 Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2020-08-29 12:35 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=0d26fb58b79c6412c49287923e562ea6c8d950e0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Now that GO_TARGET_ENV and GO_HOST_ENV are just aliases to
HOST_GO_TARGET_ENV and HOST_GO_HOST_ENV, drop the former two, and use
the latter two directly.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/pkg-golang.mk | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk
index 9904ddcc1a..7424c31924 100644
--- a/package/pkg-golang.mk
+++ b/package/pkg-golang.mk
@@ -23,12 +23,6 @@
GO_BIN = $(HOST_DIR)/bin/go
-GO_TARGET_ENV = \
- $(HOST_GO_TARGET_ENV)
-
-GO_HOST_ENV = \
- $(HOST_GO_HOST_ENV)
-
################################################################################
# inner-golang-package -- defines how the configuration, compilation and
# installation of a Go package should be done, implements a few hooks to tune
@@ -102,7 +96,7 @@ endif
define $(2)_BUILD_CMDS
$$(foreach d,$$($(2)_BUILD_TARGETS),\
cd $$($(2)_SRC_PATH); \
- $$(GO_TARGET_ENV) \
+ $$(HOST_GO_TARGET_ENV) \
GOPATH="$$(@D)/$$($(2)_WORKSPACE)" \
$$($(2)_GO_ENV) \
$$(GO_BIN) build -v $$($(2)_BUILD_OPTS) \
@@ -115,7 +109,7 @@ else
define $(2)_BUILD_CMDS
$$(foreach d,$$($(2)_BUILD_TARGETS),\
cd $$($(2)_SRC_PATH); \
- $$(GO_HOST_ENV) \
+ $$(HOST_GO_HOST_ENV) \
GOPATH="$$(@D)/$$($(2)_WORKSPACE)" \
$$($(2)_GO_ENV) \
$$(GO_BIN) build -v $$($(2)_BUILD_OPTS) \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-29 12:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 12:35 [Buildroot] [git commit] package/go: drop GO_TARGET_ENV / GO_HOST_ENV Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.