dts: Add application overlay support.
This patch adds DTS application overlay support. Applications requiring specific device features can specify these using board dtsi files located in the application directory. These overlay files are board specific. Issue: ZEP-1745 Change-Id: I1c5f1a8a198fe543b6d52ee8c1fb31a2038a7956 Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
parent
4e2eaec268
commit
2fb6dce2a1
1 changed files with 6 additions and 2 deletions
|
@ -159,6 +159,7 @@ dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
|
|||
-I$(srctree)/dts \
|
||||
-I$(srctree)/dts/$(ARCH) \
|
||||
-I$(srctree)/drivers/of/testcase-data \
|
||||
-I$(PROJECT_BASE) \
|
||||
-undef -D__DTS__
|
||||
|
||||
cxx_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
|
||||
|
@ -281,9 +282,12 @@ cmd_dt_S_dtb= \
|
|||
$(obj)/%.dtb.S: $(obj)/%.dtb
|
||||
$(call cmd,dt_S_dtb)
|
||||
|
||||
|
||||
quiet_cmd_dtc = DTC $@
|
||||
cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
||||
cmd_dtc = echo '\#include "$(notdir $<)"' > dts/$(ARCH)/$(notdir $<)_pre_compiled ; \
|
||||
if test -e $(PROJECT_BASE)/$(BOARD_NAME).overlay; then \
|
||||
echo '\#include "$(BOARD_NAME).overlay"' >> dts/$(ARCH)/$(notdir $<)_pre_compiled ; \
|
||||
fi ; \
|
||||
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) dts/$(ARCH)/$(notdir $<)_pre_compiled ; \
|
||||
$(DTC) -O dts -o $@ -b 0 \
|
||||
-i $(dir $<) $(DTC_FLAGS) \
|
||||
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue