From dcc0f0aacdfbf90c510041063419997ae9ea3d5d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Apr 2015 19:00:14 +0000 Subject: opkg: drop md5 in favour of sha256 Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45437 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/image.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/image.mk b/include/image.mk index 31689c7e6b..165bf72f78 100644 --- a/include/image.mk +++ b/include/image.mk @@ -258,8 +258,7 @@ endef define Image/Checksum ( cd ${BIN_DIR} ; \ - $(FIND) -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs \ - md5sum --binary > md5sums \ + $(FIND) -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs $1 > $2 \ ) endef @@ -461,6 +460,7 @@ define BuildImage $(call Image/Build,$(fs)) ) $(call Image/mkfs/ubifs) - $(call Image/Checksum) + $(call Image/Checksum,md5sum --binary,md5sums) + $(call Image/Checksum,openssl dgst -sha256,sha256sums) endef -- cgit v1.2.3