diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-03-06 21:27:45 +0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-04-05 22:22:58 +0400 |
commit | 2ab8a99661f4ce052bbad064237c441371df8751 (patch) | |
tree | 2d64715534105bc803ad38971195a6e1f51a2951 /lib/memory-notifier-error-inject.c | |
parent | c58299aa87544a590c62bda0bf52b69fa56cb8d5 (diff) | |
download | linux-2ab8a99661f4ce052bbad064237c441371df8751.tar.xz |
kbuild: fixdep: support concatenated dep files
The current use-case for fixdep is: a source file is run through a single
processing step, which creates a single dependency file as a side-effect,
which fixdep transforms into the file used by the kernel build process.
In order to transparently run the C pre-processor on device-tree files,
we wish to run both gcc -E and dtc on a source file in a single rule.
This generates two dependency files, which must be transformed together
into the file used by the kernel build process. This change modifies
fixdep so it can process the concatenation of multiple separate input
dependency files, and produce a correct unified output.
The code changes have the slight benefit of transforming the loop in
parse_dep_file() into more of a lexer/tokenizer, with the loop body being
more of a parser. Previously, some of this logic was mixed together
before the loop. I also added some comments, which I hope are useful.
Benchmarking shows that on a cross-compiled ARM tegra_defconfig build,
there is less than 0.5 seconds speed decrease with this change, on top
of a build time of ~2m24s. This is probably within the noise.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions