From: Yoann Congal <[email protected]>

Debug packages of klibc-based recipe contains reference to TMPDIR and
fail to build since "buildpaths" is a ERROR_QA: For example, from [0]:
stdio: ERROR: kexec-tools-klibc-2.0.18+git-r0 do_package_qa: QA Issue: File 
/usr/sbin/.debug/kexec in package kexec-tools-klibc-dbg contains reference to 
TMPDIR
stdio: ERROR: kexecboot-klibc-0.6+git-r0 do_package_qa: QA Issue: File 
/usr/bin/.debug/kexecboot in package kexecboot-klibc-dbg contains reference to 
TMPDIR [buildpaths]
stdio: ERROR: ubi-utils-klibc-2.0.2-r0 do_package_qa: QA Issue: File 
/usr/sbin/.debug/ubirename in package ubi-utils-klibc-dbg contains reference to 
TMPDIR

Fix this by adding DEBUG_PREFIX_MAP to the klibc build CFLAGS to rewrite
these paths in a reproducible way.

[0]: https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/40

Signed-off-by: Yoann Congal <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit 643bc59b0ca271f71c7fef80ed1db4d117248f9b)
Signed-off-by: Anuj Mittal <[email protected]>
---
 meta-initramfs/classes/klibc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-initramfs/classes/klibc.bbclass 
b/meta-initramfs/classes/klibc.bbclass
index 202d132d94..ca50a3d431 100644
--- a/meta-initramfs/classes/klibc.bbclass
+++ b/meta-initramfs/classes/klibc.bbclass
@@ -9,7 +9,7 @@ CC:append:armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' 
if (d.getVar('TUNE
 CC:append:armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if 
(d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
 
 # klcc uses own optimizations by default. See klcc(1) man file.
-export CFLAGS="${TUNE_CCARGS}"
+export CFLAGS="${TUNE_CCARGS} ${DEBUG_PREFIX_MAP}"
 export CPPFLAGS="${TUNE_CCARGS}"
 export LDFLAGS="${TUNE_CCARGS}"
 
-- 
2.51.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121901): 
https://lists.openembedded.org/g/openembedded-devel/message/121901
Mute This Topic: https://lists.openembedded.org/mt/116372525/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to