From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754876AbdJIOz6 (ORCPT ); Mon, 9 Oct 2017 10:55:58 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58362 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754509AbdJIOz5 (ORCPT ); Mon, 9 Oct 2017 10:55:57 -0400 Date: Mon, 9 Oct 2017 15:55:59 +0100 From: Will Deacon To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Ley Foon Tan , linux-kernel@vger.kernel.org, nios2-dev@lists.rocketboards.org, Catalin Marinas , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] kbuild: fix dependency of dtbs targets Message-ID: <20171009145558.GC28164@arm.com> References: <1507091240-12756-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507091240-12756-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 04, 2017 at 01:27:20PM +0900, Masahiro Yamada wrote: > The target "dtbs" should depend on "scripts" because it needs to > build dtc. The "prepare" target is unneeded here. > > Signed-off-by: Masahiro Yamada > --- > > arch/arm/Makefile | 2 +- > arch/arm64/Makefile | 2 +- > arch/nios2/Makefile | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 47d3a1a..cdb5b55 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -342,7 +342,7 @@ $(INSTALL_TARGETS): > > PHONY += dtbs dtbs_install > > -dtbs: prepare scripts > +dtbs: scripts > $(Q)$(MAKE) $(build)=$(boot)/dts > > dtbs_install: > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 939b310..fd56fbc 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -133,7 +133,7 @@ zinstall install: > > PHONY += dtbs dtbs_install > > -dtbs: prepare scripts > +dtbs: scripts > $(Q)$(MAKE) $(build)=$(boot)/dts > > dtbs_install: I think this is ok, although I was initially nervous about the possibility of the archprepare step having interactions with the dt-bindings headers. That doesn't appear to be the case, so for arm64: Acked-by: Will Deacon Will