On 03/31/2017 09:01 AM, Nikolaus Schulz wrote:
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.
I don't think this change is correct, or at least necessary.
The concept here is that:
- If an output file does not exist at all, it will be built for the
first time, and a dependency file will be generated for the next time.
- If an output file does exist, the related dependency file is also
expected to exist, and specify the dependencies, so that if they change,
a rebuild will occur.
In particular, the dependency file is/should-no-be necessary in the case
where an output file is to be generated for the first time.
If a known dependency specification is missing, we should specify it
directly in the makefile itself. The generated dependency files are
intended to represent unknown/unknowable dependencies.
Is it possible to fix this problem that way instead?
--
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