Results 1 to 2 of 2
Hello evreyone,
I am trying to compile a simple kernel module and its documentation says that :
/*
* demo-module.c
*
* Compile with
* gcc -I/path-to-linux-tree/include -D__KERNEL__ -DMODULE -O2 ...
- 11-20-2006 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 7
Path to linux tree -
Hello evreyone,
I am trying to compile a simple kernel module and its documentation says that :
/*
* demo-module.c
*
* 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.
- 11-20-2006 #2
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


Reply With Quote
