diff options
author | dir <dir@ableton.com> | 2018-01-02 18:11:57 +0100 |
---|---|---|
committer | dir <dir@ableton.com> | 2018-08-13 17:54:03 +0200 |
commit | 892990aa9b75b92bb7e6703a14d5aa45c43c5f34 (patch) | |
tree | 24db611843c9b5152d4f2f302f9b1c9bef6e626e /target | |
parent | e9a80817647b5ac556519822251abd0346b6d468 (diff) |
Add post build action
@upstream
Diffstat (limited to 'target')
-rw-r--r-- | target/Makefile | 6 | ||||
-rw-r--r-- | target/config/Config.in.adk | 4 |
2 files changed, 10 insertions, 0 deletions
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; \ diff --git a/target/config/Config.in.adk b/target/config/Config.in.adk index b414b70fd..060ee78e4 100644 --- a/target/config/Config.in.adk +++ b/target/config/Config.in.adk @@ -112,4 +112,8 @@ config ADK_TARGET_PORT help Port to use for SSH when running make check. +config ADK_POST_BUILD_ACTION + string "Path to script run post build. Must be relative to ADK_TOPDIR." + default "" + endmenu |