* [PATCH] recordmcount.pl: x86: Derive arch from bits argument
@ 2010-01-11 10:31 Jan Kiszka
2010-01-16 9:42 ` [tip:tracing/urgent] tracing/x86: Derive arch from bits argument in recordmcount.pl tip-bot for Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2010-01-11 10:31 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Ingo Molnar, Linux Kernel Mailing List
Let the arch argument be overruled by bits. Otherwise, building of
external modules against a i386 target on a x86-64 host (and likely vice
versa as well) fails unless ARCH=i386 is explicitly passed to make.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
scripts/recordmcount.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 92f09fe..ea6f6e3 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -194,7 +194,7 @@ sub check_objcopy
}
}
-if ($arch eq "x86") {
+if ($arch =~ /(x86(_64)?)|(i386)/) {
if ($bits == 64) {
$arch = "x86_64";
} else {
--
1.6.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:tracing/urgent] tracing/x86: Derive arch from bits argument in recordmcount.pl
2010-01-11 10:31 [PATCH] recordmcount.pl: x86: Derive arch from bits argument Jan Kiszka
@ 2010-01-16 9:42 ` tip-bot for Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Jan Kiszka @ 2010-01-16 9:42 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, rostedt, jan.kiszka, tglx
Commit-ID: b82a4045f7962483a78a874343dc6e31b79c96c1
Gitweb: http://git.kernel.org/tip/b82a4045f7962483a78a874343dc6e31b79c96c1
Author: Jan Kiszka <jan.kiszka@siemens.com>
AuthorDate: Mon, 11 Jan 2010 11:31:44 +0100
Committer: Steven Rostedt <rostedt@goodmis.org>
CommitDate: Mon, 11 Jan 2010 23:49:35 -0500
tracing/x86: Derive arch from bits argument in recordmcount.pl
Let the arch argument be overruled by bits. Otherwise, building of
external modules against a i386 target on a x86-64 host (and likely vice
versa as well) fails unless ARCH=i386 is explicitly passed to make.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
LKML-Reference: <4B4AFE10.8050109@siemens.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
scripts/recordmcount.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 92f09fe..ea6f6e3 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -194,7 +194,7 @@ sub check_objcopy
}
}
-if ($arch eq "x86") {
+if ($arch =~ /(x86(_64)?)|(i386)/) {
if ($bits == 64) {
$arch = "x86_64";
} else {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-16 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-11 10:31 [PATCH] recordmcount.pl: x86: Derive arch from bits argument Jan Kiszka
2010-01-16 9:42 ` [tip:tracing/urgent] tracing/x86: Derive arch from bits argument in recordmcount.pl tip-bot for Jan Kiszka
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 NNTP newsgroup(s).