Lines Matching refs:os
13 import os
32 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
33 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
121 kernel_path = os.path.join(build_dir, self._kernel_path)
154 linux_bin = os.path.join(build_dir, 'linux')
164 return os.path.join(build_dir, KCONFIG_PATH)
167 return os.path.join(build_dir, KUNITCONFIG_PATH)
170 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
176 if not os.path.exists(path):
183 if os.path.isdir(path):
184 path = os.path.join(path, KUNITCONFIG_PATH)
185 if not os.path.exists(path):
197 return os.path.join(build_dir, OUTFILE_PATH)
200 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
201 if os.path.isfile(config_path):
204 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
225 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
297 if build_dir and not os.path.exists(build_dir):
298 os.mkdir(build_dir)
310 if os.path.exists(old_path):
311 os.remove(old_path) # write_to_file appends to the file
317 if not os.path.exists(old_path):
326 if not os.path.exists(kconfig_path):
336 os.remove(kconfig_path)