[OE-core] [PATCH] devtool: deploy-target: Support stripped libs and execs

Tobias Hagelborn tobias.hagelborn at axis.com
Wed Jun 14 11:35:50 UTC 2017


On 06/14/2017 11:28 AM, Richard Purdie wrote:
> On Wed, 2017-06-14 at 08:24 +0200, Tobias Hagelborn wrote:
>> New devtool deploy-target option --strip which enables deploying
>> stripped binaries, saving some space on target.
>>
>> * Copies the files of ${D} into a new directory and strips them in
>> place
>> * Based on sysroot_strip from staging.bbclass
>> * Added devtool.conf option "strip" for changing default behavior
>> * Added .ko strip support compared to original function sysroot_strip
>
> This looks very like the original strip function. Would it be possible
> to create one generic strip function in lib/oe which we could call from
> the various places rather than duplicating this again?
>
> (I think staging.bbclass and lib/oe/package.py:runstrip() are already
> similar code).
>
> Cheers,
>
> Richard
>
I did think if this but I felt these are quite central functions and I 
didn't have enough tests locally to cover for those classes (staging / 
package)

I can supply another version of this patch where the strip function is 
merged into lib/oe.

//Tobias



More information about the Openembedded-core mailing list