Doesn't work when you've
> People just need to understand that you have to compile modules
> with -I/usr/src/linux/include or -I/usr/src/linux-2.4.22/include
Modules aren't the only things which need kernel headers, unfortunately.
Glibc will never be magically up to date with the ioctl of the day.
> A Makefile fragment in /usr/src/linux (say, config.mk) that keeps
> the CFLAGS that were used to compile the kernel would go a long
> way to getting people to use -I/usr/src/linux-2.4.22/include
> pretty much automatically.
Some standard fragment would be very cool for add-on modules.
But where do you put it?
I find my installed kernel source tree is often different to the one I'm
running. Often because the kernel in the source tree has bugs ;-)
> Module Makefiles then would look like something like this:
>
> # Point to kernel you want to build against
> TOPDIR=/usr/src/linux
>
> include $(KERNEL)/config.mk
It would be great if it weren't for that pesky /usr/src/linux thing.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/