LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-22-2013, 02:41 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
oldconfig


Can Someone clarify exactly what make oldconfig does. Does it pull the information from /proc/config.gz?

what if I have a different .config file that I wanted to update. One that is not the current kernel configuration. Can that be done with make oldconfig?
 
Old 01-22-2013, 04:55 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you use your old .config file with your new kernel sources and run make oldconfig it will default all questions based on the contents of that .config file and only ask about new config symbols (that was from the kernel README).

You could back up your source tree and try it with your old .config file. If it compiles, when you install the new kernel don't remove the old one so you can go back to the old kernel if necessary.
 
Old 01-24-2013, 03:25 PM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
Ok, So if I understand you correctly, typing "make oldconfig" WILL default to "./.config" before searching the proc system?
 
Old 01-24-2013, 05:23 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
make oldconfig will never get the config from /proc. It will use ./.config and if it can't find that file it will use the default kernel configuration:
Code:
# using defaults found in arch/x86/configs/i386_defconfig
 
Old 01-25-2013, 08:29 AM   #5
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
Thank you. That's exactly what I was looking for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are menuconfig, oldconfig and other targets? Tapti Palit Linux - Kernel 1 12-18-2010 09:52 AM
'make oldconfig' query Glenn D. Linux - Software 1 09-11-2010 07:29 AM
make oldconfig error suresh.j Linux - Kernel 1 08-03-2010 11:12 AM
make oldconfig? Okie Slackware 4 01-02-2007 04:52 PM
make oldconfig itzfritz Linux - General 4 10-26-2004 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration