From 53f23aacebae9adc2062d283b36ce92937028d8f Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 19 Dec 2020 16:35:16 +0100 Subject: [PATCH] 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 --- package/pkg-download.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)' \ -- 2.30.2