Initial DTB rules.

This commit is contained in:
Jeffrey Townsend
2017-02-15 16:01:18 +00:00
parent 61f9268995
commit 69a1d8aefb

22
make/dtbs.mk Normal file
View File

@@ -0,0 +1,22 @@
############################################################
#
# Common DTB build rules.
#
############################################################
include $(ONL)/make/config.mk
ifndef DTS_LIST
DTS_LIST := $(wildcard *.dts)
endif
ifndef DTB_LIST
DTB_LIST := $(patsubst %.dts,%.dtb,$(DTS_LIST))
endif
%.dtb: %.dts
$(ONL)/tools/dtc -I dts -O dtb -o $@ $<
.DEFAULT_GOAL := $(DTB_LIST)
clean:
rm -rf *.dtb