Lines Matching refs:src_dir
38 def build_rootdir(src_dir: str) -> str:
40 index = src_dir.rfind('/')
41 root_dir = "%sroot" % src_dir[:index + 1]
48 shutil.copytree(src_dir, tmp_dir_system, symlinks=True)
92 def mk_system_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
93 src_dir = build_rootdir(src_dir)
94 mk_configs = " ".join([src_dir, device, mk_configs])
98 if os.path.isdir(src_dir):
99 shutil.rmtree(src_dir)
102 def mk_ramdisk_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
106 " ".join([src_dir, device, ramdisk_size])
111 def mk_other_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
112 mk_configs = " ".join([src_dir, device, mk_configs])
127 src_dir = args[0]
134 mk_system_img(mkfs_tools, mk_configs, device, src_dir, is_sparse)
136 mk_ramdisk_img(mkfs_tools, mk_configs, device, src_dir, is_sparse)
140 mk_ramdisk_img(mkfs_tools, mk_configs, device, src_dir, is_sparse)
142 mk_other_img(mkfs_tools, mk_configs, device, src_dir, is_sparse)