From: Aaron Brooks <aaron.brooks@sicortex.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] scripts: namespace.pl is not CROSS_COMPILE happy
Date: Sun, 26 Feb 2006 22:25:46 -0500 [thread overview]
Message-ID: <20060227032546.GQ11744@sicortex.com> (raw)
In-Reply-To: <20060208202251.GA9550@mars.ravnborg.org>
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'}));
next prev parent reply other threads:[~2006-02-27 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Aaron Brooks [this message]
2006-02-27 4:08 ` [PATCH] scripts: namespace.pl " Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060227032546.GQ11744@sicortex.com \
--to=aaron.brooks@sicortex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox