diff options
author | Aaron Brooks <aaron.brooks@sicortex.com> | 2006-02-26 22:25:46 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-02-26 23:05:40 -0500 |
commit | 3a25f0b19f2eefd158955ab809c8947ed8feadf1 (patch) | |
tree | e8ae56ae191e2e99460587a22993da829c0e3aa2 /scripts | |
parent | 4c8fbca5836aaafd165aa8732d92ab5d4f3a6841 (diff) |
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: Aaron Brooks <aaron.brooks@sicortex.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/namespace.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/namespace.pl b/scripts/namespace.pl index 88e30e82f1ca..f34373853ef8 100644 --- a/scripts/namespace.pl +++ b/scripts/namespace.pl | |||
@@ -66,8 +66,8 @@ require 5; # at least perl 5 | |||
66 | use strict; | 66 | use strict; |
67 | use File::Find; | 67 | use File::Find; |
68 | 68 | ||
69 | my $nm = "/usr/bin/nm -p"; | 69 | my $nm = ($ENV{'NM'} || "nm") . " -p"; |
70 | my $objdump = "/usr/bin/objdump -s -j .comment"; | 70 | my $objdump = ($ENV{'OBJDUMP'} || "objdump") . " -s -j .comment"; |
71 | my $srctree = ""; | 71 | my $srctree = ""; |
72 | my $objtree = ""; | 72 | my $objtree = ""; |
73 | $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'})); | 73 | $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'})); |