From 892990aa9b75b92bb7e6703a14d5aa45c43c5f34 Mon Sep 17 00:00:00 2001
From: dir
Date: Tue, 2 Jan 2018 18:11:57 +0100
Subject: Add post build action
@upstream
---
target/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'target/Makefile')
diff --git a/target/Makefile b/target/Makefile
index 846620d6c..128d272de 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -228,6 +228,12 @@ endif
$(MAKE) -C $(patsubst %-targethelp,%,$@) targethelp
%-imageinstall: %-imageprepare
+ifdef ADK_POST_BUILD_ACTION
+ifneq ($(ADK_POST_BUILD_ACTION),"")
+ @printf "running post build action '$(ADK_POST_BUILD_ACTION)'\n"
+ $(ADK_TOPDIR)/$(ADK_POST_BUILD_ACTION) $(ADK_TOPDIR)
+endif
+endif
$(MAKE) -C $(patsubst %-imageinstall,%,$@) imageinstall
@for x in $$(ls $(ADK_TOPDIR)/scripts/postimage/*.sh 2>/dev/null); do \
[[ -x "$$x" ]] && $$x; \
--
cgit v1.2.3