From 09cf36b9d9766ff8fe70ab3d92a3c4037e1f3e9c Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de> Date: Tue, 1 Sep 2015 17:54:04 +0200 Subject: [PATCH] introduce image_deploy and image_deploy_vmdk as "fronted" for image_assemble. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc196c5..b6128d1 100644 --- a/Makefile +++ b/Makefile @@ -470,6 +470,9 @@ $(IMAGE_FILE): $(IMAGE_PART_FILE) $(GRUB_ASSEMBLE_DIR)/mbr.img @echo @echo "Image is ready: $@" +image_deploy: $(IMAGE_FILE) $(IMAGE_FILE).sha1sum +image_deploy_vmdk: $(IMAGE_FILE:.img=.vmdk) $(IMAGE_FILE:.img=.vmdk).sha1sum + image_clean: $(RM) "$(IMAGE_PART_FILE)" $(RM) -r "$(GRUB_ASSEMBLE_DIR)" @@ -593,6 +596,9 @@ config_clean: %.vmdk : %.img vboxmanage convertfromraw --format vmdk "$<" "$@" +%.sha1sum : % + sha1sum "$<" > "$@" + help: @echo "Defaul Architecture: $(ARCH) ($(call altarch,$(ARCH)))" @echo "Workspace: $(WORKSPACE)" @@ -606,8 +612,9 @@ help: @echo "# make repo #build offline repo" @echo "# make image_umount #umount the image partition" @echo "\$$ #copy mbr+partition to final destination" - @echo "\$$ make IMAGE_FILE=/somewhere/myfinalimage.img image_assemble" - @echo "\$$ make /somewhere/myfinalimage.vmdk #(optionally) create a vmdk version" + @echo "\$$ make IMAGE_FILE=/somewhere/myfinalimage.img image_deploy" + @echo "\$$ #(optionally) create a vmdk version. Note that IMAGE_FILE is still the raw .img file here!" + @echo "\$$ make IMAGE_FILE=/somewhere/myfinalimage.img image_deploy_vmdk" @echo @echo "There is a list of all phony targets available under \"make listall\"" @echo "A list of all config options may be found in:" -- GitLab