From: Thomas Petazzoni Date: Sat, 19 Dec 2020 15:35:16 +0000 (+0100) Subject: package/pkg-download.mk: add _DL_ENV variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53f23aacebae9adc2062d283b36ce92937028d8f;p=buildroot.git package/pkg-download.mk: add _DL_ENV variable This variable can be used by package to pass extra environment variables to the download logic. It will be used for the Go/Cargo vendoring. The _DL_ENV variable is intentionally not documented: at this point, it is not meant to be used by packages directly, but only by package infrastructures. Suggested-by: Yann E. MORIN Signed-off-by: Thomas Petazzoni [yann.morin.1998@free.fr: move the two _ENV variables to the same line] Signed-off-by: Yann E. MORIN --- diff --git a/package/pkg-download.mk b/package/pkg-download.mk index 951d2fb554..118df83855 100644 --- a/package/pkg-download.mk +++ b/package/pkg-download.mk @@ -99,7 +99,8 @@ endif define DOWNLOAD $(Q)mkdir -p $($(2)_DL_DIR) - $(Q)$(EXTRA_ENV) flock $($(2)_DL_DIR)/.lock $(DL_WRAPPER) \ + $(Q)$(EXTRA_ENV) $($(2)_DL_ENV) \ + flock $($(2)_DL_DIR)/.lock $(DL_WRAPPER) \ -c '$($(2)_DL_VERSION)' \ -d '$($(2)_DL_DIR)' \ -D '$(DL_DIR)' \