Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
menuconfig default settings and kernel compilation
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
TsTr
n00b
n00b


Joined: 09 Jun 2019
Posts: 14

PostPosted: Thu Jun 13, 2019 8:50 am    Post subject: menuconfig default settings and kernel compilation Reply with quote

Hi,
I would like to make Gentoo kernel configuration as efficient as possible.
When I extract the tarball file, the .conf has some selected settings as its default.

1. Who choose those settings?
2. Is those settings are the minimum that mandatory?
3. How can I know what is mandatory for specific pc and what is not (lspci? lshw?)
4. Is make clean is recommended before recompile the kernel or not?

Mod edit: Potentially confusing typo corrected, in boldface, above. — JRG
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jun 13, 2019 5:11 pm    Post subject: Reply with quote

TsTr,

Welcome to Gentoo.

Quote:
1. Who choose those settings?
The upstream kernel devs.
Quote:
2. Is those settings are the minimum that mandatory?
No. There is a lot of things there you do not need and a few things you need will be off. Its unlikely the default kernel comfiguration works for anyone.
Quote:
3. How can I know what is mandatory for specific pc and what is not (lspci? lshw?)
There is no simple answer. lspci and lsusb will show some but not all connected hardware. There is no tool to shom devices ot I2C and SPI.
Support is also required for things you choose to use, like filesystems.
Quote:
4. Is make clean is recommended before recompile the kernel or not?
Sometimes. It depends what configuration options you change. The kernel is pretty good but not perfect at getting this right.
Its a great time saver to not run
Code:
make clean
as existing binaries will be reused if possible.
_________________
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
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181

PostPosted: Thu Jun 13, 2019 8:18 pm    Post subject: Re: menuconfig default settings and kernel compilation Reply with quote

TsTr wrote:
4. Is make clear is recommended before recompile the kernel or not?

There's a typo. The right command is make clean, not make clear.

Cleaned up, so to speak. — JRG
Back to top
View user's profile Send private message
TsTr
n00b
n00b


Joined: 09 Jun 2019
Posts: 14

PostPosted: Fri Jun 14, 2019 3:47 am    Post subject: Reply with quote

hello,
Thank you very much.

Yes, I made a typo error, thanks.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5394
Location: Bavaria

PostPosted: Fri Jun 14, 2019 8:58 am    Post subject: Reply with quote

Maybe you want to read this:

https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings
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