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

From: Hanasaki Jiji
Date: Thu Feb 23 2023 - 19:11:33 EST


CONFIG_DEBUG_FS appears to be a relevant to kernel development. So,
turning that off should be fine for me.

The below are from grep SELECT. Looking each up, none seem to enable
DEBUG/TRACE elsewhere. However I am still somewhat a newbie.
CONFIG_PROCESSOR_SELECT=
CONFIG_B44_PCI_AUTOSELECT=
CONFIG_B44_PCICORE_AUTOSELECT=
CONFIG_B43_PCI_AUTOSELECT=
CONFIG_B43_PCICORE_AUTOSELECT=
CONFIG_B43LEGACY_PCI_AUTOSELECT=
CONFIG_B43LEGACY_PCICORE_AUTOSELECT=
CONFIG_MEDIA_SUBDRV_AUTOSELECT=
CONFIG_INTEL_SPEED_SELECT_INTERFACE=

If interest are the keys for grep LEGACY or _LEGACY
which, semantically, I would hope to be able to turnoff/disable on
hardware more current than perhaps 3-5 years ago or a KVM or
VirtualBox VM. Your thoughts and input are appreciated.

Thank you,

On Wed, Feb 22, 2023 at 7:29 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> 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