X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f4aa8231ad916c197d02c29c4ecf8c94742f2926..77d3905c01e0ed53c4edc62ba809b22efcfcdfb9:/include/image.mk diff --git a/include/image.mk b/include/image.mk index efbc76db3..6ac177d2e 100644 --- a/include/image.mk +++ b/include/image.mk @@ -10,6 +10,7 @@ include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/host.mk +.NOTPARALLEL: override MAKEFLAGS= override MAKE:=$(SUBMAKE) KDIR=$(KERNEL_BUILD_DIR) @@ -77,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))) @@ -127,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) @@ -136,6 +145,7 @@ else $(call Image/mkfs/cpiogz) $(call Image/mkfs/ext2) $(call Image/mkfs/iso) + $(call Image/Checksum) endif ifneq ($(IB),1)