aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Boyett <agb@openwrt.org>2008-10-07 08:01:55 +0000
committerAndy Boyett <agb@openwrt.org>2008-10-07 08:01:55 +0000
commitcfab7bab638b9fc6ca217ea418e728abc3291883 (patch)
treea2e2de3104324147e1d4f8ce9547f0731595f85d /include
parent4d05f6c24b690cc07a7f7ba65f11a01264309a11 (diff)
downloadupstream-cfab7bab638b9fc6ca217ea418e728abc3291883.tar.gz
upstream-cfab7bab638b9fc6ca217ea418e728abc3291883.tar.bz2
upstream-cfab7bab638b9fc6ca217ea418e728abc3291883.zip
generate md5 checksums of generated firware images. closes #4003
- checksums located in bin/md5sums - integrity can be verified using md5sum -c git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12889 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/image.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 6eef6ba9ca..6ac177d2e4 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -78,6 +78,13 @@ else
endef
endif
+define Image/Checksum
+ ( cd ${BIN_DIR} ; \
+ $(FIND) -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | xargs \
+ md5sum > md5sums \
+ )
+endef
+
ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
@@ -128,6 +135,7 @@ ifneq ($(IB),1)
$(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
+ $(call Image/Checksum)
else
install: compile install-targets
$(call Image/BuildKernel)
@@ -137,6 +145,7 @@ else
$(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
+ $(call Image/Checksum)
endif
ifneq ($(IB),1)