From 141a95c1d9d746d9b6a246d8db69ebf438f1e8c6 Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Fri, 19 Jun 2015 14:27:01 +0200 Subject: add customisation point before creating image Signed-off-by: BALATON Zoltan --- scripts/preimage/.empty | 0 target/Makefile | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 scripts/preimage/.empty diff --git a/scripts/preimage/.empty b/scripts/preimage/.empty new file mode 100644 index 000000000..e69de29bb diff --git a/target/Makefile b/target/Makefile index 4f63a3fb1..a0b99fc0e 100644 --- a/target/Makefile +++ b/target/Makefile @@ -135,6 +135,10 @@ clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean %-imageprepare: $(TRACE) target/$(patsubst %-imageprepare,%,$@)-imageprepare + @for x in $$(ls $(ADK_TOPDIR)/scripts/preimage/*.sh 2>/dev/null); do \ + [[ -x "$$x" ]] && $$x; \ + break; \ + done $(MAKE) -C $(patsubst %-imageprepare,%,$@) imageprepare %-compile: %-prepare -- cgit v1.2.3