You are not logged in.

#1 2011-11-13 11:27:26

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Scripts for producing kernel config file

Hi

Are there any scripts for producing kernel config files? For example - i would run the script and it would produce .config file corresponding to my hardware features.

Thanks for help

Last edited by Shark (2011-11-13 11:30:09)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#2 2011-11-13 11:32:25

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Scripts for producing kernel config file

make localconfig is what you want

Offline

#3 2011-11-13 11:35:47

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Scripts for producing kernel config file

bangkok_manouel wrote:

make localconfig is what you want

Where do i put this command?


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#4 2011-11-13 11:39:15

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Scripts for producing kernel config file

in the kernel source directory

Offline

#5 2011-11-13 11:41:00

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Scripts for producing kernel config file

So if i have a PKGBUILD from ABS i put the command in between make prepare and make menu?

  # get kernel version
  make prepare

  # load configuration
  # Configure the kernel. Replace the line below with one of your choice.
  #make menuconfig # CLI menu for configuration
  #make nconfig # new CLI menu for configuration
  make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version
  # ... or manually edit .config

Last edited by Shark (2011-11-13 11:41:28)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#6 2011-11-13 11:44:39

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Scripts for producing kernel config file

after make prepare should be fine.

Offline

#7 2011-11-13 11:48:03

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Scripts for producing kernel config file

bangkok_manouel wrote:

after make prepare should be fine.

I got this error:

make[1]: *** No rule to make target `localconfig'.  Stop.
make: *** [localconfig] Error 2

If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#8 2011-11-13 11:56:27

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Scripts for producing kernel config file

Command "make localmodconfig" does the job instead of "make localconfig".

Another question: does this configuration file look only after my hardware or is in it other generic features too because i have official generic kernel?


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#9 2011-11-13 12:01:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,700
Website

Re: Scripts for producing kernel config file

Shark wrote:

Command "make localmodconfig" does the job instead of "make localconfig".

Another question: does this configuration file look only after my hardware or is in it other generic features too because i have official generic kernel?

No, make localmodconfig only switches off everything that is not currently modprobed!  See my package in the AUR called modprobed_db but be warned that you need to run with it for several weeks of normal usage ideally to make sure you are capturing EVERY needed module!  What you're talking about is highly specific to your system and requires that you know the nconfig tree very well to be effective.  There is no script that just looks at your hardware and selects the right options.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2011-11-13 12:06:26

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Scripts for producing kernel config file

Thanks you both for information. Graysky, i will try your tip.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#11 2011-11-13 12:35:32

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Scripts for producing kernel config file

Previous discussion about this here, including comments from the script writer.

Last edited by tomk (2011-11-13 12:46:50)

Offline

Board footer

Powered by FluxBB