diff options
author | Nikolaus Schulz <nikolaus.schulz@avionic-design.de> | 2017-03-31 17:01:53 +0200 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2017-04-05 09:22:09 -0600 |
commit | 2412a4920135f65864f3c3cf28d32149a33e84c6 (patch) | |
tree | f7f6993f635397697a26f1c425073a7c854da8e7 | |
parent | 3ec3057b8c19c4a3a53f12cdcb71190949f15838 (diff) | |
download | cbootimage-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.mk | 3 |
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) $< $@ |