I don't know about the open-iscsi modules, but I can give some general
advice about building external kernel modules.

On 1/24/07, Joris Piepers <[EMAIL PROTECTED]> wrote:
>
> This is the original directory the iscsi package made
> /lib/modules/2.6.16.27/build
> /lib/modules/2.6.16.27/kernel
> /lib/modules/2.6.16.27/source
> and some other files

The build and source symlinks are for convenience. The point to the
place where you built your kernel. If you want to build external
modules, you need to keep your kernel directory as you built it (in
the easiest case). You can move your kernel directory later and update
those symlinks to point to the right place.

If you've deleted your kernel directory, you can still get things to
work. Unpack the kernel, do "make mrproper", copy in the .config you
used (should be exactly the same as the one you used before) and issue
the command "make oldconfig && make prepare" as the error shows below.
Now update the symlinks (both build and source unless you did the
preparation in a separate object directory) to this location.

> [EMAIL PROTECTED]:/sources# cd open-iscsi*
> [EMAIL PROTECTED]:/sources/open-iscsi-2.0-754# make
> make -C usr
> make[1]: Entering directory `/sources/open-iscsi-2.0-754/usr'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/sources/open-iscsi-2.0-754/usr'
> make -C kernel
> make[1]: Entering directory `/sources/open- iscsi-2.0-754/kernel'
> echo "kernel check... OK"
> kernel check... OK
> cp 2.6.16-2.6.19/*.c .
> cp 2.6.16-2.6.19/*.h .
> make -C /lib/modules/2.6.19.2/build M=`pwd` KBUILD_OUTPUT=  V=0 modules
> make[2]: Entering directory `/lib/modules/2.6.19.2/build'
>
>   ERROR: Kernel configuration is invalid.
>          include/linux/autoconf.h or include/config/auto.conf are missing.
>          Run 'make oldconfig && make prepare' on kernel src to fix it.

See how it says "Entering directory `/lib/modules/2.6.19.2/build'"?
It's guessing that you want to build against your currently running
kernel, 2.6.19.2. If you want to build against a different version,
look at the Makefile in open-iscsi-*/kernel. There is probably a
variable like KERNEL_DIR so you can do `make
KERNEL_DIR=/path/to/the/kernel/sources/you/want' or something like
that.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to