Bug 11227 - devtool: deploy-target: installs unstripped files
Summary: devtool: deploy-target: installs unstripped files
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.1.3
Hardware: x86 x86_64
: Medium normal
Target Milestone: 2.1.3
Assignee: Tobias Hagelborn
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-23 14:32 UTC by Tobias Hagelborn
Modified: 2017-07-05 04:47 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Hagelborn 2017-03-23 14:32:43 UTC
devtool deploy-target does install unstripped files on target

This in contrast to the stripped files installed from packages in the rootfs and resulting image.

This results in unexpected growth in storage space demand when using devtool compared to generating and booting from a new filsystem-image.

It would be expected that the files are stripped just like the normal packages installed.

(Reported and verified on Krogoth)
Comment 1 Paul Eggleton 2017-03-23 19:37:51 UTC
This is pretty much intentional. devtool is a development tool - it's expected that you'd want to be able to debug your code on the target, which means you need the debugging symbols. Another thing to consider is we're deliberately bypassing the packaging step by taking the files from the output of do_install, so that you don't have to have that fully working when you use devtool deploy-target (and thus you can get to testing your code on the target faster) - but that is in advance of the normal stripping that happens during packaging time.
Comment 2 Tobias Hagelborn 2017-03-24 06:27:24 UTC
Thanks for the explanation Paul,

At our organization, we debug the target using the normal unstripped libs and executables via gdbserver and have the full set of debug symbol files available only on host, thus eliminating the need for larger, unstripped target files.

I'll see if we can provide a patch where stripping can be an option to the deploy-target command. Would that be something of interest/trade-off?
Comment 3 Paul Eggleton 2017-03-24 08:10:23 UTC
Certainly, yes, and your use case does make sense.

In addition to a command line option, we could even have a config option (read from conf/devtool.conf) in order to turn on stripping during deploy by default so you don't have to remember to use the option every time.
Comment 4 Paul Eggleton 2017-06-15 12:16:16 UTC
Tobias, I'm reassigning this to you since you're implementing this (the v1 on the list looks good so far apart from RP's review comments). Thanks.
Comment 5 Tobias Hagelborn 2017-07-05 04:47:29 UTC
Merged to master on 20:th of June