dtc: Implement -d option to write out a dependency file

This will allow callers to rebuild .dtb files when any of the /include/d
.dtsi files are modified, not just the top-level .dts file.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
Stephen Warren 2012-01-10 17:27:52 -07:00 committed by Michal Marek
parent 5bb0571bfd
commit 136ec2049f
3 changed files with 25 additions and 1 deletions

View file

@ -30,6 +30,7 @@ struct srcfile_state {
struct srcfile_state *prev;
};
extern FILE *depfile; /* = NULL */
extern struct srcfile_state *current_srcfile; /* = NULL */
FILE *srcfile_relative_open(const char *fname, char **fullnamep);