Root directory of the kernel

A newbie here. I am trying to set up Eclipse for Linux Kernel Programming. The guide says set the project location as the root directory of the kernel. Where's the root directory of the kernel now? According to Linux file hierarchy system, it lists /lib as the root directory for shared libraries and kernel modules. I also see /lib32 and /lib64. However, I tried selecting /lib as the location and eclipse doesn't allow me to create the project.

1 Answer

For develop a kernel module you need the headers of kernel , you can install a package kernel-headers-KERNEL_VERSION like kernel-headers-3.2.0-25 and the root directory is /usr/src/linux-headers-KERNEL_VERSION

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like