Include path in module compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux