Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932709Ab0AFUK3 (ORCPT ); Wed, 6 Jan 2010 15:10:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932365Ab0AFUKX (ORCPT ); Wed, 6 Jan 2010 15:10:23 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:64454 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932337Ab0AFUKU convert rfc822-to-8bit (ORCPT ); Wed, 6 Jan 2010 15:10:20 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=u6jJbT1SND8x4hM15/Snq0ExUQL7N8qG6YQAFh6OvvDd507e1kU8Gd9VByXmLdVL/x KIw+5PGoohgVTSDOxp8fAScgUCouPWPb4YRfi4JyDYRns5j72oo9TUvvKkNYILsQEmX2 wb0Ae3XcWfCPNomaL2kSPrm/pI6W9Z6oc6q6E= MIME-Version: 1.0 In-Reply-To: <4B44E5C8.2050006@suse.cz> References: <4B44E5C8.2050006@suse.cz> Date: Wed, 6 Jan 2010 21:10:18 +0100 Message-ID: <520f0cf11001061210w4d33fca6y98f091c4260577c0@mail.gmail.com> Subject: Re: [PATCH] Don't mkdir -p include/config in the sourcetree when using O=outputdir option From: John Kacur To: Michal Marek Cc: linux-kernel@vger.kernel.org, Sam Ravnborg , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2810 Lines: 68 On Wed, Jan 6, 2010 at 8:34 PM, Michal Marek wrote: > John Kacur napsal(a): >> The following is an example of how the Makefile currently can fail. >> [jkacur@tycho rt.linux.git]$ make mrproper >> [jkacur@tycho rt.linux.git]$ mkdir /bld/2.6.33-rc3 >> [jkacur@tycho rt.linux.git]$ cp /bld/config /bld/2.6.33-rc3/.config >> [jkacur@tycho rt.linux.git]$ make O=/bld/2.6.33-rc3/ oldconfig >> ? HOSTCC ?scripts/basic/fixdep >> ? HOSTCC ?scripts/basic/docproc >> ? HOSTCC ?scripts/basic/hash >> ? GEN ? ? /bld/2.6.33-rc3/Makefile >> ? HOSTCC ?scripts/kconfig/conf.o >> ? HOSTCC ?scripts/kconfig/kxgettext.o >> ? HOSTCC ?scripts/kconfig/zconf.tab.o >> ? HOSTLD ?scripts/kconfig/conf >> scripts/kconfig/conf -o arch/x86/Kconfig >> [jkacur@tycho rt.linux.git]$ make O=/bld/2.6.33-rc3/ >> ? GEN ? ? /bld/2.6.33-rc3/Makefile >> scripts/kconfig/conf -s arch/x86/Kconfig >> ? Using /home/jkacur/rt.linux.git as source for kernel >> ? /home/jkacur/rt.linux.git is not clean, please run 'make mrproper' >> ? in the '/home/jkacur/rt.linux.git' directory. >> make[1]: *** [prepare3] Error 1 >> make: *** [sub-make] Error 2 >> [jkacur@tycho rt.linux.git]$ ls -ld include/config/ >> drwxrwxr-x 2 jkacur jkacur 6 2010-01-06 15:58 include/config/ >> >> Signed-off-by: John Kacur >> --- >> ?Makefile | ? ?2 +- >> ?1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/Makefile b/Makefile >> index 1231094..7d8d722 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -458,7 +458,7 @@ config: scripts_basic outputmakefile FORCE >> ? ? ? $(Q)$(MAKE) $(build)=scripts/kconfig $@ >> >> ?%config: scripts_basic outputmakefile FORCE >> - ? ? $(Q)mkdir -p include/linux include/config >> + ? ? $(Q)mkdir -p $(objtree)/include/linux include/config >> ? ? ? $(Q)$(MAKE) $(build)=scripts/kconfig $@ > > Can you double-check that this patch really fixes your issue and that > without this patch it fails again? Because 1) I can't reproduce this > behaviour and I also don't see how it could f, 2) your problem is a > include/config file somehow created in the source tree, but you patch > the creation of include/linux. And if there really needs to be a fix, > the same should be applied to the identical block above. > > thanks, Hi Michal Yes, I doubled checked that the problem exists, and it is quite easy for me to reproduce. However, my proposed solution is also broken, please don't apply, I'm still investigating. I am surprised that you are not able to reproduce the problem though. Did you follow the steps I that I outlined? Thanks, John -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/