Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
a bad idea? copy .config...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Mon Dec 20, 2004 10:01 am    Post subject: a bad idea? copy .config... Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon Dec 20, 2004 10:14 am    Post subject: Re: a bad idea? copy .config... Reply with quote

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

Code:
make oldconfig

_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Mon Dec 20, 2004 10:17 am    Post subject: Reply with quote

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
View user's profile Send private message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Mon Dec 20, 2004 10:20 am    Post subject: :) Reply with quote

Thanks guys, I'll go give it a spin.

-v
Back to top
View user's profile Send private message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Mon Dec 20, 2004 10:24 am    Post subject: eep! Reply with quote

Here's my output, whaddoIDO, whaddoIDOOO? :D

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
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Mon Dec 20, 2004 10:40 am    Post subject: Reply with quote

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
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Dec 20, 2004 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Wed Dec 22, 2004 7:55 pm    Post subject: thanks! Reply with quote

Thanks everyone, got it to compile.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum