Makefile: dtb makefile update [1/1]

PD#SWPL-9776

Problem:
let dtb make comptabile with below ways:
make ARCH=arm meson-g12a-u200.dtb
make ARCH=arm amlogic/meson-g12a-u200.dtb

Solution:
modify makefile

Verify:
w400

Change-Id: Ic2bb196f67c632cdc9acae61645fe3dd45c7bb1a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
This commit is contained in:
Hanjie Lin
2019-07-01 14:39:04 +08:00
committed by Jianxin Pan
parent 6eebad0acf
commit feea4603d7
2 changed files with 6 additions and 0 deletions

View File

@@ -339,6 +339,9 @@ $(BOOT_TARGETS): vmlinux
$(INSTALL_TARGETS):
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
amlogic/%.dtb: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
%.dtb: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic MACHINE=$(MACHINE) $(boot)/dts/amlogic/$@
ifeq ($(CONFIG_AMLOGIC_MODIFY),y)

View File

@@ -144,6 +144,9 @@ Image.%: Image
zinstall install:
$(Q)$(MAKE) $(build)=$(boot) $@
amlogic/%.dtb: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
%.dtb: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts/amlogic $(boot)/dts/amlogic/$@
ifeq ($(CONFIG_AMLOGIC_MODIFY),y)