Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 17 Jan 2003 14:59:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 17 Jan 2003 14:59:39 -0500 Received: from pasmtp.tele.dk ([193.162.159.95]:48903 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id ; Fri, 17 Jan 2003 14:59:32 -0500 Date: Fri, 17 Jan 2003 21:07:40 +0100 From: Sam Ravnborg To: Kai Germaschewski Cc: Geert Uytterhoeven , Anders Gustafsson , Kernel Mailing List Subject: Re: Linux 2.5.59 Message-ID: <20030117200740.GA9911@mars.ravnborg.org> Mail-Followup-To: Kai Germaschewski , Geert Uytterhoeven , Anders Gustafsson , Kernel Mailing List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 17, 2003 at 10:36:54AM -0600, Kai Germaschewski wrote: > > Isn't all of this in .depend? > > In 2.5 things work differently, so no. The longer answer, if you feel bored :-) In 2.5 kbuild generate a file that list all dependencies: .foo.o.cmd This file is generated the first time the file is compiled, and contains dependencies too all included files + all referred CONFIG_* options. What to keep in mind is that make does NOT know the dependencies when run the very first time. Thats because there is no need to generate the .foo.o.cmd file when the .o file does not exist - make will build it no matter what. Therefore if foo.c depends on make will not see this dependency, and gcc will complain. Though - at the second run make will know the dependency and 'get' the file. Kconfig files are special in the sense that we do not always check the full dependency on them. We have autoconf.h, config/MARKER and more magic involved here. Since kconfig does not generate a .config.cmd when it fails to locate a Kconfig file, it would not help to clean up this - with respect to BK/CVS integration. HTH, Sam - kbuild apprentice ;-) - 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/