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

Hongxu Jia hongxu.jia at windriver.com
Fri Jan 29 17:35:53 UTC 2016


Changed in V3:
- Move entry from base.bbclass to bitbake.conf
- Do not immediate expand SELECTED_OPTIMIZATION

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 buildpath QA warning of 169 recipes (previously 236, currently 67) 
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 (5):
  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
  glibc.inc: do not immediate expand SELECTED_OPTIMIZATION
  systemtap_git.inc: do not immediate expand SELECTED_OPTIMIZATION

 meta/conf/bitbake.conf                             | 10 +++-
 meta/recipes-core/glibc/glibc.inc                  | 22 +++-----
 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 +-
 meta/recipes-kernel/systemtap/systemtap_git.inc    | 12 ++--
 6 files changed, 91 insertions(+), 25 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