Skip to content

Commit

Permalink
tracing/x86: Derive arch from bits argument in recordmcount.pl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kiszka authored and Steven Rostedt committed Jan 12, 2010
1 parent ff25766 commit b82a404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ sub check_objcopy
}
}

if ($arch eq "x86") {
if ($arch =~ /(x86(_64)?)|(i386)/) {
if ($bits == 64) {
$arch = "x86_64";
} else {
Expand Down

0 comments on commit b82a404

Please sign in to comment.