mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-08 00:01:29 +00:00
Initial DTB rules.
This commit is contained in:
22
make/dtbs.mk
Normal file
22
make/dtbs.mk
Normal 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
|
||||
Reference in New Issue
Block a user