Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b82a4045 authored by Jan Kiszka's avatar Jan Kiszka Committed by Steven Rostedt
Browse files

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: default avatarJan Kiszka <jan.kiszka@siemens.com>
LKML-Reference: <4B4AFE10.8050109@siemens.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent ff257667
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ sub check_objcopy
    }
}

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