From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756649AbbCRNUL (ORCPT ); Wed, 18 Mar 2015 09:20:11 -0400 Received: from foss.arm.com ([217.140.101.70]:33763 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756216AbbCRNUI (ORCPT ); Wed, 18 Mar 2015 09:20:08 -0400 Date: Wed, 18 Mar 2015 13:20:04 +0000 From: Will Deacon To: Michal Simek Cc: "linux-kernel@vger.kernel.org" , "monstr@monstr.eu" , Zach Pfeffer , Nathan Rossi , Arnd Bergmann , Catalin Marinas , Nathan Rossi , Michal Marek , "linux-kbuild@vger.kernel.org" , arm@kernel.org Subject: Re: [PATCH v2] kbuild: Create directory for target DTB Message-ID: <20150318132004.GC10863@arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Mar 18, 2015 at 12:39:07PM +0000, Michal Simek wrote: > From: Nathan Rossi > > When building specific DTBs out of the kernel tree the vendor subdirs > (boot/dts/) are not created, ensure that they are before > building the DTB. > > Signed-off-by: Nathan Rossi > Signed-off-by: Michal Simek > --- > > Changes in v2: > - Use $(dir ${dtc-tmp}) instead of `dirname ${dtc-tmp}` > Reported-by: Will Deacon Looks ok to me, but no idea which tree this should go through. Maybe arm-soc? Acked-by: Will Deacon Will > Problem is visible with arm64 for out of tree builds. > make O=/tmp/kkk/ defconfig > make O=/tmp/kkk/ cavium/thunder-88xx.dtb > > DTC arch/arm64/boot/dts/cavium/thunder-88xx.dtb > cc1: fatal error: opening output file > arch/arm64/boot/dts/cavium/.thunder-88xx.dtb.dts.tmp: No such file or > directory > compilation terminated. > make[2]: *** [arch/arm64/boot/dts/cavium/thunder-88xx.dtb] Error 1 > make[1]: *** [cavium/thunder-88xx.dtb] Error 2 > > Building specific dtb target on arm32 is working fine > make O=/tmp/kkk4/ multi_v7_defconfig > make O=/tmp/kkk4/ zynq-zc702.dtb > > This is the way how Yocto is building dtb for specific target. > --- > scripts/Makefile.lib | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index 044eb4f..79e8661 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -282,7 +282,8 @@ $(obj)/%.dtb.S: $(obj)/%.dtb > $(call cmd,dt_S_dtb) > > quiet_cmd_dtc = DTC $@ > -cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ > +cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ > + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ > $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \ > -i $(dir $<) $(DTC_FLAGS) \ > -d $(depfile).dtc.tmp $(dtc-tmp) ; \ > -- > 1.7.2.3 > >