Re: .config and "make" / turning off all debug

From: Randy Dunlap
Date: Wed Feb 22 2023 - 19:29:41 EST


Hi,

On 2/22/23 16:21, Hanasaki Jiji wrote:
> Hello,
>
> Thank you so much for helping out.
>
> Might the below accomplish the task?
>
> cat f | grep -v DEBUG| grep -v TRACE | grep -v TRACING > newConfigFileWithout

It will disable CONFIG_DEBUG_FS. That's OK if that's what you want to do.

But this will just give you something to begin with. It will need more work.
There are lots of config options that use "select" to force another config
option to be set/enabled. Even if you disable an option and you have one of
these other options set/enabled, they will just enable the DEBUG/TRACE options
again for you.

When you find one of these, they pretty much have to be checked and tuned
one-by-one. It can take a lot of time to do that.


--
~Randy
https://people.kernel.org/tglx/notes-about-netiquette