aboutsummaryrefslogtreecommitdiff
path: root/dts/makefile
blob: 5f0fe9ca921121f08660beed6da0baa25d6336ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.dtb
# all: am335x-boneblack-uboot-univ.dtb

# odering is important:
%.dts.pre: %.dts
	$(CPP) $(CPPFLAGS) $< $@
%.dts.pre: src/%.dts
	$(CPP) $(CPPFLAGS) $< $@

%.dtb: %.dts.pre
	$(DTC) $(DTCFLAGS) -o $@ $<
# %.dtb: %.dts
# 	$(DTC) $(DTCFLAGS) -o $@ $<