Browse Source

add customisation point before creating image

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
BALATON Zoltan 8 years ago
parent
commit
141a95c1d9
2 changed files with 4 additions and 0 deletions
  1. 0 0
      scripts/preimage/.empty
  2. 4 0
      target/Makefile

+ 0 - 0
scripts/preimage/.empty


+ 4 - 0
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