Home | History | Annotate | Download | only in tools

Lines Matching full:path

7 import sys, cpp, re, os.path, string, time
29 # for path in <your list of files>:
30 # scanner.parseFile(path)
39 # corresponding to a non-bracketed path name, e.g.:
86 hdr_dir = os.path.realpath(os.path.dirname(from_file))
87 hdr_dir = hdr_dir.replace("%s/" % os.path.realpath(kernel_root),
103 def parseFile(self, path, arch=None, kernel_root=None):
105 if not os.path.exists(path):
112 f = open(path, "rt")
114 print "!!! can't read '%s'" % path
125 if verboseSearch: print "::: " + path
128 if verboseSearch: print "*** " + path
130 list = cpp.BlockParser().parseFile(path)
142 self.checkInclude(inc, path, kernel_root)
174 # from a HeaderScanner because we need to translate the path returned by
183 # for path in <your list of user sources>:
184 # scanner.parseFile(path)
200 'kernel_root' is the path to the 'include' directory
223 path = header
224 if self.prefix and path.startswith("asm/"):
225 path = "%s%s" % (self.prefix, path[4:])
226 return path
228 def pathToHeader(self,path):
229 if self.prefix and path.startswith(self.prefix):
230 path = "asm/%s" % path[len(self.prefix):]
231 return "%s" % path
241 path = self.pathFromHeader(h)
242 if not path in needed:
243 needed[path] = set()
244 workqueue.append(path)
248 path = workqueue[i]
250 fparser.parseFile(self.kernel_root + path,
253 path = self.pathFromHeader(used)
254 if not path in needed:
255 needed[path] = set()
256 workqueue.append(path)
258 needed[path].add(user)
319 def parseFile(self,path):
320 f = file(path, "r")