summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/classes
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2024-08-31 00:13:03 +0200
committerKhem Raj <raj.khem@gmail.com>2024-08-30 16:43:08 -0700
commit643bc59b0ca271f71c7fef80ed1db4d117248f9b (patch)
treeaf0f2e3d9f90c77d8af093c64dabb8c27151f5eb /meta-initramfs/classes
parentfc9a5194f2e012d4c04f37654e524efb3cb73530 (diff)
downloadmeta-openembedded-643bc59b0ca271f71c7fef80ed1db4d117248f9b.tar.gz
klibc: fix debug pkgs reproducibility
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 <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/classes')
-rw-r--r--meta-initramfs/classes/klibc.bbclass2
1 files changed, 1 insertions, 1 deletions
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
9CC:append:armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}" 9CC:append:armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
10 10
11# klcc uses own optimizations by default. See klcc(1) man file. 11# klcc uses own optimizations by default. See klcc(1) man file.
12export CFLAGS="${TUNE_CCARGS}" 12export CFLAGS="${TUNE_CCARGS} ${DEBUG_PREFIX_MAP}"
13export CPPFLAGS="${TUNE_CCARGS}" 13export CPPFLAGS="${TUNE_CCARGS}"
14export LDFLAGS="${TUNE_CCARGS}" 14export LDFLAGS="${TUNE_CCARGS}"
15 15