Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
scripts for kernel .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
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sun Jul 12, 2015 12:11 pm    Post subject: scripts for kernel .config ??? Reply with quote

hi,

I thought being clever by using vi to change all =m into =y but unfortunately this makes the .config illegal? this affected 1200 lines. Is there another way to script the menuconfig.

The kernel seeds are a good starting point, but it would be helpful to see for example only the modules, or the selected items + dependencies or select all drivers for netwerkcard etc.. or diff .config1 .config2

something like make menuconfig << EOF
CONFIG_BRIDGE_NETFILTER=yes
EOF

if this is impossible, is there a C++ way?

this threat started here https://forums.gentoo.org/viewtopic-t-1021772-highlight-.html
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 50

PostPosted: Sun Jul 12, 2015 3:04 pm    Post subject: Re: scripts for kernel .config ??? Reply with quote

skorefish wrote:
hi,

I thought being clever by using vi to change all =m into =y but unfortunately this makes the .config illegal? this affected 1200 lines. Is there another way to script the menuconfig.


Is this what you were looking for?
Quote:
"make allyesconfig"
Create a ./.config file by setting symbol values to 'y' as much as possible.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Sun Jul 12, 2015 3:16 pm    Post subject: Reply with quote

I think localyesconfig makes more sense.
Code:
localyesconfig  - Update current config converting local mods to core
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sun Jul 12, 2015 4:05 pm    Post subject: Reply with quote

Quote:
localyesconfig - Update current config converting local mods to core


Yes, these are very usefull !!!
make help : shows all possibilities

In fact I was looking for how to make scripts like localyesconfig,... but with other own functions 8)
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Sun Jul 12, 2015 4:33 pm    Post subject: Reply with quote

make menuconfig and say no to the module system and they should all turn into yes... hopefully
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