X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/63c3f4a351d974754dd590798c5bc63fba1aa770..9f1311dac5ff92444c707e327f754f77a3aa7236:/include/package.mk diff --git a/include/package.mk b/include/package.mk index 2ebd66d11..cfb39dac8 100644 --- a/include/package.mk +++ b/include/package.mk @@ -79,6 +79,7 @@ define Download/default SUBDIR:=$(PKG_SOURCE_SUBDIR) PROTO:=$(PKG_SOURCE_PROTO) $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) + $(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM)) VERSION:=$(PKG_SOURCE_VERSION) MD5SUM:=$(PKG_MD5SUM) endef @@ -99,6 +100,11 @@ define Build/DefaultTargets $(if $(strip $(PKG_SOURCE_URL)),$(call Download,default)) $(call Build/Autoclean) + download: + $(foreach hook,$(Hooks/Download), + $(call $(hook))$(sep) + ) + $(STAMP_PREPARED) : export PATH=$$(TARGET_PATH_PKG) $(STAMP_PREPARED): @-rm -rf $(PKG_BUILD_DIR)