kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc
authorStephen Warren <swarren@nvidia.com>
Wed, 6 Mar 2013 17:28:02 +0000 (10:28 -0700)
committerStephen Warren <swarren@nvidia.com>
Fri, 5 Apr 2013 18:23:04 +0000 (12:23 -0600)
commit85f02be8e5fd48a9bf8c719a4f12b4209b1e55b5
tree7dad81db6892ab67dbd4178ece3a033a427d76ab
parent2ab8a99661f4ce052bbad064237c441371df8751
kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc

Prior to this change, when compiling *.dts to *.dtb, the dependency
output from dtc would be used, and when compiling *.dtsp to *.dtb, the
dependency output from gcc -E alone would be used, despite dtc also
being invoked (on a temporary file that was guaranteed to have no
dependencies).

With this change, when compiling *.dtsp to *.dtb, the dependency files
from both gcc -E and dtc are used. This will allow cmd_dtc_cpp to
replace cmd_dtc in a future change. In turn, that will allow the C pre-
processor to be run transparently on *.dts, without the need to a
separate rule or file extension to trigger it.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
scripts/Makefile.lib