package/pkg-golang: allow packages to define download environment
Currently, the golang infrastructure forcibly sets the package _DL_ENV variable, instead of appending to it, which prevents packages from providing their own download environment variables. We fix that by using an append-assignment. Note: when introduced, that variable was explicitly not documented, and is supposed to only be used by packages infrastructures. However, that variable exists, and it can be (ab)used by br2-external packages (most probably to ill effects, but heh!). We anyway leave it undocumented, like _ROOTFS_PRE_CMD_HOOKS. Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Christian Stewart <christian@paral.in> Cc: Anisse Astier <anisse@astier.eu> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Christian Stewart <christian@paral.in> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e7327aeafc
commit
a1ef4c1d9a
@ -83,7 +83,7 @@ endef
|
||||
$(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD
|
||||
|
||||
$(2)_DOWNLOAD_POST_PROCESS = go
|
||||
$(2)_DL_ENV = \
|
||||
$(2)_DL_ENV += \
|
||||
$(HOST_GO_COMMON_ENV) \
|
||||
GOPROXY=direct \
|
||||
BR_GOMOD=$$($(2)_GOMOD)
|
||||
|
Loading…
Reference in New Issue
Block a user