[oe] [PATCH] package.bbclass: introduce KEEP_GNU_DEBUGLINK

Roman I Khimov khimov at altell.ru
Fri Jul 17 17:50:28 UTC 2009


On Пятница 17 июля 2009 18:58:37 Khem Raj wrote:
> On (17/07/09 15:20), Roman I Khimov wrote:
> > Currently we're keeping .gnu_debuglink section in files after stripping
> > them. It makes binaries from successive builds a bit different, which is
> > not good in situations where you want them to be exactly the same
> > (identical checksums).
> >
> > So, introducing KEEP_GNU_DEBUGLINK which can be set to zero to disable
> > this behavior and get identical result on successive builds for most of
> > the packages.
>
> you lose debugging these binaries if you remove this section. 

Yep.

> So may be
> there should be options like DEBUG_STRIP, STRIP and NO_STRIP and only one
> of which could be used.

As of now, we have INHIBIT_PACKAGE_STRIP that switches stripping, but it has 
strong on/off semantics, so I don't think we can change that. We can replace 
it with some common PACKAGE_STRIP setting that would work like this:

# No stripping
PACKAGE_STRIP=no
# Strip but leave .gnu_debuglink for debugging
PACKAGE_STRIP=debug
# Strip everything
PACKAGE_STRIP=full

But that's more intrusive and will force distro and local config updates. I 
can do it if everyone is OK with such change.

And, BTW, we also have DEBUG_BUILD setting, although that just switches 
compile flags from what I see.




More information about the Openembedded-devel mailing list