Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.

  2. #2
    Linux Newbie burntfuse's Avatar
    Join Date
    Nov 2006
    Laurel, MD
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts