Skip to content

Commit

Permalink
Tegra: fdt: Change /include/ to #include for C preprocessor
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Stephen Warren <[email protected]>
  • Loading branch information
Tom Warren authored and tomcwarren committed Mar 14, 2013
1 parent a7f8b5e commit 6c5be64
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion arch/arm/dts/tegra114.dtsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/include/ "skeleton.dtsi"
#include "skeleton.dtsi"

/ {
compatible = "nvidia,tegra114";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/dts/tegra20.dtsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/include/ "skeleton.dtsi"
#include "skeleton.dtsi"

/ {
compatible = "nvidia,tegra20";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/dts/tegra30.dtsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/include/ "skeleton.dtsi"
#include "skeleton.dtsi"

/ {
compatible = "nvidia,tegra30";
Expand Down
2 changes: 1 addition & 1 deletion board/avionic-design/dts/tegra20-medcom-wide.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Avionic Design Medcom-Wide";
Expand Down
2 changes: 1 addition & 1 deletion board/avionic-design/dts/tegra20-plutux.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Avionic Design Plutux";
Expand Down
2 changes: 1 addition & 1 deletion board/avionic-design/dts/tegra20-tec.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Avionic Design Tamonten Evaluation Carrier";
Expand Down
2 changes: 1 addition & 1 deletion board/compal/dts/tegra20-paz00.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Toshiba AC100 / Dynabook AZ";
Expand Down
2 changes: 1 addition & 1 deletion board/compulab/dts/tegra20-trimslice.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Compulab TrimSlice board";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra114-dalmore.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include ARCH_CPU_DTS

/ {
model = "NVIDIA Dalmore";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra20-harmony.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "NVIDIA Tegra20 Harmony evaluation board";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra20-seaboard.dts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/dts-v1/;

/memreserve/ 0x1c000000 0x04000000;
/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "NVIDIA Seaboard";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra20-ventana.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "NVIDIA Tegra20 Ventana evaluation board";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra20-whistler.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "NVIDIA Tegra20 Whistler evaluation board";
Expand Down
2 changes: 1 addition & 1 deletion board/nvidia/dts/tegra30-cardhu.dts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/dts-v1/;

/memreserve/ 0x1c000000 0x04000000;
/include/ ARCH_CPU_DTS
#include ARCH_CPU_DTS

/ {
model = "NVIDIA Cardhu";
Expand Down
2 changes: 1 addition & 1 deletion board/toradex/dts/tegra20-colibri_t20_iris.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ ARCH_CPU_DTS
#include "tegra20.dtsi"

/ {
model = "Toradex Colibri T20";
Expand Down
3 changes: 2 additions & 1 deletion dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6c5be64

Please sign in to comment.