Re: Building additional kernel drivers with Debian kernel-source
> On August 14, 2004 10:59 am, Otto Wyss wrote:
> > "http://www.directfb.org/mailinglists/directfb-dev/2004/08-2004/msg00
> >047 .html".
> >
>
> I do seem to remember reading somewhere that you link the kernel headers
> directory to the build one so try ln
> -s /usr/src/kernel-headers-2.4.26-1-k7 /lib/modules/2.4.26-1-k7/build.
>
Installing the kernel-headers package makes this link but I still can't
build a module. When I do a
make KERNEL_SOURCE=/usr/src/kernel-source-2.4.26
I get the following:
rm -f linux/drivers/char/fusion/Makefile
ln -s Makefile-2.4 linux/drivers/char/fusion/Makefile
make -C /usr/src/kernel-source-2.4.26 \
CPPFLAGS="-D__KERNEL__ -I`pwd`/linux/include
-I/usr/src/kernel-source-2.4.26/include" \
SUBDIRS=`pwd`/linux/drivers/char/fusion modules
make[1]: Entering directory `/usr/src/kernel-source-2.4.26'
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make[1]: Leaving directory `/usr/src/kernel-source-2.4.26'
make[1]: *** [modules] Error 1
make: *** [all] Error 2
Doesn't have the normal kernel-sources packages module support enabled?
O. Wyss
--
How to enhance your code, see "http://freshmeat.net/projects/wxguide/"
Reply to: