[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Include path in module compilation
Hi,
My common sense says that kernel code (be it in a
module or not) should compile only with kernel
headers.
Looking at kernel newbies (and other places as well)
I see that kernel modules are compile with the
-I/path/to/kernel/headers.
Meaning not only that the standard includes (i.e.
/usr/include) are used, but also that they are used
BEFORE the kernel headers.
Is my common sense wrong ?
- I am cross compiling a module, if that makes any
difference.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/