aboutsummaryrefslogtreecommitdiff
path: root/dts/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-14 14:20:41 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-14 14:20:41 +0200
commit7429778133f01e278422bf68154470f190cd5572 (patch)
tree34a3a641e55591404f46b6b484da7ab2a5573b59 /dts/makefile
parentf4b909d04e8ae14173f7ccb47ddc5e62054e93b2 (diff)
compile dtb
Diffstat (limited to 'dts/makefile')
-rw-r--r--dts/makefile17
1 files changed, 17 insertions, 0 deletions
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 $@ $<
+