From: Jan Kiszka Date: Mon, 11 Jan 2010 10:31:44 +0000 (+0100) Subject: tracing/x86: Derive arch from bits argument in recordmcount.pl X-Git-Tag: v2.6.33-rc5~32^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b82a4045f7962483a78a874343dc6e31b79c96c1;p=profile%2Fcommon%2Fkernel-common.git 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 LKML-Reference: <4B4AFE10.8050109@siemens.com> Signed-off-by: Steven Rostedt --- 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 {