[PATCH] - scripts ignoring Makefile settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The namespace.pl script is ignoring both
the Makefile set $OBJDUMP and $NM settings
for cross-compiling. Worse, it assumes that
objdump can be found in /usr/bin.

Signed-off-by: Ben Dooks <[email protected]>

--- linux-2.6.13-simtec1/scripts/namespace.pl	2005-06-17 20:48:29.000000000 +0100
+++ linux-2.6.13-simtec2/scripts/namespace.pl	2005-09-19 22:13:21.000000000 +0100
@@ -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 = "\$NM -p";
+my $objdump = "\$OBJDUMP -s -j .comment";
 my $srctree = "";
 my $objtree = "";
 $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));
--- linux-2.6.13-simtec1/scripts/namespace.pl	2005-06-17 20:48:29.000000000 +0100
+++ linux-2.6.13-simtec2/scripts/namespace.pl	2005-09-19 22:13:21.000000000 +0100
@@ -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 = "\$NM -p";
+my $objdump = "\$OBJDUMP -s -j .comment";
 my $srctree = "";
 my $objtree = "";
 $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));
--- linux-2.6.13-simtec1/scripts/namespace.pl	2005-06-17 20:48:29.000000000 +0100
+++ linux-2.6.13-simtec2/scripts/namespace.pl	2005-09-19 22:13:21.000000000 +0100
@@ -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 = "\$NM -p";
+my $objdump = "\$OBJDUMP -s -j .comment";
 my $srctree = "";
 my $objtree = "";
 $srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux