PATCH, RFC: handle debug options for rawhide differently (was: Re: [kernel] Disable debugging options.)

Dave Jones davej at redhat.com
Tue Nov 20 15:51:41 UTC 2012


On Sun, Oct 21, 2012 at 10:00:23PM +0200, Thorsten Leemhuis wrote:

 > Reviving a old discussion, hence I'm quoting a bit more text that I normally would:

sorry for the delay on this..

 > Find below a solution I worked out: It simply copies config-debug to config-nodebug when needed (e.g. when debugbuildsenabled is 0) during prep and enables the rawhide specific debug options directly -- similar to how the Makefiles do it now, but the source files remain untouched. In my testing it resulted in nearly the exact config files for rawhide kernels (I tested both debugbuildsenabled 0 and 1). There are two exceptions: CONFIG_MAC80211_MESSAGE_TRACING and CONFIG_EDAC_DEBUG are now enabled in the debugbuildsenabled 0 case (e.g. when a normal rawhide kernel is build). That's afaics how it was meant -- but the Makefile missed perl calls to enable these options this case.

Looks ok to me.

 > Note, this also removes the extremedebug call in the makefile; does anyone use it? If yes I can work out a solution that fits better into this scheme. 

Very rarely. But we can do it by hand when necessary.  no point in uglying up the spec even further.

 > How does the patch (against master) look to you guys? Did I miss anything that is needed? Please note that all the changes the patch does to the config-foo files are just those that a "make release" does now. And a lot of stuff is removed from the Makefiles, hence the patch looks big.

Let's try this out in master, and if it works out ok, we can do the same thing in
older releases when we rebase.

	Dave



More information about the kernel mailing list