Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel] kernel flag system ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
22decembre
Guru
Guru


Joined: 08 May 2010
Posts: 308
Location: Paris, banlieue sud (Massy et alentours)

PostPosted: Mon Oct 25, 2010 6:18 am    Post subject: [kernel] kernel flag system ? Reply with quote

Does anyone has yet tried to create a kernel flag system similar to the use flag system ?

By this, we could create a more optimised kernel on the gentoo way, but also more secure because the flag make sure we have every time the good option, the right module... ?

I think this is an idea for gentoo dev, but let's talk about what you feel about this idea...
_________________
Portable Gentoo installé depuis ~fevrier 2010, kde4 ( doc : http://www.22decembre.eu/gentoo-portable/)
Serveur Maison Gentoo depuis ~avril 2010 (doc : http://www.22decembre.eu/gentoo-serveur/)
http://www.22decembre.eu
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Oct 25, 2010 7:07 am    Post subject: Reply with quote

I do not actually understand your point.
Or, If I understand it, is'nt it exactly what we already get ?

What prevents you to see CONFIG_XYZT thingies as "kernel use flags" that you put in a file (.config) that you could see as an equivalent to the USE part of your make.conf ?

The only difference I actually see is that, for "kernel use flags" you get some semi-graphical front-end to modify them.
Being used to making FreeBSD kernels, I personally ... started on gentoo... making my .config... under... vi :lol:
Back to top
View user's profile Send private message
22decembre
Guru
Guru


Joined: 08 May 2010
Posts: 308
Location: Paris, banlieue sud (Massy et alentours)

PostPosted: Mon Oct 25, 2010 9:35 am    Post subject: Reply with quote

here, I am not in the mood with graphical front-end to do that...

My idea, is to define a serie of flags (exactly the same idea as use flags) which you can define to automatically build the kernel as you want, as every over ebuild !
For the beginner, I think it allows to build more secure kernel : you have just the option you want, witout those unnecessary, or those dangerous... In plus, you forget nothing !

For exemple, I could make :
Code:
KERNEL_FLAGS="lvm bluetooth -raid reiserfs ext4 -wifi tg3"


Of course, we can use the USEflags to configure the kernel (lvm is the USEflags, reiser too...), and each drivers would be compiled if its name is in the kernel flag. Plus : an "M" added at the end of the flag indicates that we like it as module. Exemple : athk9M means I would like my wifi card driver as module.

Quote:
What prevents you to see CONFIG_XYZT thingies as "kernel use flags" that you put in a file (.config) that you could see as an equivalent to the USE part of your make.conf ?

This change a little bit each time, and the .config is not a static file ! I think of putting it in a make-kernel.conf, or anywhere else... The config is quite a hard thing to do ! It can help the beginner, but the guru himself has every the right to do in the way he want !
_________________
Portable Gentoo installé depuis ~fevrier 2010, kde4 ( doc : http://www.22decembre.eu/gentoo-portable/)
Serveur Maison Gentoo depuis ~avril 2010 (doc : http://www.22decembre.eu/gentoo-serveur/)
http://www.22decembre.eu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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