Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262353AbTKRHKR (ORCPT ); Tue, 18 Nov 2003 02:10:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262373AbTKRHKR (ORCPT ); Tue, 18 Nov 2003 02:10:17 -0500 Received: from wombat.indigo.net.au ([202.0.185.19]:63756 "EHLO wombat.indigo.net.au") by vger.kernel.org with ESMTP id S262353AbTKRHKN (ORCPT ); Tue, 18 Nov 2003 02:10:13 -0500 Date: Tue, 18 Nov 2003 15:11:26 +0800 (WST) From: Ian Kent X-X-Sender: To: Sam Ravnborg cc: linux-kernel Subject: Re: HOWTO build modules in 2.6.0 ... In-Reply-To: <20031118055007.GC1008@mars.ravnborg.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1420 Lines: 37 On Tue, 18 Nov 2003, Sam Ravnborg wrote: > On Mon, Nov 17, 2003 at 11:59:27PM +0000, John Levon wrote: > > On Mon, Nov 17, 2003 at 09:33:36PM +0100, Sam Ravnborg wrote: > > > > > Use the following: > > > make -C /usr/src/linux SUBDIRS=`pwd` O=/users/cieciwa/rpm/BUILD/eagle-1.0.4/linux modules > > > > > > > This requires a kernel source tree empty of built files though, so it's > > really not a great solution ... > > Correct - but why keep kernel trees around full of build files, when > there is a proper solution to keep them out of the src. > > The problem was generated files. If a generated file were present in > the kernel source tree, it would not be built again. > This resulted in a few suprises during development, and I therefore > added the check for a kernel source tree with no built-files. > It can be avoided, but that required too much surgery in various > makefiles and include statements. So that part is 2.7 material. And this method works for versioned kernels as well without having to build a new kernel? -- ,-._|\ Ian Kent / \ Perth, Western Australia *_.--._/ E-mail: raven@themaw.net v Web: http://themaw.net/ - 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/