fdto: peripheral driver support dtbo [1/4]

PD#SWPL-2193

Problem:
We cannot compile dtbo file in a way like
make ARCH=arm foo.dtbo

Solution:
Add dtbo target and reuse the dtb rules

Verify:
Locally verifed

Change-Id: I34b88e61b409defe553cf5ed1077c160b9a6f350
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
This commit is contained in:
jiamin ma
2018-11-22 09:34:44 +08:00
committed by Dongjin Kim
parent 964bd94bfa
commit 9fa246b11b
3 changed files with 14 additions and 1 deletions

View File

@@ -337,6 +337,10 @@ $(INSTALL_TARGETS):
%.dtb: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic MACHINE=$(MACHINE) $(boot)/dts/amlogic/$@
ifeq ($(CONFIG_AMLOGIC_MODIFY),y)
%.dtbo: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic MACHINE=$(MACHINE) $(boot)/dts/amlogic/$@
endif
PHONY += dtbs dtbs_install

View File

@@ -145,7 +145,11 @@ zinstall install:
$(Q)$(MAKE) $(build)=$(boot) $@
%.dtb: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic $(boot)/dts/amlogic/$@
ifeq ($(CONFIG_AMLOGIC_MODIFY),y)
%.dtbo: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic $(boot)/dts/amlogic/$@
endif
PHONY += dtbs dtbs_install

View File

@@ -325,6 +325,11 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
$(obj)/%.dtb: $(src)/%.dts FORCE
$(call if_changed_dep,dtc)
ifeq ($(CONFIG_AMLOGIC_MODIFY),y)
$(obj)/%.dtbo: $(src)/%.dts FORCE
$(call if_changed_dep,dtc)
endif
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
# cat