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

Tobias Hagelborn tobias.hagelborn at axis.com
Fri Jun 16 05:12:47 UTC 2017


On 06/14/2017 01:35 PM, Tobias Hagelborn wrote:
> 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

It should be fairly straightforward to do for staging.bbclass.
I also looked into package.bbclass which has a similar one 
(split_and_strip_files) but that one is very convoluted with the package 
splitting so I want to leave that one for now.



More information about the Openembedded-core mailing list