[OE-core] [PATCH v2 0/3]use target path to replace build ones in debugging info

Hongxu Jia hongxu.jia at windriver.com
Thu Jan 28 14:47:42 UTC 2016


The fix on gcc is quick and simple, almost has no side effect.
Another ides is add new option to do path substitutions on
gcc switches(just refer what '-fdebug-prefix-map=OLD=NEW' did),
but it needs more modification and more risks introduced.

Changed in V2:
- Do not use '-gno-record-gcc-switches' to leave gcc switches in;

- Add gcc option '-gno-record-debug-prefix-map' to not record
  '-fdebug-prefix-map' to gcc command line switches in DWARF
  DW_AT_producer;

Test Steps:

vim local.conf
...
MACHINE ?= "qemux86-64"
WARN_QA += "buildpaths"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "core2-32"
...

bitbake -k world

It fixed buidpath QA warning of 142 recipes (before 236, after 94) 
These newly added options does not work on native.(Which TARGET_CFLAGS
have been overrided in native.bbclass)

When do the world build, mkelfimage compile failed which
triggered by the newly added gcc option.

//Hongxu


The following changes since commit 3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c:

  cmake: update to 3.4.2 (2016-01-26 22:49:40 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib hongxu/fix-buildpath
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=hongxu/fix-buildpath

Hongxu Jia (3):
  base/bbclass: use target path as compile dir in debugging info
  gcc-5.3.inc/base.bbclass: add gcc option to not record
    -fdebug-prefix-map to debugging info
  mkelfimage: fix target cflags leaks to host

 meta/classes/base.bbclass                          | 19 +++++++
 meta/recipes-devtools/gcc/gcc-5.3.inc              |  3 +-
 ...48-add-option-gno-record-debug-prefix-map.patch | 65 ++++++++++++++++++++++
 meta/recipes-devtools/mkelfimage/mkelfimage_git.bb |  4 +-
 4 files changed, 89 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-5.3/0048-add-option-gno-record-debug-prefix-map.patch

-- 
1.9.1




More information about the Openembedded-core mailing list