public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* scripts/namespace.pl is not CROSS_COMPILE happy
@ 2006-02-08 18:45 Aaron D. Brooks
  2006-02-08 20:22 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Aaron D. Brooks @ 2006-02-08 18:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Keith Owens

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'}));


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scripts/namespace.pl is not CROSS_COMPILE happy
  2006-02-08 18:45 scripts/namespace.pl is not CROSS_COMPILE happy Aaron D. Brooks
@ 2006-02-08 20:22 ` Sam Ravnborg
  2006-02-27  3:25   ` [PATCH] scripts: namespace.pl " Aaron Brooks
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2006-02-08 20:22 UTC (permalink / raw)
  To: Aaron D. Brooks; +Cc: linux-kernel, Keith Owens

On Wed, Feb 08, 2006 at 01:45:06PM -0500, Aaron D. Brooks wrote:
> 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").

Looks good and with same functionality as Keiths - which I lost somehow.
Will take care when I'm back from holiday end of next week.

	Sam

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] scripts: namespace.pl is not CROSS_COMPILE happy
  2006-02-08 20:22 ` Sam Ravnborg
@ 2006-02-27  3:25   ` Aaron Brooks
  2006-02-27  4:08     ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Aaron Brooks @ 2006-02-27  3:25 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

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>
---

 Patch applies to current torvalds/linux-2.6.git head.

 namespace.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux/scripts/namespace.pl
===================================================================
--- linux-2.6.15/scripts/namespace.pl  (revision 14607)
+++ linux-2.6.15/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'}));

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scripts: namespace.pl is not CROSS_COMPILE happy
  2006-02-27  3:25   ` [PATCH] scripts: namespace.pl " Aaron Brooks
@ 2006-02-27  4:08     ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2006-02-27  4:08 UTC (permalink / raw)
  To: Aaron Brooks; +Cc: linux-kernel

On Sun, Feb 26, 2006 at 10:25:46PM -0500, Aaron Brooks wrote:
> 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>
Applied.

	Sam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-27  4:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 18:45 scripts/namespace.pl is not CROSS_COMPILE happy Aaron D. Brooks
2006-02-08 20:22 ` Sam Ravnborg
2006-02-27  3:25   ` [PATCH] scripts: namespace.pl " Aaron Brooks
2006-02-27  4:08     ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox