Skip to content

Commit 058e911

Browse files
Christophe PriouzeauBernardPuel
authored andcommitted
BSP: add source mapping for debug binaries
In case of shared source, we need to add more debug mapping Change-Id: I5e778d22cbd858f9c06e9e2f73d42081f5be9619 Signed-off-by: Christophe Priouzeau <[email protected]>
1 parent a083ec1 commit 058e911

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

recipes-bsp/trusted-firmware-a/tf-a-stm32mp.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ SIGN_TOOL_EXTRA_stm32mp25 = " --header-version 2.2 ${@bb.utils.contains('ENCRYPT
151151
# Enable use of work-shared folder
152152
TFA_SHARED_SOURCES ??= "1"
153153
STAGING_TFA_DIR = "${TMPDIR}/work-shared/${MACHINE}/tfa-source"
154+
DEBUG_PREFIX_MAP += " ${@bb.utils.contains('TFA_SHARED_SOURCES', '1', '-fmacro-prefix-map=${STAGING_TFA_DIR}=${TARGET_DBGSRC_DIR}', '', d)} "
155+
DEBUG_PREFIX_MAP += " ${@bb.utils.contains('TFA_SHARED_SOURCES', '1', '-fdebug-prefix-map=${STAGING_TFA_DIR}=${TARGET_DBGSRC_DIR}', '', d)} "
156+
154157
# Make sure to move ${S} to STAGING_TFA_DIR. We can't just
155158
# create the symlink in advance as the git fetcher can't cope with
156159
# the symlink.

recipes-bsp/u-boot/u-boot-stm32mp.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ UBOOT_ELF = "${@'u-boot' if d.getVar('ELF_DEBUG_ENABLE') == '1' else ''}"
2424
# -----------------------------------------------
2525
# Enable use of work-shared folder
2626
STAGING_UBOOT_DIR = "${TMPDIR}/work-shared/${MACHINE}/uboot-source"
27+
DEBUG_PREFIX_MAP += " -fmacro-prefix-map=${STAGING_UBOOT_DIR}=${TARGET_DBGSRC_DIR} "
28+
DEBUG_PREFIX_MAP += " -fdebug-prefix-map=${STAGING_UBOOT_DIR}=${TARGET_DBGSRC_DIR} "
29+
2730
# Make sure to move ${S} to STAGING_UBOOT_DIR. We can't just
2831
# create the symlink in advance as the git fetcher can't cope with
2932
# the symlink.

0 commit comments

Comments
 (0)