scripts/namespace.pl is not CROSS_COMPILE happy

From: Aaron D. Brooks
Date: Wed Feb 08 2006 - 13:43:20 EST


All,

I see that this has come up before:

http://lkml.org/lkml/2005/9/20/68

but I don't see the inclusion of these changes in the current Linus
linux-2.6 git tree. Are the changes hanging out somewhere or were they
shot down for some reason?

I've attached an alternate patch which is a ever so slightly more
clean (for some definitions of "clean").

-Aaron

P.S. Please CC me, I'm not on the list.

Index: scripts/namespace.pl
===================================================================
--- old/scripts/namespace.pl (revision 13486)
+++ new/scripts/namespace.pl (working copy)
@@ -66,8 +66,8 @@
use strict;
use File::Find;

-my $nm = "/usr/bin/nm -p";
-my $objdump = "/usr/bin/objdump -s -j .comment";
+my $nm = ($ENV{'NM'} || "nm") . " -p";
+my $objdump = ($ENV{'OBJDUMP'} || "objdump") . " -s -j .comment";
my $srctree = "";
my $objtree = "";
$srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/