Lines Matching refs:fn
683 def ReadFromInputFile(input_file, fn): argument
686 return input_file.read(fn).decode()
688 path = os.path.join(input_file, *fn.split("/"))
694 raise KeyError(fn)
697 def ExtractFromInputFile(input_file, fn): argument
700 tmp_file = MakeTempFile(os.path.basename(fn))
702 f.write(input_file.read(fn))
705 file = os.path.join(input_file, *fn.split("/"))
707 raise KeyError(fn)
760 def read_helper(fn): argument
761 return ReadFromInputFile(input_file, fn)
1595 fn = os.path.join(sourcedir, "second")
1596 if os.access(fn, os.F_OK):
1598 cmd.append(fn)
1600 fn = os.path.join(sourcedir, "dtb")
1601 if os.access(fn, os.F_OK):
1603 cmd.append(fn)
1605 fn = os.path.join(sourcedir, "cmdline")
1606 if os.access(fn, os.F_OK):
1608 cmd.append(open(fn).read().rstrip("\n"))
1610 fn = os.path.join(sourcedir, "base")
1611 if os.access(fn, os.F_OK):
1613 cmd.append(open(fn).read().rstrip("\n"))
1615 fn = os.path.join(sourcedir, "pagesize")
1616 if os.access(fn, os.F_OK):
1618 cmd.append(open(fn).read().rstrip("\n"))
1649 fn = os.path.join(sourcedir, "recovery_dtbo")
1650 cmd.extend(["--recovery_dtbo", fn])
1652 fn = os.path.join(sourcedir, "recovery_acpio")
1653 cmd.extend(["--recovery_acpio", fn])
1823 fn = os.path.join(sourcedir, "dtb")
1824 if os.access(fn, os.F_OK):
1826 cmd.append(fn)
1828 fn = os.path.join(sourcedir, "vendor_cmdline")
1829 if os.access(fn, os.F_OK):
1831 cmd.append(open(fn).read().rstrip("\n"))
1833 fn = os.path.join(sourcedir, "base")
1834 if os.access(fn, os.F_OK):
1836 cmd.append(open(fn).read().rstrip("\n"))
1838 fn = os.path.join(sourcedir, "pagesize")
1839 if os.access(fn, os.F_OK):
1841 cmd.append(open(fn).read().rstrip("\n"))
1854 fn = os.path.join(sourcedir, "vendor_bootconfig")
1855 if os.access(fn, os.F_OK):
1857 cmd.append(fn)
1860 fn = os.path.join(sourcedir, "vendor_ramdisk_fragments")
1861 if os.access(fn, os.F_OK):
1862 ramdisk_fragments = shlex.split(open(fn).read().rstrip("\n"))
1864 fn = os.path.join(sourcedir, "RAMDISK_FRAGMENTS",
1866 cmd.extend(shlex.split(open(fn).read().rstrip("\n")))
1867 fn = os.path.join(sourcedir, "RAMDISK_FRAGMENTS",
1870 if os.access(fn, os.F_OK):
1871 ramdisk_fragment_pathname = fn
2548 fd, fn = tempfile.mkstemp(prefix=prefix, suffix=suffix)
2550 OPTIONS.tempfiles.append(fn)
2551 return fn