package/go: drop GO_TARGET_ENV / GO_HOST_ENV
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>
This commit is contained in:
parent
1a17e4ae99
commit
0d26fb58b7
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user