> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Mark Hatle
> Sent: den 7 februari 2020 21:20
> To: [email protected]
> Subject: [OE-core] [PATCH 3/3] package.bbclass: Support stripping and
> debug copy of static libraries
>
> By default, we won't copy and strip static libraries. However, this
> functionality can be useful in some cases where people are doing
> development on the target, and don't generally want the larger debug
> capable static libraries. To enable the new functionality set:
>
> PACKAGE_DEBUG_STATIC_SPLIT = '1'
>
> Add a new function splitstaticdebuginfo. Thus function will copy the
> unmodified static library into the specific debug directory location.
> By keeping an unmodified version, it is possible for a user trying
> to debug something to use -L /usr/lib/.debug-static and their existing
> build commands to switch from stripped to full debug versions.
>
> The PACKAGE_DEBUG_SPLIT_STYLE will select between two different
> approaches, /usr/lib/debug-static or <path>/.debug-static.
>
> Additionally you can now choose to strip static libraries to conserve
> space. If either 'PACKAGE_DEBUG_STATIC_SPLIT' or 'PACKAGE_STRIP_STATIC'
> is set to 1, the static library will be stripped. (This is not on by
> default, as it could make diagnosing static library usage difficult in
> some cases.)
>
> Add to insane.bbclass a skip to the staticdev warning for the specific
> -dbg package versions.
>
> Signed-off-by: Mark Hatle <[email protected]>
> ---
> meta/classes/insane.bbclass | 2 +-
> meta/classes/package.bbclass | 67 ++++++++++++++++++++++++++++++++++--
> meta/conf/bitbake.conf | 2 +-
> 3 files changed, 66 insertions(+), 5 deletions(-)
[cut]
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 7080d63287..1efc396ac6 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
[cut]
> @@ -1051,8 +1106,11 @@ python split_and_strip_files () {
> results = oe.utils.multiprocess_launch(splitdebuginfo,
> list(elffiles), d, extraargs=(dvar, debugdir, debuglibdir, debugappend,
> debugsrcdir, d))
>
> if debugsrcdir and not targetos.startswith("mingw"):
> - for file in staticlibs:
> - results.append( (file, source_info(file, d, fatal=False)) )
> + if (d.getVar('PACKAGE_DEBUG_STATIC_SPLIT') == '1'):
> + results = oe.utils.multiprocess_launch(splitstaticdebuginfo,
> staticlibs, d, extraargs=(dvar, debugstaticdir, debugstaticlibdir,
> debugstaticappend, debugsrcdir, d))
> + else:
> + for file in staticlibs:
> + results.append( (file,source_info(file, d)) )
Why was fatal=False dropped from the call to source_info()?
//Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#137256):
https://lists.openembedded.org/g/openembedded-core/message/137256
Mute This Topic: https://lists.openembedded.org/mt/72393320/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-