mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-17 22:24:04 +02:00
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
This commit is contained in:
parent
08e4e4ee7c
commit
6471883892
@ -78,6 +78,13 @@ else
|
|||||||
endef
|
endef
|
||||||
endif
|
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)
|
ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
|
||||||
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
|
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
|
||||||
@ -128,6 +135,7 @@ ifneq ($(IB),1)
|
|||||||
$(call Image/mkfs/cpiogz)
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
|
$(call Image/Checksum)
|
||||||
else
|
else
|
||||||
install: compile install-targets
|
install: compile install-targets
|
||||||
$(call Image/BuildKernel)
|
$(call Image/BuildKernel)
|
||||||
@ -137,6 +145,7 @@ else
|
|||||||
$(call Image/mkfs/cpiogz)
|
$(call Image/mkfs/cpiogz)
|
||||||
$(call Image/mkfs/ext2)
|
$(call Image/mkfs/ext2)
|
||||||
$(call Image/mkfs/iso)
|
$(call Image/mkfs/iso)
|
||||||
|
$(call Image/Checksum)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(IB),1)
|
ifneq ($(IB),1)
|
||||||
|
Loading…
Reference in New Issue
Block a user