diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-01-22 01:24:59 -0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2019-01-23 22:51:09 -0800 |
commit | 695f9930079b78a6a2a56fe6571954228f46b318 (patch) | |
tree | 0ab27aeae20bc5adfa5d5ef71e0c3743217beae8 | |
parent | a4edfa4cf451bf412525887b5b24b9db6486ae97 (diff) | |
download | openembedded-core-contrib-695f9930079b78a6a2a56fe6571954228f46b318.tar.gz |
native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD
This makes dbg work for native tools, and makes debug native tools problem
easier, otherwise, there is no symbol since trippped.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r-- | meta/classes/cross.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 34d7951f3f..f832561daf 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass @@ -17,6 +17,9 @@ HOST_CC_ARCH = "${BUILD_CC_ARCH}" HOST_LD_ARCH = "${BUILD_LD_ARCH}" HOST_AS_ARCH = "${BUILD_AS_ARCH}" +# No strip sysroot when DEBUG_BUILD is enabled +INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" + export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" STAGING_DIR_HOST = "${RECIPE_SYSROOT_NATIVE}" diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index ddccfe2e1d..30a30f924d 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass @@ -119,6 +119,9 @@ PATH_prepend = "${COREBASE}/scripts/native-intercept:" # reused if we manipulate the paths. SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" +# No strip sysroot when DEBUG_BUILD is enabled +INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" + python native_virtclass_handler () { pn = e.data.getVar("PN") if not pn.endswith("-native"): |