]> git.sur5r.net Git - u-boot/commitdiff
Tegra: fdt: Change /include/ to #include for C preprocessor
authorTom Warren <twarren.nvidia@gmail.com>
Thu, 21 Feb 2013 12:31:27 +0000 (12:31 +0000)
committerTom Warren <twarren@nvidia.com>
Thu, 14 Mar 2013 18:06:42 +0000 (11:06 -0700)
dts Makefile has the arch & board include paths added to DTS_CPPFLAGS.
This allows the use of '#include "xyz"' in the dts/dtsi file which
helps the C preprocessor find common dtsi include files.

Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
16 files changed:
arch/arm/dts/tegra114.dtsi
arch/arm/dts/tegra20.dtsi
arch/arm/dts/tegra30.dtsi
board/avionic-design/dts/tegra20-medcom-wide.dts
board/avionic-design/dts/tegra20-plutux.dts
board/avionic-design/dts/tegra20-tec.dts
board/compal/dts/tegra20-paz00.dts
board/compulab/dts/tegra20-trimslice.dts
board/nvidia/dts/tegra114-dalmore.dts
board/nvidia/dts/tegra20-harmony.dts
board/nvidia/dts/tegra20-seaboard.dts
board/nvidia/dts/tegra20-ventana.dts
board/nvidia/dts/tegra20-whistler.dts
board/nvidia/dts/tegra30-cardhu.dts
board/toradex/dts/tegra20-colibri_t20_iris.dts
dts/Makefile

index 0655b4d52399fdf0bb16cd62b9eb254cec428b75..f0f82de012678fa95888b7ec5b74fbd486f291ce 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "skeleton.dtsi"
+#include "skeleton.dtsi"
 
 / {
        compatible = "nvidia,tegra114";
index 9a8968522e47702f3736b1f38f65dbf021943161..d163ff8b27a3b4ef4cdaeb55ebb18e1cb679af92 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "skeleton.dtsi"
+#include "skeleton.dtsi"
 
 / {
        compatible = "nvidia,tegra20";
index 7b8126f7ccd9e5eab577951a0338b37889d3ee9b..561c617f4dc51ebfdb7de1b0b6ca632d4bcca8c6 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "skeleton.dtsi"
+#include "skeleton.dtsi"
 
 / {
        compatible = "nvidia,tegra30";
index e46afbeab38e18491a026807a824c5a1b315e024..4afe5c26ef916056ac9d5a09b68dfff3ad151bbc 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "Avionic Design Medcom-Wide";
index 3e6cce013e4910bf46c7b8a8e6e52c9360369e6f..ef83f29f2b03956f68cb05ca09f57ab9b815ca74 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "Avionic Design Plutux";
index bf3ff1d00974f101522d2959e6fbcd596a1d27f6..cf2fadc52fa9d22a5edf6816632970732e9b8fe7 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "Avionic Design Tamonten Evaluation Carrier";
index 31b064d41871332ae589222281c250c3bad7f130..e521c8078401ea6a1e991c100ce44243bbd9b076 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
         model = "Toshiba AC100 / Dynabook AZ";
index 7aeed670db0594478a336049b04c4e418253f754..eefd1993de1d646e02cf2e0a8083d2314c86f956 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "Compulab TrimSlice board";
index ed3c2fde286c89b708992a4fc6837c37e73a7fc5..27a4a072062b54f6891303b3021a7adefec56441 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include ARCH_CPU_DTS
 
 / {
        model = "NVIDIA Dalmore";
index aeda3a1ffbbd9cc92e13b38b979fa5031a17cd20..9fc7c0db90298fe7a9ff35325a8b2028536a36ae 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "NVIDIA Tegra20 Harmony evaluation board";
index 527a29689da21f660027387d0f2e910c6ab69a9c..a73db36f1ef23afdc3d89c528e7e905188e6d299 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 /memreserve/ 0x1c000000 0x04000000;
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "NVIDIA Seaboard";
index 3e5e39da632201d34c9e03c06b37e10966c3bb48..ffc71b277872a1f898858e251bb5bfd1f8bcbd3a 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "NVIDIA Tegra20 Ventana evaluation board";
index 4579557d6d140e95648a866418aefbd1f35d5116..1f09e5e7ddae23ef27bc6a26ac0fc3b9739a257e 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "NVIDIA Tegra20 Whistler evaluation board";
index f9f80c5218c6349c1b3f004801a5c937d5108f5a..f7ea07af84fedcb529f49bcf0c1e124597d374d0 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 /memreserve/ 0x1c000000 0x04000000;
-/include/ ARCH_CPU_DTS
+#include ARCH_CPU_DTS
 
 / {
        model = "NVIDIA Cardhu";
index c29b43a0efd8d93e1228c9e5f2fdf946d4dace77..53c0cdc9f21f1095ea48eefc9e6408e83005970f 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ ARCH_CPU_DTS
+#include "tegra20.dtsi"
 
 / {
        model = "Toradex Colibri T20";
index 922c78c1ca497c18916456359950403ac34774b3..6f36153634b5cb082975d0912d6bbd1256a0f6d8 100644 (file)
@@ -38,7 +38,8 @@ Please define CONFIG_ARCH_DEVICE_TREE))
 # We preprocess the device tree file provide a useful define
 DTS_CPPFLAGS := -x assembler-with-cpp \
                -DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \
-               -DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\"
+               -DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\" \
+               -I$(SRCTREE)/board/$(VENDOR)/dts -I$(SRCTREE)/arch/$(ARCH)/dts
 
 all:   $(obj).depend $(LIB)