lkml.org 
[lkml]   [2010]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/2] namespace.pl: fix source tree name mangling
The current namespace.pl script does not find source files correctly.
The problem is that the current directory is not the base of the kernel
tree at the point where it calls objdump.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/scripts/namespace.pl 2010-09-27 17:53:29.919433444 +0900
+++ b/scripts/namespace.pl 2010-09-28 09:24:36.891552993 +0900
@@ -167,8 +167,10 @@ sub do_nm
printf STDERR "$fullname is not an object file\n";
return;
}
- ($source = $fullname) =~ s/\.o$//;
- if (-e "$objtree$source.c" || -e "$objtree$source.S") {
+ $fullname =~ s/\.o$//;
+ $source = $basename;
+ $source =~ s/\.o$//;
+ if (-e "$objtree$fullname.c" || -e "$objtree$fullname.S") {
$source = "$objtree$source";
} else {
$source = "$srctree$source";



\
 
 \ /
  Last update: 2010-09-28 11:23    [W:0.101 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site