Linux From ScratchThis 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.
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.
At first I have to say, I'm not quite sure if this question even belongs to this forum...
I've tried to search these (and some others too) forums for a solution, but either my eyes can't see it or then there is no thread for it...well, either way, hopefully someone can tell me something (I found a page from Google yesterday, which had something like this inside it, but lost it and I'm not even sure if it could have helped..)
So, I'm going to upgrade my kernel from 2.4.20-something to a newer version. I've emerged the sources, so the next thing I should do is "make menuconfig" (or xconfig, but I prefer menuconfig). I've done this many times before - actually I think last time I used a "ready" kernel was when I had RH back in the days. Anyway, until this day I've always (when updating - or upgrading, should I say - my kernel to a newer one) done all the changes and choises from scratch. And you folks know, this takes some time.
So here's the question: is there _any_ way to "copy" at least a part of my old config to the new one? I have done quite a lot of "own" choises when dealing with different problems and devices in order to make them work as I want, and remembering all the different modules and other stuff isn't that easy. And when something gets forgotten, all the dirty work starts all over again, eating up my time.
It'd be nice to get the old choises copied or something, from the old config to the new one, and after that check the new one out and do some new changes if needed. It would be more than nice. But I assume copying the old .config to the new source directory won't do?
If some of you have an idea how to get this thing done, please tell me...or do I really have to do things all over again every single time I need to update kernel?
Well, yes, copying your previous .config will work. If you're doing a major upgrade, like 2.4 to 2.6, there might be some issues, but otherwise there's no problem doing that.
Your choices are saved in a file, I think it is called $(LINUX_SRC)/.config (somebody verify or correct that?). However, it is not always advisable to copy configurations over, as options may have changed or new options may have been added. I have never bothered copying it over as I like to make sure what options are used each time. There is also `(EXPERIMENTAL)' code that becomes well enough tested to remove that tag, and I will sometimes then want those options too.
Ok, thanks for both of you. My original idea was to copy the old config (except that I wasn't sure if it works) and then look it quickly over to see if it needs something to be done.
And no, this isn't a major update...2.4.x to 2.4.y, so nothing that big.
By the way, what could happen if I would make a very big update, and it would happen that some options I had chosen in the old config would have been removed from the new one for some reason, and I would copy over my old config and compile it? This means, that I would have got an option(s) chosen that do not exist, but how would it affect the compilation process - I guess it'd start shooting error messages or what? This is, of course, just theoretical situation, but I've wondered that too...well, good I don't need to do that big things at least now
I would guess that anything menuconfig doesn't understand in the .config file is ignored and when the new .config file is written they would be lost.
I think you are always safe copying over a previous .config file, but of course you should scan down through the menu for changes. There's always a list of changes available somewhere with each kernel release that you can look at too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.