Re: HOWTO build modules in 2.6.0 ...

From: Ian Kent
Date: Tue Nov 18 2003 - 02:11:03 EST


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@xxxxxxxxxx
v Web: http://themaw.net/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/