Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 23 Sep 2002 15:55:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 23 Sep 2002 15:55:06 -0400 Received: from pasmtp.tele.dk ([193.162.159.95]:46855 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id ; Mon, 23 Sep 2002 15:55:01 -0400 Date: Mon, 23 Sep 2002 21:59:49 +0200 From: Sam Ravnborg To: Kai Germaschewski Cc: Roman Zippel , Sam Ravnborg , linux-kernel , kbuild-devel Subject: Re: [kbuild-devel] linux kernel conf 0.6 Message-ID: <20020923215949.A1310@mars.ravnborg.org> Mail-Followup-To: Kai Germaschewski , Roman Zippel , Sam Ravnborg , linux-kernel , kbuild-devel References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from kai@tp1.ruhr-uni-bochum.de on Sun, Sep 22, 2002 at 05:36:25PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1571 Lines: 35 On Sun, Sep 22, 2002 at 05:36:25PM -0500, Kai Germaschewski wrote: > > > scripts/lkc/Makefile* > > > - As kbuild does not distingush between individual objects, > > > used for a given target, but (try to) build them all, I have > > > found a solution where I create one Makefile for each executable. > > > I could not see a clean way to integrate this in kbuild, and finally > > > decided that in this special case a number of Makefiles did not > > > hurt too much. > > > > Here I thought about using "ifeq ($(MAKECMDGOALS),...)" to keep them in a > > single file. Did you try something like this? > > That's now handled without obvious hacks. Applying $(sort ) to create a unique list of obj files does not solve this issue, only hide it. kbuild will compile all .o files originating from .c files when building conf and mconf. Likewise when building qconf, all .o files originating from both .c _and_ .cc files will be built. In other words the current solution leverage on the fact that the only problematic object files is qconf.o based on qconf.cc. It is OK that the first "make oldconfig" - automatic or not - needs to compile one extra .o file (mconf.o), since this is relatively fast. PS. linux-isdn.bkbits.net/linux-2.5.kconfig has not showed up yet - mentioned the patch you posted a diff for. Sam - 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/