1827372 Members
4617 Online
109963 Solutions
New Discussion

New kernel

 
SOLVED
Go to solution
O'lnes
Regular Advisor

New kernel


Is the following file need when complie a new kernel in addition to the kernel source file?
:kernel-headers

How can I to install those source files into the new directory other than the default one?

Thanks : P
Andy
2 REPLIES 2
Dirk Wiedemann
Respected Contributor
Solution

Re: New kernel

hello
header-files (xyz.h) are used for defining variables which are used in many C source files. The purpose of headerfiles is to be able to change values at a single point for many sources.
Of course the complex kernel sources also use headerfiles.
The location, structure and names of headerfiles depends on the used linux version.
Dirk
James Wilson_5
Frequent Advisor

Re: New kernel

As Dirk said the headers are used when compiling other programs and is generally pointed to by a link in /usr/src e.g /usr/src/linux
You can copy the new kernel files to say /usr/src/linux-2.4.19 and compile from there.
If you choose to use the new directory as your standard kernel just move the link to point to the new directory.