[RFC PATCH 0/2] dtc: enable use of pre-processor

From: Stephen Warren
Date: Fri Sep 28 2012 - 15:32:15 EST


From: Stephen Warren <swarren@xxxxxxxxxx>

This series adds some build rules to run cpp on *.dtsp prior to
invoking dtc, and converts Tegra to the new rule as an example. What do
people think?

I assume that you've applied the dtc patches I sent yesterday. They
aren't in this series. See:

https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-September/020182.html
https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-September/020183.html
https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-September/020181.html
https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-September/020387.html

Note: those patches are against upstream dtc. If you wish to test this
series, apply the dtc patches to upstream dtc, build it, and copy the
resultant dtc binary over the top of scripts/dtc/dtc.

I'll post a patch to update the in-kernel dtc to the upstream dtc as
soon as one final dtc patch has been applied, and this series will then
depend on that patch.

Stephen Warren (2):
kbuild: centralize .dts->.dtb rule
kbuild: introduce cmd_dtc_cpp

arch/arm/boot/Makefile | 4 ----
arch/arm/boot/dts/skeleton.dtsip | 13 +++++++++++++
arch/c6x/boot/Makefile | 3 ---
arch/openrisc/boot/Makefile | 3 ---
arch/powerpc/boot/Makefile | 4 ----
scripts/Makefile.lib | 9 +++++++++
6 files changed, 22 insertions(+), 14 deletions(-)
create mode 100644 arch/arm/boot/dts/skeleton.dtsip

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/