View previous topic :: View next topic |
Author |
Message |
zambizzi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14240361324367f474eab70.jpg)
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Mon Dec 20, 2004 10:01 am Post subject: a bad idea? copy .config... |
|
|
Would it be ignorant of me to simply copy my .config from my 2.6.7-gentoo-r11 sources to my 2.6.9-r9 sources folder to save time configuring my kernel?
Would this break anything? Would it allow me to compile an identically-configured kernel so I wouldn't have to do it manually?
Just don't feel like picking through every piece of the old one and trying to match it in the new config file.
Thanks!
-v |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Dec 20, 2004 10:14 am Post subject: Re: a bad idea? copy .config... |
|
|
zambizzi wrote: | Would it be ignorant of me to simply copy my .config from my 2.6.7-gentoo-r11 sources to my 2.6.9-r9 sources folder to save time configuring my kernel? |
No, that would actually be quite smart
zambizzi wrote: | Would this break anything? Would it allow me to compile an identically-configured kernel so I wouldn't have to do it manually? |
In theory, yes.
Upon loading an already-existing .config the menuconfig script first checks it and, if necessary, brings it in line with any changes that have been made to the kernel config layout.
So you only have to open it in the new menuconfig and close it again, and it will compile.
I personally always check the entire config just to make sure there are no gotchas or added features I might want / not want.
zambizzi wrote: | Just don't feel like picking through every piece of the old one and trying to match it in the new config file. |
Then don't, obviously.
If you are absolutely sure the old config already matches what you want to build, then you don't need menuconfig at all; just copy the .config over to the new kernel tree and run
_________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
To Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/106869468452b5c7dd8e5d.png)
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Mon Dec 20, 2004 10:17 am Post subject: |
|
|
I'm one of those that allways copy the .config from the old dir to the new one and run make oldconfig. I only change something when I need support for something new or in case something broke.... _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zambizzi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14240361324367f474eab70.jpg)
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Mon Dec 20, 2004 10:20 am Post subject: :) |
|
|
Thanks guys, I'll go give it a spin.
-v |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zambizzi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14240361324367f474eab70.jpg)
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Mon Dec 20, 2004 10:24 am Post subject: eep! |
|
|
Here's my output, whaddoIDO, whaddoIDOOO?
Code: |
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -o arch/i386/Kconfig
#
# using defaults found in .config
#
.config:130: trying to assign nonexistent symbol PM_DISK
.config:131: trying to assign nonexistent symbol PM_DISK_PARTITION
.config:178: trying to assign nonexistent symbol PCI_USE_VECTOR
.config:239: trying to assign nonexistent symbol BLK_DEV_CARMEL
.config:279: trying to assign nonexistent symbol BLK_DEV_ADMA
.config:347: trying to assign nonexistent symbol SCSI_MEGARAID
.config:542: trying to assign nonexistent symbol NET_FASTROUTE
.config:741: trying to assign nonexistent symbol QIC02_TAPE
.config:1120: trying to assign nonexistent symbol SUPERMOUNT
.config:1121: trying to assign nonexistent symbol SUPERMOUNT_DEBUG
.config:1181: trying to assign nonexistent symbol NEC98_PARTITION
.config:1287: trying to assign nonexistent symbol X86_STD_RESOURCES
*
* Linux Kernel Configuration
*
*
* Code maturity level options
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Select only drivers expected to compile cleanly (CLEAN_COMPILE) [Y/n/?] y
*
* General setup
*
Local version - append to kernel release (LOCALVERSION) [] (NEW)
|
Seriously though, what's the correct answer here?
-v
<edit>
Wow, I'm actually getting prompted for all of my options, I thought it would be as simple as just copying it in there!?
</edit> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Taladar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Oct 2004 Posts: 458 Location: Bielefeld, Germany
|
Posted: Mon Dec 20, 2004 10:40 am Post subject: |
|
|
You get prompted for all new options when you do make oldconfig
You can get help for the current option by typing a "?" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nevynxxx Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Mon Dec 20, 2004 10:45 am Post subject: |
|
|
There is an option in the kernel somewhere (not sure where) to store the current config in /proc/config.gz. Saves remembering to copy the file.
I then just rm -rf the old kernel source, emerge the new kernel, and
Code: |
zcat /proc/config.gz > /usr/src/linux/.config
|
and make {old,menu}config _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zambizzi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14240361324367f474eab70.jpg)
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Wed Dec 22, 2004 7:55 pm Post subject: thanks! |
|
|
Thanks everyone, got it to compile. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|