public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] scripts: Select the correct "strip" to strip gdbserver for Canadian build
@ 2012-09-19  5:49 Zhenqiang Chen
  2012-09-19  6:05 ` Mike Frysinger
  0 siblings, 1 reply; 6+ messages in thread
From: Zhenqiang Chen @ 2012-09-19  5:49 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1348031492 -28800
# Node ID bb161ecc8ecb451225697ad0f6729376eb3e43f3
# Parent  2858a24a584642e263a920b4214c815c172ed547
scripts: Select the correct "strip" to strip gdbserver for Canadian build.

For Canadian build, we can not run the bin/${CT_TARGET}-strip on the build
system. But ${CT_TARGET}-strip should be on PATH.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff -r 2858a24a5846 -r bb161ecc8ecb scripts/build/internals.sh
--- a/scripts/build/internals.sh	Sun Aug 12 07:45:42 2012 -0400
+++ b/scripts/build/internals.sh	Wed Sep 19 13:11:32 2012 +0800
@@ -25,8 +25,15 @@

         # Strip gdbserver
         if [ "${CT_GDB_GDBSERVER}" = "y" ]; then
-           CT_DoExecLog ALL bin/${CT_TARGET}-strip ${strip_args}    \
-                            ${CT_TARGET}/debug-root/usr/bin/gdbserver
+            # For Canadian build, we can not run the bin/${CT_TARGET}-strip on
+            # the build system. But ${CT_TARGET}-strip should be on PATH.
+            if [ "${CT_CANADIAN}" = "y" ]; then
+                CT_DoExecLog ALL ${CT_TARGET}-strip ${strip_args}    \
+                                 ${CT_TARGET}/debug-root/usr/bin/gdbserver
+            else
+                CT_DoExecLog ALL bin/${CT_TARGET}-strip ${strip_args}    \
+                                 ${CT_TARGET}/debug-root/usr/bin/gdbserver
+            fi
         fi
         # We can not use the version in CT_CC_VERSION because
         # of the Linaro stuff. So, harvest the version string

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-25 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-19  5:49 [PATCH] scripts: Select the correct "strip" to strip gdbserver for Canadian build Zhenqiang Chen
2012-09-19  6:05 ` Mike Frysinger
2012-09-19  8:56   ` Zhenqiang Chen
2012-09-19 21:04     ` Yann E. MORIN
2012-09-20  3:23       ` Zhenqiang Chen
2012-09-25 21:00         ` scripts: Use ${CT_TARGET}-strip to strip gdbserver Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).