Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-07-2003, 04:35 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
keep old kernel source?
Ok, just built an lfs 4.0 system which of course comes with 2.4.19 kernel. Now built against that is all the lfs software, some libraries from blfs, xf86 and enlightenment. Haven't installed too much else yet. Now again, all that was built against the 2.4.19 kernel. Now if I upgrade to a 2.4.20 or even a 2.5.66 kernel... do I need to keep the old kernel source around? Is any of the software that was compiled against it going to need its header files or anything like that?
|
|
|
04-07-2003, 04:40 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
No, you don't need to keep the old kernel. When you're compiling, it's just important to keep source (or only headers) of current kernels. If possible, also symlink your current source to /usr/src/linux.
|
|
|
04-29-2003, 01:19 AM
|
#3
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
Nothing will require the headers in the kernel source tree, they should have all been copied over into /usr/include/{asm,asm-generic,linux} before the glibc build.
What is important is that those kernel header files installed into /usr/include are not replaced (even if you upgrade the kernel) as they are the headers your c-libraries were built against
|
|
|
04-29-2003, 09:32 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Original Poster
Rep:
|
ok, so I can build / rebuild all the kernels I want... and I can erase any linux-2.x.x source trees I want as long as I don't touch the files I copied over at system creation into /usr/include... ? Thanks.
|
|
|
04-29-2003, 03:14 PM
|
#5
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Yes, you can. In my system, /usr/include/linux is a symlink to the corrent directory of my currently-using kernel. With such a configuration, I need to remember every time I delete my kernel sources (it usually means a new kernel) to modify the symlink. Make sure you don't have it configured this way.
|
|
|
04-29-2003, 08:29 PM
|
#6
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
Quote:
Originally posted by Mara
Yes, you can. In my system, /usr/include/linux is a symlink to the corrent directory of my currently-using kernel. With such a configuration, I need to remember every time I delete my kernel sources (it usually means a new kernel) to modify the symlink. Make sure you don't have it configured this way.
|
You're heading for trouble doing this, you should NEVER swap out the kernel include files used to build your glibc.
From the venerable book
http://www.linuxfromscratch.org/view...06/kernel.html
scroll to the bottom...
|
|
|
05-03-2003, 09:39 AM
|
#7
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
mdh, I change my glibc quite often, too. Usually I've got many kernel and many glibc versions in my system...
|
|
|
05-04-2003, 10:17 PM
|
#8
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
So do I Mara ;-)
Except if there are differing glibc's they go in their own directory (obviously) and are built using the headers from the latest kernel I can find (which are copied into include directory where I put glibc).
The point is that the kernel headers that are referenced during the build of your c-libraries should stay with the c-libraries...
|
|
|
All times are GMT -5. The time now is 02:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|