|
@@ -103,32 +103,31 @@ endif
|
|
|
# source from the list returned by DOWNLOAD_URIS.
|
|
|
#
|
|
|
# Argument 1 is the source location
|
|
|
-# Argument 2 is the upper-case package name
|
|
|
-# Argument 3 is a space-separated list of optional arguments
|
|
|
+# Argument 2 is a space-separated list of optional arguments
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
define DOWNLOAD
|
|
|
- $(Q)mkdir -p $($(2)_DL_DIR)
|
|
|
+ $(Q)mkdir -p $($(PKG)_DL_DIR)
|
|
|
$(Q)$(EXTRA_ENV) \
|
|
|
- $($(2)_DL_ENV) \
|
|
|
+ $($(PKG)_DL_ENV) \
|
|
|
TAR="$(TAR)" \
|
|
|
BR_NO_CHECK_HASH_FOR="$(if $(BR2_DOWNLOAD_FORCE_CHECK_HASHES),,$(BR_NO_CHECK_HASH_FOR))" \
|
|
|
- flock $($(2)_DL_DIR)/.lock $(DL_WRAPPER) \
|
|
|
- -c '$($(2)_DL_VERSION)' \
|
|
|
- -d '$($(2)_DL_DIR)' \
|
|
|
+ flock $($(PKG)_DL_DIR)/.lock $(DL_WRAPPER) \
|
|
|
+ -c '$($(PKG)_DL_VERSION)' \
|
|
|
+ -d '$($(PKG)_DL_DIR)' \
|
|
|
-D '$(DL_DIR)' \
|
|
|
-f '$(notdir $(1))' \
|
|
|
- $(foreach f,$($(2)_HASH_FILES),-H '$(f)') \
|
|
|
- -n '$($(2)_DL_SUBDIR)-$($(2)_VERSION)' \
|
|
|
- -N '$($(2)_RAWNAME)' \
|
|
|
- -o '$($(2)_DL_DIR)/$(notdir $(1))' \
|
|
|
- $(if $(filter YES,$($(2)_SVN_EXTERNALS)),-r) \
|
|
|
- $(if $($(2)_GIT_SUBMODULES),-r) \
|
|
|
- $(if $($(2)_GIT_LFS),-l) \
|
|
|
- $(foreach uri,$(call DOWNLOAD_URIS,$(1),$(2)),-u $(uri)) \
|
|
|
- $(3) \
|
|
|
+ $(foreach f,$($(PKG)_HASH_FILES),-H '$(f)') \
|
|
|
+ -n '$($(PKG)_DL_SUBDIR)-$($(PKG)_VERSION)' \
|
|
|
+ -N '$($(PKG)_RAWNAME)' \
|
|
|
+ -o '$($(PKG)_DL_DIR)/$(notdir $(1))' \
|
|
|
+ $(if $(filter YES,$($(PKG)_SVN_EXTERNALS)),-r) \
|
|
|
+ $(if $($(PKG)_GIT_SUBMODULES),-r) \
|
|
|
+ $(if $($(PKG)_GIT_LFS),-l) \
|
|
|
+ $(foreach uri,$(call DOWNLOAD_URIS,$(1),$(PKG)),-u $(uri)) \
|
|
|
+ $(2) \
|
|
|
$(QUIET) \
|
|
|
-- \
|
|
|
- $($(2)_DL_OPTS)
|
|
|
+ $($(PKG)_DL_OPTS)
|
|
|
endef
|