From 839b38a9ee07f66a8885e68da1cb797a4e46ed19 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Fri, 29 Aug 2014 14:17:02 +0200 Subject: [PATCH] ODROID-C3: dts, arm64: Add dtbs_install make target This adds the dtbs_install make target to arm64. The target has been introduced already to arch/arm with the following commit: f4d4ffc03efc kbuild: dtbs_install: new make target Implementation for arm64 is the same as for arm. With 'dtbs_install' all config enabled dtb files are installed to either the INSTALL_DTBS_PATH directory or the default location: $INSTALL_PATH/dtbs/$KERNELRELEASE Change-Id: I5605ea7d723e2a658f7d85177d1221b83d612bcb Signed-off-by: Robert Richter Signed-off-by: Dongjin Kim --- arch/arm64/Makefile | 8 ++------ arch/arm64/boot/dts/Makefile | 5 ++++- 2 files changed, 6 insertions(+), 7 deletions(-) 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))