Skip to content

Commit

Permalink
kbuild: make namespace.pl CROSS_COMPILE happy
Browse files Browse the repository at this point in the history
Using the fixed path to /usr/bin/{nm,objdump} does not allow
CROSS_COMPILE environments to use namespace.pl. This patch causes
namespace.pl to use $NM and $OBJDUMP if defined or fall back to the nm
and objdump found in the path.

Signed-off-by: Aaron Brooks <aaron.brooks@sicortex.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Aaron Brooks authored and Sam Ravnborg committed Feb 27, 2006
1 parent 4c8fbca commit 3a25f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/namespace.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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'}));
Expand Down

0 comments on commit 3a25f0b

Please sign in to comment.