]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 24 Jan 2019 06:53:11 +0000 (22:53 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 22:08:42 +0000 (22:08 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cross.bbclass
meta/classes/native.bbclass

index 34d7951f3f171b0c6b54a132db33d9261e1d2253..f832561daf85357fe87c251c2428654ae97c0a62 100644 (file)
@@ -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}"
index ddccfe2e1d45e12a8904b80d7b082aee140c1034..30a30f924d9153755b838defa4c69237b9b255ab 100644 (file)
@@ -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"):