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.:
89 hdr_dir = os.path.realpath(os.path.dirname(from_file))
90 hdr_dir = hdr_dir.replace("%s/" % os.path.realpath(kernel_root),
106 def parseFile(self, path, arch=None, kernel_root=None):
108 if not os.path.exists(path):
115 f = open(path, "rt")
117 print "!!! can't read '%s'" % path
128 if verboseSearch: print "::: " + path
131 if verboseSearch: print "*** " + path
133 list = cpp.BlockParser().parseFile(path)
144 self.checkInclude(inc, path, kernel_root)
176 # from a HeaderScanner because we need to translate the path returned by
185 # for path in <your list of user sources>:
186 # scanner.parseFile(path)
202 'kernel_root' is the path to the 'include' directory
225 path = header
226 if self.prefix and path.startswith("asm/"):
227 path = "%s%s" % (self.prefix, path[4:])
228 return path
230 def pathToHeader(self,path):
231 if self.prefix and path.startswith(self.prefix):
232 path = "asm/%s" % path[len(self.prefix):]
233 return "%s" % path
243 path = self.pathFromHeader(h)
244 if not path in needed:
245 needed[path] = set()
246 workqueue.append(path)
250 path = workqueue[i]
252 fparser.parseFile(self.kernel_root + path,
255 path = self.pathFromHeader(used)
256 if not path in needed:
257 needed[path] = set()
258 workqueue.append(path)
260 needed[path].add(user)
321 def parseFile(self,path):
322 f = file(path, "r")