From 953b9a9c13997351ca8cb6624342997ba75852d4 Mon Sep 17 00:00:00 2001 From: Markham Date: Tue, 23 Feb 2016 10:10:12 +0100 Subject: [PATCH] add possibility to finalize something after the Image was built --- Makefile | 4 ++-- make/flashimage.mk | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bd472cc..d71e7d2 100755 --- a/Makefile +++ b/Makefile @@ -137,7 +137,7 @@ wittinobi-neutrino: @echo "" wittinobi-neutrino-flash: - $(MAKE) neutrino applications multimedia plugins skeleton rootfs flash-prepare flash flash-check + $(MAKE) neutrino applications multimedia plugins skeleton rootfs flash-prepare flash flash-check flash-finalize @echo "" @echo ' ============================================================================== ' @echo -e " \033[32mmake wittinobi-neutrino-flash done\033[0m" @@ -145,7 +145,7 @@ wittinobi-neutrino-flash: @echo "" wittinobi-all: - $(MAKE) neutrino applications multimedia plugins skeleton bootloader kernel drivers rootfs flash-prepare flash flash-full flash-check flash-full-check + $(MAKE) neutrino applications multimedia plugins skeleton bootloader kernel drivers rootfs flash-prepare flash flash-full flash-check flash-full-check flash-finalize @echo "" @echo ' ============================================================================== ' @echo -e " \033[32mmake wittinobi-all done\033[0m" diff --git a/make/flashimage.mk b/make/flashimage.mk index 6a03895..4794941 100755 --- a/make/flashimage.mk +++ b/make/flashimage.mk @@ -6,6 +6,15 @@ DATE := $(shell date +%Y-%m-%d) flash-customize: $(BASE_DIR)/customize/flash-customize.sh $(BASE_DIR)/customize/flash-customize.sh +flash-finalize: + @if [ -x $(BASE_DIR)/customize/version.sh ]; then \ + $(BASE_DIR)/customize/version.sh finalize; \ + echo " ============================================================================== "; \ + echo -e " \033[32mCUSTOM FINALIZE DONE :) Have fun\033[0m"; \ + echo " ============================================================================== "; \ + echo ""; \ + fi + ifeq ($(PLATFORM), $(filter $(PLATFORM), apollo kronos)) FLASHPARAMS = -n ERASEBLOCK = 0x20000 -- 2.39.5