LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing kernel source folders (https://www.linuxquestions.org/questions/linux-general-1/changing-kernel-source-folders-40601/)

chingasman 01-07-2003 12:25 PM

Changing kernel source folders
 
I need to change my kernel source folders. Currently its in /usr/src/linux-2.4.19-16mdk and needs to be in usr/src/linux
what steps should be taken to change the folders or do i just change the linking of the linux to the linux-xxxx folder?

jetfreggel 01-07-2003 01:07 PM

mv /usr/src/linux /usr/src/linux.old
mv /usr/src/linux-yourversion /usr/src/linux

good luck

UnTamed 01-07-2003 05:28 PM

You'll usually want /usr/src/linux to be a symlink to the actual sources for the kernel you're using, i.e. /usr/src/linux-<version>.
It makes it simple in case you keep mutiple sources/kernel.
So, if you switch kernel or add a new one, you just delete the old link,
rm /usr/src/linux
and create a new one to the kernel you want to use/compile
ln -s /usr/src/linux-<version> /usr/src/linux.

This way /usr/src/linux always point to the source of the kernel in use.

HTH


All times are GMT -5. The time now is 07:50 PM.