mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
Tegra: fdt: Change /include/ to #include for C preprocessor
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>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/include/ "skeleton.dtsi"
|
#include "skeleton.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "nvidia,tegra114";
|
compatible = "nvidia,tegra114";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/include/ "skeleton.dtsi"
|
#include "skeleton.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "nvidia,tegra20";
|
compatible = "nvidia,tegra20";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/include/ "skeleton.dtsi"
|
#include "skeleton.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "nvidia,tegra30";
|
compatible = "nvidia,tegra30";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Avionic Design Medcom-Wide";
|
model = "Avionic Design Medcom-Wide";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Avionic Design Plutux";
|
model = "Avionic Design Plutux";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Avionic Design Tamonten Evaluation Carrier";
|
model = "Avionic Design Tamonten Evaluation Carrier";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Toshiba AC100 / Dynabook AZ";
|
model = "Toshiba AC100 / Dynabook AZ";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Compulab TrimSlice board";
|
model = "Compulab TrimSlice board";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include ARCH_CPU_DTS
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Dalmore";
|
model = "NVIDIA Dalmore";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Tegra20 Harmony evaluation board";
|
model = "NVIDIA Tegra20 Harmony evaluation board";
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/memreserve/ 0x1c000000 0x04000000;
|
/memreserve/ 0x1c000000 0x04000000;
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Seaboard";
|
model = "NVIDIA Seaboard";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Tegra20 Ventana evaluation board";
|
model = "NVIDIA Tegra20 Ventana evaluation board";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Tegra20 Whistler evaluation board";
|
model = "NVIDIA Tegra20 Whistler evaluation board";
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/memreserve/ 0x1c000000 0x04000000;
|
/memreserve/ 0x1c000000 0x04000000;
|
||||||
/include/ ARCH_CPU_DTS
|
#include ARCH_CPU_DTS
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NVIDIA Cardhu";
|
model = "NVIDIA Cardhu";
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/include/ ARCH_CPU_DTS
|
#include "tegra20.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Toradex Colibri T20";
|
model = "Toradex Colibri T20";
|
||||||
|
@@ -38,7 +38,8 @@ Please define CONFIG_ARCH_DEVICE_TREE))
|
|||||||
# We preprocess the device tree file provide a useful define
|
# We preprocess the device tree file provide a useful define
|
||||||
DTS_CPPFLAGS := -x assembler-with-cpp \
|
DTS_CPPFLAGS := -x assembler-with-cpp \
|
||||||
-DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \
|
-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)
|
all: $(obj).depend $(LIB)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user