[Buildroot] [PATCH 6/6] remove superfluous OPTIMIZE and DEBUG config knobs

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 6 20:35:58 UTC 2009


Le Tue, 6 Oct 2009 20:49:39 +0200,
Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> a écrit :

> The help-text of BR2_TARGET_OPTIMIZATION reads:
> ---8<---
> Optimizations to use when building for the target host.
> ---8<---
> 
> If you want to build with -O0 -g3 -ggdb3 , then just set it to that.
> Adding knobs for each -Ox and -gx is not userfriendly but odd, given
> that there always was BR2_TARGET_OPTIMIZATION and that this is (or
> should be anyway) used _everywhere_.

Hum, you're right. But I think I would still like to keep a "enable
debug" option that would :

 * Compile with -g and keep the unstripped binary in the staging/
   directory

 * Strip the binaries in target/

This is the normal setup needed to do remote debugging: stripped
binaries on the target, unstripped binaries with debugging symbols to
feed gdb on the host.

I don't have a very strong opinion on this, but I think having an
option for debugging/non-debugging is useful (and debugging + stripping
should probably be the default). But if we decide to get rid of the
option, some documentation would probably be enough.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list