[yocto] Striping cross-compiled paths

Burton, Ross ross.burton at intel.com
Mon Sep 12 12:16:02 PDT 2016


On 12 September 2016 at 19:22, Matthew Stanger <matthew_stanger at trimble.com>
wrote:

> I'm using Yocto 1.7.1 I'd like built programs to have the build path
> striped down. The goal is if I'm looking at some programs log after cross
> compiling I want this:
>
> src/program.c:388
>
> where I currently get this:
>
> /usr/local/jenkins/workspace/project-build-manual/Project/
> build-project/tmp/work/arm926ejste-poky-linux-gnuebi/
> program/2.5.992+gitAUTOINC+1c6d246619-r0/git/src/program.c:388
>
> Is it possible to configure Yocto to do this for me? If so where can I
> find info on how I would do this?
>

If those paths come from __FILE__ and so on, then currently no.  It would
be great if GCC could do this, but currently it can not.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160912/cd0159ef/attachment.html>


More information about the yocto mailing list