diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-12-14 17:11:03 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-16 13:49:24 +0100 |
commit | 7416d2e046b87b262b407f8af70b8dd9b2927c70 (patch) | |
tree | 783aef584f3cd2f98226360eda5e2631e319ef4c /include/download.mk | |
parent | aada15af93db6bfb248239f011bafe22c613fbf3 (diff) | |
download | upstream-7416d2e046b87b262b407f8af70b8dd9b2927c70.tar.gz upstream-7416d2e046b87b262b407f8af70b8dd9b2927c70.tar.bz2 upstream-7416d2e046b87b262b407f8af70b8dd9b2927c70.zip |
build: replace MD5SUM variables with HASH
Since we've switched to preferring SHA256 over MD5, the old variable
name is misleading. Packages using the old name remain compatible.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/download.mk')
-rw-r--r-- | include/download.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/download.mk b/include/download.mk index 3c6b4a20cf..0a12c69ebd 100644 --- a/include/download.mk +++ b/include/download.mk @@ -49,11 +49,11 @@ define DownloadMethod/unknown endef define DownloadMethod/default - $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" "$(URL_FILE)" $(foreach url,$(URL),"$(url)") + $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(HASH)" "$(URL_FILE)" $(foreach url,$(URL),"$(url)") endef define wrap_mirror -$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" "" || ( $(1) ),$(1)) +$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_HASH))),$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_HASH)" "" || ( $(1) ),$(1)) endef define DownloadMethod/cvs @@ -170,9 +170,11 @@ define Download/Defaults FILE:= URL_FILE:= PROTO:= + HASH=$$(MD5SUM) MD5SUM:= SUBDIR:= MIRROR:=1 + MIRROR_HASH=$$(MIRROR_MD5SUM) MIRROR_MD5SUM:=x VERSION:= OPTS:= |