Lines Matching refs:fpath

4 def process_file_linux(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False):
7 with oe.qa.ELFFile(fpath) as elf:
14 out = subprocess.check_output([cmd, "-l", fpath], universal_newlines=True)
22 #bb.note("Current rpath for %s is %s" % (fpath, curr_rpath.strip()))
35 bb.warn("Skipping RPATH %s as is a standard search path for %s" % (rpath, fpath))
40 …new_rpaths.append("$ORIGIN/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/"))…
46 bb.utils.break_hardlinks(fpath)
49 #bb.note("Setting rpath for %s to %s" %(fpath, args))
51 subprocess.check_output([cmd, "-r", args, fpath],
56 def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False):
59 p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE)
72 bb.utils.break_hardlinks(fpath)
74 … newpath = "@loader_path/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/")))
75 …([d.expand("${HOST_PREFIX}install_name_tool"), '-change', rpath, newpath, fpath],stdout=sub.PIPE,s…
101 fpath = directory + "/" + file
102 fpath = os.path.normpath(fpath)
103 if os.path.islink(fpath):
107 if os.path.isdir(fpath):
108 process_dir(rootdir, fpath, d, break_hardlinks = break_hardlinks)
110 #bb.note("Testing %s for relocatability" % fpath)
115 perms = os.stat(fpath)[stat.ST_MODE]
116 if os.access(fpath, os.W_OK|os.R_OK):
120 os.chmod(fpath, perms|stat.S_IRWXU)
122 … process_file(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = break_hardlinks)
125 os.chmod(fpath, perms)