Results 1 to 2 of 2
Thread: Path to linux tree -
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2006
Path to linux tree -
I am trying to compile a simple kernel module and its documentation says that :
* Compile with
* gcc -I/path-to-linux-tree/include -D__KERNEL__ -DMODULE -O2 \
* -Wall -Wstrict-prototypes -c -o demo-module.o demo-module.c
How can I determine this "path-to-linux-tree" ??
Thanks in advance.
It's usually /usr/src/linux-[kernel version], but 99% of people put a symbolic link from /usr/src/linux to the folder for their main kernel.I have sold my soul to the penguin