aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-14 17:11:03 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-16 13:49:24 +0100
commit7416d2e046b87b262b407f8af70b8dd9b2927c70 (patch)
tree783aef584f3cd2f98226360eda5e2631e319ef4c /include/package.mk
parentaada15af93db6bfb248239f011bafe22c613fbf3 (diff)
downloadupstream-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/package.mk')
-rw-r--r--include/package.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk
index 99e401e859..bc621a1787 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -125,8 +125,10 @@ define Download/default
PROTO:=$(PKG_SOURCE_PROTO)
$(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR)))
$(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM))
+ $(if $(PKG_MIRROR_HASH),MIRROR_HASH:=$(PKG_MIRROR_HASH))
VERSION:=$(PKG_SOURCE_VERSION)
- MD5SUM:=$(PKG_MD5SUM)
+ $(if $(PKG_MD5SUM),MD5SUM:=$(PKG_MD5SUM))
+ $(if $(PKG_HASH),HASH:=$(PKG_HASH))
endef
ifdef USE_GIT_TREE