aboutsummaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
Diffstat (limited to 'dts')
-rw-r--r--dts/.gitignore1
l---------dts/include1
-rw-r--r--dts/makefile17
l---------dts/src1
4 files changed, 20 insertions, 0 deletions
diff --git a/dts/.gitignore b/dts/.gitignore
new file mode 100644
index 0000000..b60ed20
--- /dev/null
+++ b/dts/.gitignore
@@ -0,0 +1 @@
+*.dtb
diff --git a/dts/include b/dts/include
new file mode 120000
index 0000000..3937464
--- /dev/null
+++ b/dts/include
@@ -0,0 +1 @@
+../linux/include \ No newline at end of file
diff --git a/dts/makefile b/dts/makefile
new file mode 100644
index 0000000..5ccaa69
--- /dev/null
+++ b/dts/makefile
@@ -0,0 +1,17 @@
+DTC := dtc
+DTCFLAGS += -I dts
+DTCFLAGS += -O dtb
+CPP := cpp
+CPPFLAGS += -nostdinc
+CPPFLAGS += -I include
+CPPFLAGS += -undef
+CPPFLAGS += -x assembler-with-cpp
+
+all: am335x-boneblack-uboot-univ.dtb
+
+%.dts.pre: %.dts
+ $(CPP) $(CPPFLAGS) $< $@
+
+%.dtb: src/%.dts.pre
+ $(DTC) $(DTCFLAGS) -o $@ $<
+
diff --git a/dts/src b/dts/src
new file mode 120000
index 0000000..7e81e30
--- /dev/null
+++ b/dts/src
@@ -0,0 +1 @@
+../linux/arch/arm/boot/dts \ No newline at end of file