diff mbox series

[2/5] arm/trusted-services: set DEBUG_PREFIX_MAP correctly with UNPACKDIR

Message ID 20250707183042.1299783-2-ross.burton@arm.com
State New
Headers show
Series [1/5] CI: don't force testimage in fvp-base-ts | expand

Commit Message

Ross Burton July 7, 2025, 6:30 p.m. UTC
The sources are not under WORKDIR/git anymore, use UNPACKDIR. This
most likely isn't entirely correct but does remove build paths from the
binaries.

Also use TARGET_DBGSRC_DIR instead of constructing the target path
manually.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../recipes-security/trusted-services/trusted-services.inc    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-arm/recipes-security/trusted-services/trusted-services.inc b/meta-arm/recipes-security/trusted-services/trusted-services.inc
index 2ffc7c90ba..1312b30b80 100644
--- a/meta-arm/recipes-security/trusted-services/trusted-services.inc
+++ b/meta-arm/recipes-security/trusted-services/trusted-services.inc
@@ -13,8 +13,8 @@  require trusted-services-src.inc
 
 # By default bitbake includes only ${S} (i.e git/trusted-services) in the maps.
 # We also need to include the TS dependencies source trees.
-DEBUG_PREFIX_MAP:append = "-fmacro-prefix-map=${WORKDIR}/git=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
- -fdebug-prefix-map=${WORKDIR}/git=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
+DEBUG_PREFIX_MAP:append = "-fmacro-prefix-map=${UNPACKDIR}=${TARGET_DBGSRC_DIR} \
+ -fdebug-prefix-map=${UNPACKDIR}=${TARGET_DBGSRC_DIR} \
 "
 
 TS_PLATFORM ?= "ts/mock"