Messages in this thread Patch in this message | | | Date | Sun, 26 Feb 2006 22:25:46 -0500 | From | Aaron Brooks <> | Subject | [PATCH] scripts: namespace.pl is not 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> ---
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'})); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |