add version to generated images

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2020-11-22 10:36:22 +01:00
parent 009987da87
commit 5021f20326
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ image: fun
@mkdir -p root tmp
@./Recovery/output/host/bin/genimage --loglevel 0 --inputpath .
@rm -rf root tmp
@mv images/sdcard.img images/FunKey-sdcard-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).img
image-prod: fun
@$(call MESSAGE,"Creating disk image")
@ -88,6 +88,7 @@ image-prod: fun
@mkdir -p root tmp
@./Recovery/output/host/bin/genimage --loglevel 0 --config "genimage-prod.cfg" --inputpath .
@rm -rf root tmp
@mv images/sdcard-prod.img images/FunKey-sdcard-prod-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).img
update: fun
@$(call MESSAGE,"Creating update file")