View previous topic :: View next topic |
Author |
Message |
FlowIt n00b
Joined: 27 Sep 2016 Posts: 7
|
Posted: Fri Nov 25, 2016 3:57 pm Post subject: Force disable config options |
|
|
I needed to tweak options under CONFIG_EXPERT but this also enabled CONFIG_DEBUG_KERNEL. Is there any way to disable CONFIG_DEBUG_KERNEL while keeping CONFIG_EXPERT enabled? (menuconfig says that CONFIG_DEBUG_KERNEL is selected by CONFIG_EXPERT=y) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Nov 25, 2016 4:33 pm Post subject: |
|
|
FlowIt,
You need to go through all of the CONFIG_DEBUG_KERNEL menu and turn off things that you don't want.
Its a one time thing, since you will use your current kernel .config as the basis for your next kernel .config. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
FlowIt n00b
Joined: 27 Sep 2016 Posts: 7
|
Posted: Fri Nov 25, 2016 5:41 pm Post subject: |
|
|
I am not sure if I understand you correctly.
In the Kernel hacking submenu there is the CONFIG_DEBUG_KERNEL option, but this option itself is no submenu. I want to disable the option itself, but I can't, because I would have to disable CONFIG_EXPERT first (which I don't want, because I had to enable it for another feature).
Most additional debugging options are disabled nevertheless, but CONFIG_DEBUG_KERNEL says "Say Y here if you are developing drivers or trying to debug and identify kernel problems" which sounds like a lot of debug information is compiled into the kernel and I don't want that. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21867
|
Posted: Sat Nov 26, 2016 12:57 am Post subject: |
|
|
A cursory read of recent kernel sources suggests that, with a few likely irrelevant exceptions, CONFIG_DEBUG_KERNEL does not, on its own, change anything about the compiled kernel. Using git grep -w CONFIG_DEBUG_KERNEL shows many hits in defconfig files and a few source files. Adding -- '*.[chsS]' to restrict it to common source file extensions makes the list much easier to read. If you are on one of blackfin, mips, parisc, powerpc, or xtensa, then setting CONFIG_DEBUG_KERNEL might change the generated kernel. For any other architecture, debug-specific code is guarded by other Kconfig symbols, which you should be able to change independently. |
|
Back to top |
|
|
MZH n00b
Joined: 27 May 2023 Posts: 4
|
Posted: Tue May 14, 2024 5:04 am Post subject: |
|
|
I'm 8 years late but for future people
I found here that CONFIG_EXPERT requires CONFIG_DEBUG_KERNEL so you can disable other options that are enabled by default to make the kernel more minimal |
|
Back to top |
|
|
|