diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-01-11 04:27:52 +0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-01-15 02:47:37 +0400 |
commit | 136ec2049fea65aed0446d04ab7cfff2ae3070f1 (patch) | |
tree | 03a8b0bc6775757b9e83cb9029a913a6e64cfdc9 /scripts/dtc/srcpos.c | |
parent | 5bb0571bfddcdcd3fbf42a58fcce4d0b743fe62f (diff) | |
download | linux-136ec2049fea65aed0446d04ab7cfff2ae3070f1.tar.xz |
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>
Diffstat (limited to 'scripts/dtc/srcpos.c')
-rw-r--r-- | scripts/dtc/srcpos.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos.c index 2dbc874288ca..36a38e9f1a2c 100644 --- a/scripts/dtc/srcpos.c +++ b/scripts/dtc/srcpos.c @@ -40,6 +40,7 @@ static char *dirname(const char *path) return NULL; } +FILE *depfile; /* = NULL */ struct srcfile_state *current_srcfile; /* = NULL */ /* Detect infinite include recursion. */ @@ -67,6 +68,9 @@ FILE *srcfile_relative_open(const char *fname, char **fullnamep) strerror(errno)); } + if (depfile) + fprintf(depfile, " %s", fullname); + if (fullnamep) *fullnamep = fullname; else |