Commit 3a25f0b1 authored by Aaron Brooks's avatar Aaron Brooks Committed by Sam Ravnborg

kbuild: make namespace.pl CROSS_COMPILE happy

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: default avatarAaron Brooks <aaron.brooks@sicortex.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 4c8fbca5
...@@ -66,8 +66,8 @@ require 5; # at least perl 5 ...@@ -66,8 +66,8 @@ require 5; # at least perl 5
use strict; use strict;
use File::Find; use File::Find;
my $nm = "/usr/bin/nm -p"; my $nm = ($ENV{'NM'} || "nm") . " -p";
my $objdump = "/usr/bin/objdump -s -j .comment"; my $objdump = ($ENV{'OBJDUMP'} || "objdump") . " -s -j .comment";
my $srctree = ""; my $srctree = "";
my $objtree = ""; my $objtree = "";
$srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'})); $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment