aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dtc/srcpos.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-01-19 15:56:50 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2012-01-19 15:56:50 -0500
commit282f445a779ed76fca9884fe377bf56a3088b208 (patch)
treed9abcf526baee0100672851e0a8894c19e762a39 /scripts/dtc/srcpos.c
parent68f30fbee19cc67849b9fa8e153ede70758afe81 (diff)
parent90a4c0f51e8e44111a926be6f4c87af3938a79c3 (diff)
Merge remote-tracking branch 'linus/master' into x86/urgent
Diffstat (limited to 'scripts/dtc/srcpos.c')
-rw-r--r--scripts/dtc/srcpos.c4
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)
40 return NULL; 40 return NULL;
41} 41}
42 42
43FILE *depfile; /* = NULL */
43struct srcfile_state *current_srcfile; /* = NULL */ 44struct srcfile_state *current_srcfile; /* = NULL */
44 45
45/* Detect infinite include recursion. */ 46/* Detect infinite include recursion. */
@@ -67,6 +68,9 @@ FILE *srcfile_relative_open(const char *fname, char **fullnamep)
67 strerror(errno)); 68 strerror(errno));
68 } 69 }
69 70
71 if (depfile)
72 fprintf(depfile, " %s", fullname);
73
70 if (fullnamep) 74 if (fullnamep)
71 *fullnamep = fullname; 75 *fullnamep = fullname;
72 else 76 else