Change the way we create checksums

This commit is contained in:
Albert Hopkins 2015-09-14 11:09:15 +00:00
parent 91b5e962ec
commit 2f9b52e3c5
1 changed files with 3 additions and 7 deletions

View File

@ -11,7 +11,7 @@ QCOW_IMAGE = $(IMAGES)/$(APPLIANCE).qcow
VMDK_IMAGE = $(IMAGES)/$(APPLIANCE).vmdk VMDK_IMAGE = $(IMAGES)/$(APPLIANCE).vmdk
XVA_IMAGE = $(IMAGES)/$(APPLIANCE).xva XVA_IMAGE = $(IMAGES)/$(APPLIANCE).xva
LST_FILE = $(IMAGES)/$(APPLIANCE)-packages.lst LST_FILE = $(IMAGES)/$(APPLIANCE)-packages.lst
CHECKSUMS = $(IMAGES)/$(APPLIANCE)-sha256sums.txt CHECKSUMS = $(IMAGES)/SHA256SUMS
STAGE3 = $(CHROOT)/tmp/stage3 STAGE3 = $(CHROOT)/tmp/stage3
COMPILE_OPTIONS = $(CHROOT)/tmp/compile_options COMPILE_OPTIONS = $(CHROOT)/tmp/compile_options
SOFTWARE = $(CHROOT)/tmp/software SOFTWARE = $(CHROOT)/tmp/software
@ -346,12 +346,8 @@ appliance-list:
checksums: checksums:
$(RM) $(CHECKSUMS).tmp $(RM) $(CHECKSUMS)
-cd $(IMAGES) && sha256sum `basename $(STAGE4_TARBALL)` \ cd $(IMAGES) && sha256sum --binary * > $(CHECKSUMS).tmp
`basename $(RAW_IMAGE)` \
`basename $(QCOW_IMAGE)` \
`basename $(VMDK_IMAGE)` \
`basename $(XVA_IMAGE)` > $(CHECKSUMS).tmp
mv $(CHECKSUMS).tmp $(CHECKSUMS) mv $(CHECKSUMS).tmp $(CHECKSUMS)
help: help: