From 23e874a12711ee156bba5f1bbcd9fa8dd3f2ef83 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sun, 18 Apr 2010 22:41:40 +0000 Subject: change INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP with more options Originally approached with "package.bbclass: introduce KEEP_GNU_DEBUGLINK": http://patchwork.openembedded.org/patch/886/ Redone with a change from INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP which allows more options. By default it does exactly the same thing as is done today, strips the binary, but keeps the gnu.debuglink section. When set to "no", stripping is not done at all, when set to "full" the gnu.debuglink section is not re-added to the binary. Signed-off-by: Roman I Khimov Acked-by: Chris Larson --- conf/local.conf.sample | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'conf/local.conf.sample') diff --git a/conf/local.conf.sample b/conf/local.conf.sample index 2cff53bc1b..af20c93254 100644 --- a/conf/local.conf.sample +++ b/conf/local.conf.sample @@ -124,11 +124,18 @@ IMAGE_FSTYPES = "jffs2 tar" # Uncomment this if you want BitBake to emit debugging output # BBDEBUG = "yes" -# Uncomment these two if you want BitBake to build images useful for debugging. -# Note that INHIBIT_PACKAGE_STRIP needs a package format to be defined. -# Also note that OE now produces -dbg packages which contain debugging symbols. +# Use DEBUG_BUILD to build packages with DEBUG_OPTIMIZATION instead of +# FULL_OPTIMIZATION. +# # DEBUG_BUILD = "1" -# INHIBIT_PACKAGE_STRIP = "1" + +# If you want to have unstripped ready-to-debug binaries, set this to "no", +# although for debugging you can use automatically produced -dbg packages. +# If you need to have completely undebuggable builds, set this to "full", +# by default gnu.debuglink section is left in the binaries after stripping, so +# this might be useful if you want to have checksum-level binary consistency +# across successive builds. +# PACKAGE_STRIP = "no" # Uncomment these to build a package such that you can use gprof to profile it. # NOTE: This will only work with 'linux' targets, not -- cgit 1.2.3-korg