mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user