Преглед изворни кода

add customisation point before creating image

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
BALATON Zoltan пре 9 година
родитељ
комит
141a95c1d9
2 измењених фајлова са 4 додато и 0 уклоњено
  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