From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753218AbcF2OEt (ORCPT ); Wed, 29 Jun 2016 10:04:49 -0400 Received: from mail2.asahi-net.or.jp ([202.224.39.198]:64593 "EHLO mail2.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbcF2NlQ (ORCPT ); Wed, 29 Jun 2016 09:41:16 -0400 From: Yoshinori Sato To: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yoshinori Sato Subject: [PATCH v4 18/22] sh: Add separate DTB build rule Date: Wed, 29 Jun 2016 22:41:03 +0900 Message-Id: <1467207667-15768-19-git-send-email-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1467207667-15768-1-git-send-email-ysato@users.sourceforge.jp> References: <1467207667-15768-1-git-send-email-ysato@users.sourceforge.jp> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes v4 none Signed-off-by: Yoshinori Sato --- arch/sh/Makefile | 7 +++++++ arch/sh/boot/dts/Makefile | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 8adffa8..a44e630 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -189,6 +189,13 @@ drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ boot := arch/sh/boot +%.dtb %.dtb.S %.dtb.o: | scripts + $(Q)$(MAKE) $(build)=arch/sh/boot/dts arch/sh/boot/dts/$@ + +PHONY += dtbs +dtbs: scripts + $(Q)$(MAKE) $(build)=arch/sh/boot/dts + cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index e5ce3a0..38fdc38 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1,3 +1,5 @@ obj-$(CONFIG_USE_BUILTIN_DTB) += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o +dtstree := $(srctree)/$(src) clean-files := *.dtb.S +always := $(dtb-y) -- 2.7.0