lkml.org 
[lkml]   [2004]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: build system broken in 2.6.6rc1 for external modules?
On Mon, Apr 19, 2004 at 07:56:52PM +0200, Arkadiusz Miskiewicz wrote:

[Please send kbuild related stuff to me. Roman is not kbuild maintainer].

> On 2.6.5 this works fine (/usr/src/linux is read only and make mrproper'ed):
>
> ln -sf %{_kernelsrcdir}/config-up .config
> install -d include/{linux,config}
> ln -sf %{_kernelsrcdir}/include/linux/autoconf-up.h include/linux/autoconf.h
> ln -sf %{_kernelsrcdir}/include/asm-%{_arch} include/asm
> touch include/config/MARKER
> %{__make} -C %{_kernelsrcdir} scripts modules \
> SUBDIRS=$PWD \
> O=$PWD \
> V=1

The way to build modules are now:

cd $KERNELSRCDIR
make
make clean

cd $MODULEDIR
make -C KERNELSRCDIR M=$PWD

This will work even with MODVERSIONING turned on.

There is currently a glitch that requires you to have defined
at least one module in the kernel. net/dummy for example.
When next round of patched are in you will not need to build the full kernel either.

If you do not want (cannot) build the kernel in the $KERNELSRCDIR
then you can use:

cd $KERNELSRCDIR
copy config-up ~/build
make O=~/build
make O=~/build clean

cd $MODULEDIR
make -C KERNELSRCDIR O=~/build M=$PWD


Hope this clarifies it.

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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.035 / U:1.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site