From: Vegard Nossum <vegard.nossum@gmail.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] decodecode: use cross-compiler/toolchain if defined
Date: Mon, 12 May 2008 15:52:42 +0200 [thread overview]
Message-ID: <20080512135242.GA5014@damson.getinternet.no> (raw)
Hi Sam,
Not sure if this is really in the kbuild domain, but I see you've taken
patches to this script before, so I'll make an attempt too :-)
Vegard
>From 75166add6121dbda4fad2e197d4fe6525dee580c Mon Sep 17 00:00:00 2001
From: Vegard Nossum <vegard.nossum@gmail.com>
Date: Mon, 12 May 2008 15:36:38 +0200
Subject: [PATCH] decodecode: use cross-compiler/toolchain if defined
>From the Makefile: "CROSS_COMPILE specify [sic] the prefix used for all
executables used".
This is also very useful for decoding oopses on other archs than the
native one, so it seems natural to have it in the decodecode script as
well.
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Vegard Nossum <vegardno@ifi.uio.no>
---
scripts/decodecode | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/decodecode b/scripts/decodecode
index 235d393..09b45a0 100644
--- a/scripts/decodecode
+++ b/scripts/decodecode
@@ -48,8 +48,8 @@ if [ $marker -ne 0 ]; then
beforemark=`echo "$code" | cut -c-$((${marker} - 1))`
echo -n " .byte 0x" > $T.s
echo $beforemark | sed -e 's/ /,0x/g' >> $T.s
- as $AFLAGS -o $T.o $T.s
- objdump -S $T.o
+ ${CROSS_COMPILE}as $AFLAGS -o $T.o $T.s
+ ${CROSS_COMPILE}objdump -S $T.o
rm $T.o $T.s
# and fix code at-and-after marker
@@ -59,6 +59,6 @@ fi
code=`echo $code | sed -e 's/ [<(]/ /;s/[>)] / /;s/ /,0x/g'`
echo -n " .byte 0x" > $T.s
echo $code >> $T.s
-as $AFLAGS -o $T.o $T.s
-objdump -S $T.o
+${CROSS_COMPILE}as $AFLAGS -o $T.o $T.s
+${CROSS_COMPILE}objdump -S $T.o
rm $T $T.s $T.o
--
1.5.4.1
next reply other threads:[~2008-05-12 13:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 13:52 Vegard Nossum [this message]
2008-05-19 19:02 ` Sam Ravnborg
2008-05-19 20:23 ` Vegard Nossum
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=20080512135242.GA5014@damson.getinternet.no \
--to=vegard.nossum@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®