From 043d6ac1f6daec64e3ead5549cd415d1cad16201 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 23 Jan 2019 22:53:11 -0800 Subject: 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. (From OE-Core rev: 1d903485da26fec991b4a940182e32934220e19b) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/classes/native.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/native.bbclass') 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"): -- cgit v1.2.3-54-g00ecf