Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom linux kernel
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
caputmanus
n00b
n00b


Joined: 24 Dec 2024
Posts: 2

PostPosted: Tue Jan 21, 2025 10:20 am    Post subject: Custom linux kernel Reply with quote

I wanna use text editor for my kernel configuration because I found menuconfig (ppseudo-graphical) very unconvenient. How can I do that?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54744
Location: 56N 3W

PostPosted: Tue Jan 21, 2025 11:02 am    Post subject: Reply with quote

caputmanus,

When you use a text editor to configure the kernel you usually end up with an illegal configuration that builds a broken kernel, or if you are lucky, fails to build.
The kernel .config settings are not independent.
The configure tools know this and take it into account as you work.

There are two issues ...
Some things depend on other things already being selected. They will be hidden if the Depends On: is not true.
Some things force other options on too. You will get that wrong with a text editor.

To search hidden options in menuconfig, press the 'z' key. This toggles the display of hidden options.
Now you can go to them and read the help, They still cannot be selected, until you make the Depends On: true.

The closest you can get to a text editor is
Code:
make config
but you won't like it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1844
Location: Germany

PostPosted: Tue Jan 21, 2025 11:10 am    Post subject: Reply with quote

Also, there is / for search. It also displays entries which are hidden and its dependencies.

Our handbook https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel lists a newer command to configure the kernel options make nconfig, but the older make menucofig is sitll available and maybe more pleasing.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5329
Location: Bavaria

PostPosted: Tue Jan 21, 2025 2:09 pm    Post subject: Reply with quote

Maybe read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Precursors
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 30

PostPosted: Tue Jan 21, 2025 3:46 pm    Post subject: Re: Custom linux kernel Reply with quote

caputmanus wrote:
I wanna use text editor for my kernel configuration because I found menuconfig (ppseudo-graphical) very unconvenient. How can I do that?

You can kernel configure in graphical mode.
Code:
make xconfig

_________________
7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb
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