diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 3 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 32d8c32309..57874f38dc 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -6,6 +6,9 @@ REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}" | |||
6 | TARGET_CC_ARCH_append_libc-uclibc = " -muclibc" | 6 | TARGET_CC_ARCH_append_libc-uclibc = " -muclibc" |
7 | TARGET_CC_ARCH_append_libc-musl = " -mmusl" | 7 | TARGET_CC_ARCH_append_libc-musl = " -mmusl" |
8 | 8 | ||
9 | # default debug prefix map isn't valid in the SDK | ||
10 | DEBUG_PREFIX_MAP = "" | ||
11 | |||
9 | # This function creates an environment-setup-script for use in a deployable SDK | 12 | # This function creates an environment-setup-script for use in a deployable SDK |
10 | toolchain_create_sdk_env_script () { | 13 | toolchain_create_sdk_env_script () { |
11 | # Create environment setup script. Remember that $SDKTARGETSYSROOT should | 14 | # Create environment setup script. Remember that $SDKTARGETSYSROOT should |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index af3b1819be..900d2fe259 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -549,11 +549,11 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} " | |||
549 | ################################################################## | 549 | ################################################################## |
550 | # Optimization flags. | 550 | # Optimization flags. |
551 | ################################################################## | 551 | ################################################################## |
552 | DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types \ | 552 | DEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ |
553 | -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | 553 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ |
554 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | 554 | -fdebug-prefix-map=${STAGING_DIR_HOST}= \ |
555 | -fdebug-prefix-map=${STAGING_DIR_HOST}= \ | ||
556 | " | 555 | " |
556 | DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" | ||
557 | 557 | ||
558 | # Disabled until the option works properly -feliminate-dwarf2-dups | 558 | # Disabled until the option works properly -feliminate-dwarf2-dups |
559 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" | 559 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" |