summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Schulz <nikolaus.schulz@avionic-design.de>2017-03-31 17:01:53 +0200
committerStephen Warren <swarren@nvidia.com>2017-04-05 09:22:09 -0600
commit2412a4920135f65864f3c3cf28d32149a33e84c6 (patch)
treef7f6993f635397697a26f1c425073a7c854da8e7
parent3ec3057b8c19c4a3a53f12cdcb71190949f15838 (diff)
downloadcbootimage-configs-2412a4920135f65864f3c3cf28d32149a33e84c6.tar.gz
post.mk: Create dependency makefile by makefile rule
Creating the eMMC image requires creating the BCT file and the bootloader image first. These dependencies are written to a makefile snippet that is created by the gen-image-deps.sh script. But that script is only invoked when the rule that creates the eMMC image is run, which is too late for make to take account of the freshly generated dependencies in the current invocation. Add a rule to post.mk that tells make how to create the dependencies makefile; with that in place, make automatically makes the dependency makefile before executing any other rules. Signed-off-by: Nikolaus Schulz <nikolaus.schulz@avionic-design.de> (swarren, minor commit description rewording) Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--build/post.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/post.mk b/build/post.mk
index 979d8ce..a647c81 100644
--- a/build/post.mk
+++ b/build/post.mk
@@ -21,11 +21,12 @@ bcts: $(bcts)
images: $(images)
image_deps := $(addprefix .,$(addsuffix .d,$(images)))
+$(image_deps): .%.d : %.cfg
+ ../../../build/gen-image-deps.sh $< $(@:.%.d=%) $@
-include $(image_deps)
%.bct: %.bct.cfg
cbootimage -gbct -$(soc) $< $@
%.img: %.img.cfg
- ../../../build/gen-image-deps.sh $< $@ .$@.d
cbootimage -$(soc) $< $@