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 creating the dependencies makefile. 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@xxxxxxxxxxxxxxxxx> --- build/post.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) $< $@ -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html