diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index e888b9d30441..91835ed12a92 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -148,12 +148,8 @@ zinstall install: $(Q)$(MAKE) $(build)=$(boot)/dts/amlogic $(boot)/dts/amlogic/$@ PHONY += dtbs dtbs_install - -dtbs: prepare scripts - $(Q)$(MAKE) $(build)=$(boot)/dts - -dtbs_install: - $(Q)$(MAKE) $(dtbinst)=$(boot)/dts +dtbs dtbs_install: prepare scripts + $(Q)$(MAKE) $(build)=$(boot)/dts $@ Image-dtb Image.gz-dtb: vmlinux scripts dtbs $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index 7ad2cf0a607b..7692c0ee4fe1 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -29,7 +29,8 @@ dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dt always := $(dtb-y) -targets += dtbs +targets += dtbs dtbs_install +targets += $(dtb-y) DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES)) ifneq ($(DTB_NAMES),) @@ -42,3 +43,5 @@ targets += $(DTB_LIST) dtbs: $(addprefix $(obj)/, $(DTB_LIST)) clean-files := dts/*.dtb *.dtb + +dtbs_install: $(addsuffix _dtbinst_, $(dtb-y))