diff options
| author | Fabien Thomas <fabien.thomas@smile.fr> | 2023-10-13 16:23:54 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2023-10-17 08:23:02 -0400 |
| commit | dcc363969662b640b8777bffefbdcd00bcfcd41b (patch) | |
| tree | f4c130ca528285bf374e10e93514e97621cd6277 | |
| parent | 210800f123e7fc7531e59bf136c27e0c1480f1db (diff) | |
| download | meta-openembedded-dcc363969662b640b8777bffefbdcd00bcfcd41b.tar.gz | |
klibc/klibc.inc : Add DEBUG_PREFIX_MAP flag.
Following reproducible-builds.org recommendations, using compiler flags
like -ffile-prefix-map or -fdebug-prefix-map allows replace build-time
paths by install-time ones in the debugging sections of binaries.
Variable DEBUG_PREFIX_MAP set these flags correctly in yocto build
context to guarantee reproducible builds.
Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 3f9032f126289b8071431d6dd309a5e3d7ebe153)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 113459b523..6093e19b7c 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
| @@ -32,6 +32,7 @@ SRC_URI[sha256sum] = "d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4 | |||
| 32 | S = "${WORKDIR}/klibc-${PV}" | 32 | S = "${WORKDIR}/klibc-${PV}" |
| 33 | 33 | ||
| 34 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" | 34 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" |
| 35 | OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}" | ||
| 35 | OPTFLAGS:append:toolchain-clang = " -fno-builtin-bcmp" | 36 | OPTFLAGS:append:toolchain-clang = " -fno-builtin-bcmp" |
| 36 | OPTFLAGS:append:toolchain-clang:mipsarch = " -no-integrated-as" | 37 | OPTFLAGS:append:toolchain-clang:mipsarch = " -no-integrated-as" |
| 37 | 38 | ||
