From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH] Add convenience TARGET_CROSS
Date: Thu, 27 Mar 2025 19:32:04 +0300 [thread overview]
Message-ID: <20250327163212.299327-1-phcoder@gmail.com> (raw)
Setting all TARGET_* variables is cumbersome. This convenience macro allows
to set them all in one go
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
configure.ac | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index ad1e7bea5..34f4f9415 100644
--- a/configure.ac
+++ b/configure.ac
@@ -540,12 +540,12 @@ if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
tmp_ac_tool_prefix="$ac_tool_prefix"
ac_tool_prefix=$target_alias-
- AC_CHECK_TOOLS(TARGET_CC, [gcc egcs cc],
+ AC_CHECK_TOOLS(TARGET_CC, [${TARGET_CROSS}gcc ${TARGET_CROSS}egcs ${TARGET_CROSS}cc],
[AC_MSG_ERROR([none of gcc, egcs and cc is found. set TARGET_CC manually.])])
- AC_CHECK_TOOL(TARGET_OBJCOPY, objcopy)
- AC_CHECK_TOOL(TARGET_STRIP, strip)
- AC_CHECK_TOOL(TARGET_NM, nm)
- AC_CHECK_TOOL(TARGET_RANLIB, ranlib)
+ AC_CHECK_TOOL(TARGET_OBJCOPY, ${TARGET_CROSS}objcopy)
+ AC_CHECK_TOOL(TARGET_STRIP, ${TARGET_CROSS}strip)
+ AC_CHECK_TOOL(TARGET_NM, ${TARGET_CROSS}nm)
+ AC_CHECK_TOOL(TARGET_RANLIB, ${TARGET_CROSS}ranlib)
ac_tool_prefix="$tmp_ac_tool_prefix"
else
--
2.49.0
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next reply other threads:[~2025-03-27 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 16:32 Vladimir Serbinenko [this message]
2025-04-10 14:43 ` [PATCH] Add convenience TARGET_CROSS Daniel Kiper
-- strict thread matches above, loose matches on Subject: below --
2024-05-16 19:07 Vladimir Serbinenko
2024-06-03 16:30 ` Daniel Kiper
2024-06-04 17:32 ` Mike Gilbert
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=20250327163212.299327-1-phcoder@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.