[OE-core] [PATCH] staging: Strip files in sysroot

Andreas Müller schnitzeltony at googlemail.com
Tue Jun 23 18:19:41 UTC 2015


On Tue, Jun 23, 2015 at 6:32 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
>> Do I understand this right: Stripping is disabled by default (because
>> it would cause trouble for remote debugging)?
>
> No, this is only stripping of the sysroot files, not target. Its due to
> the way locale packaging happens for glibc. It does mean some files in
> the sysroot are not stripped when they could be but its no change from
> the existing behaviour before the patch.
>
> Cheers,
>
> Richard
>
Sorry for insisting - maybe I need more explanation:

>From my understanding staging sequence is:

* do_install installs to recipe's image folder
* do_populate_sysroot -> sysroot_stage_all() creates hardlinks to
recipe's sysroot-destdir folder
* do_populate_sysroot -> sysroot_strip() strips files in recipe's
sysroot-destdir (=files in recipe's image folder)
* through sstate_install the files are hard linked to MACHINE's
sysroot (STAGING_DIR_HOST)

I see two issues activating stripping

1. If do_package starts after stripping only stripped packages are
packed also for dbg. I think nothing gaurantees that packaging occurs
before do_populate_sysroot.
2. When remote debugging I tell debugger: set sysroot <content of
STAGING_DIR_HOST>. Where do I find a unstripped sysroot now?

Andreas



More information about the Openembedded-core mailing list