Lines Matching refs:sourcedir
395 def _BuildBootableImage(sourcedir, fs_config_file, info_dict=None,
397 """Build a bootable image from the specified sourcedir.
400 'sourcedir'), and turn them into a boot image. Return the image data, or
401 None if sourcedir does not appear to contains files for building the
409 os.path.join(sourcedir, "RAMDISK")]
411 cmd = ["mkbootfs", os.path.join(sourcedir, "RAMDISK")]
417 assert p1.returncode == 0, "mkbootfs of %s ramdisk failed" % (sourcedir,)
418 assert p2.returncode == 0, "minigzip of %s ramdisk failed" % (sourcedir,)
422 if not os.access(os.path.join(sourcedir, "kernel"), os.F_OK):
425 if has_ramdisk and not os.access(os.path.join(sourcedir, "RAMDISK"), os.F_OK):
439 cmd = [mkbootimg, "--kernel", os.path.join(sourcedir, "kernel")]
441 fn = os.path.join(sourcedir, "second")
446 fn = os.path.join(sourcedir, "cmdline")
451 fn = os.path.join(sourcedir, "base")
456 fn = os.path.join(sourcedir, "pagesize")
482 os.path.basename(sourcedir),)
486 path = "/" + os.path.basename(sourcedir).lower()
498 path = "/" + os.path.basename(sourcedir).lower()