All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fixes for DEBUG_BUILD
@ 2019-01-24  6:53 Robert Yang
  2019-01-24  6:53 ` [PATCH 1/2] native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD Robert Yang
  2019-01-24  6:53 ` [PATCH 2/2] bitbake.conf: Add DEBUG_BUILD to vardeps Robert Yang
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2019-01-24  6:53 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit a4edfa4cf451bf412525887b5b24b9db6486ae97:

  remove unused distutils-tools.bbclass (2019-01-23 07:57:02 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/debug
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/debug

Robert Yang (2):
  native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD
  bitbake.conf: Add DEBUG_BUILD to vardeps

 meta/classes/cross.bbclass  | 3 +++
 meta/classes/native.bbclass | 3 +++
 meta/conf/bitbake.conf      | 3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.10.2



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD
  2019-01-24  6:53 [PATCH 0/2] Fixes for DEBUG_BUILD Robert Yang
@ 2019-01-24  6:53 ` Robert Yang
  2019-01-24  6:53 ` [PATCH 2/2] bitbake.conf: Add DEBUG_BUILD to vardeps Robert Yang
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2019-01-24  6:53 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/classes/cross.bbclass  | 3 +++
 meta/classes/native.bbclass | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 34d7951..f832561 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 ddccfe2e1..30a30f9 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"):
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] bitbake.conf: Add DEBUG_BUILD to vardeps
  2019-01-24  6:53 [PATCH 0/2] Fixes for DEBUG_BUILD Robert Yang
  2019-01-24  6:53 ` [PATCH 1/2] native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD Robert Yang
@ 2019-01-24  6:53 ` Robert Yang
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2019-01-24  6:53 UTC (permalink / raw)
  To: openembedded-core

Otherwise the recipe would not be rebuilt when enable/disable DEBUG_BUILD.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/conf/bitbake.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 0bdcd04..b00a52b 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -609,8 +609,9 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
 FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
 DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
 SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}"
-SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION"
+SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD"
 BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe"
+BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD"
 
 ##################################################################
 # Settings used by bitbake-layers.
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-24  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24  6:53 [PATCH 0/2] Fixes for DEBUG_BUILD Robert Yang
2019-01-24  6:53 ` [PATCH 1/2] native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD Robert Yang
2019-01-24  6:53 ` [PATCH 2/2] bitbake.conf: Add DEBUG_BUILD to vardeps Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.