From 7429778133f01e278422bf68154470f190cd5572 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 14 May 2024 14:20:41 +0200 Subject: compile dtb --- dts/makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dts/makefile (limited to 'dts/makefile') 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 $@ $< + -- cgit v1.2.3