From: Oleksandr Hnatiuk <ohnatiuk@cisco.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] gcc: remove paths to sysroot from configargs.h and checksum-options for gcc-cross-canadian
Date: Fri, 12 Jul 2024 04:00:50 -0700 [thread overview]
Message-ID: <20240712110050.2211164-1-ohnatiuk@cisco.com> (raw)
Copy fixes for gcc-cross (84a78f46d594 and 0ead8cbdfb96) to gcc-cross-canadian.
This will improve (but not fix) reproducibility of gcc-cross-canadian.
Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com>
---
meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index 7c4233c21157..127f97473f91 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -64,6 +64,20 @@ do_configure () {
}
do_compile () {
+ # Prevent native/host sysroot path from being used in configargs.h header,
+ # as it will be rewritten when used by other sysroots preventing support
+ # for gcc plugins
+ oe_runmake configure-gcc
+ sed -i 's@${STAGING_DIR_TARGET}@/host@g' ${B}/gcc/configargs.h
+ sed -i 's@${STAGING_DIR_HOST}@/host@g' ${B}/gcc/configargs.h
+
+ # Prevent sysroot/workdir paths from being used in checksum-options.
+ # checksum-options is used to generate a checksum which is embedded into
+ # the output binary.
+ oe_runmake TARGET-gcc=checksum-options all-gcc
+ sed -i 's@${DEBUG_PREFIX_MAP}@@g' ${B}/gcc/checksum-options
+ sed -i 's@${STAGING_DIR_HOST}@/host@g' ${B}/gcc/checksum-options
+
oe_runmake all-host configure-target-libgcc
(cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h)
}
--
2.35.6
next reply other threads:[~2024-07-12 11:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 11:00 Oleksandr Hnatiuk [this message]
2024-07-12 11:17 ` [OE-core] [PATCH] gcc: remove paths to sysroot from configargs.h and checksum-options for gcc-cross-canadian Alexander Kanavin
2024-07-12 19:22 ` Oleksandr Hnatiuk
2024-07-15 12:30 ` [OE-core] " Alexander Kanavin
2024-07-17 9:56 ` [PATCH v2] " Oleksandr Hnatiuk
2024-07-17 9:59 ` Oleksandr Hnatiuk
2024-07-18 0:21 ` [OE-core] " Denys Dmytriyenko
2024-07-18 7:40 ` Oleksandr Hnatiuk -X (ohnatiuk - GLOBALLOGIC INC at Cisco)
2024-07-18 8:09 ` Richard Purdie
[not found] ` <17E326C1F13DA2A9.25516@lists.openembedded.org>
2024-07-18 2:15 ` Denys Dmytriyenko
2024-07-18 8:36 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240712110050.2211164-1-ohnatiuk@cisco.com \
--to=ohnatiuk@cisco.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox