Lines Matching refs:build_dir
33 def get_file_path(build_dir, default): argument
34 if build_dir:
35 default = os.path.join(build_dir, default)
64 def make_allyesconfig(self, build_dir, make_options) -> None: argument
67 def make_olddefconfig(self, build_dir, make_options) -> None: argument
73 if build_dir:
74 command += ['O=' + build_dir]
83 def make(self, jobs, build_dir, make_options) -> None: argument
89 if build_dir:
90 command += ['O=' + build_dir]
106 def run(self, params, timeout, build_dir, outfile) -> None: argument
126 def run(self, params, timeout, build_dir, outfile): argument
127 kernel_path = os.path.join(build_dir, self._kernel_path)
156 def make_allyesconfig(self, build_dir, make_options) -> None: argument
162 if build_dir:
163 command += ['O=' + build_dir]
172 config = open(get_kconfig_path(build_dir), 'a')
178 def run(self, params, timeout, build_dir, outfile): argument
180 linux_bin = get_file_path(build_dir, 'linux')
181 outfile = get_outfile_path(build_dir)
190 def get_kconfig_path(build_dir) -> str: argument
191 return get_file_path(build_dir, KCONFIG_PATH)
193 def get_kunitconfig_path(build_dir) -> str: argument
194 return get_file_path(build_dir, KUNITCONFIG_PATH)
196 def get_outfile_path(build_dir) -> str: argument
197 return get_file_path(build_dir, OUTFILE_PATH)
234 build_dir: str,
257 kunitconfig_path = get_kunitconfig_path(build_dir)
272 def validate_config(self, build_dir) -> bool: argument
273 kconfig_path = get_kconfig_path(build_dir)
286 def build_config(self, build_dir, make_options) -> bool: argument
287 kconfig_path = get_kconfig_path(build_dir)
288 if build_dir and not os.path.exists(build_dir):
289 os.mkdir(build_dir)
293 self._ops.make_olddefconfig(build_dir, make_options)
297 return self.validate_config(build_dir)
299 def build_reconfig(self, build_dir, make_options) -> bool: argument
301 kconfig_path = get_kconfig_path(build_dir)
309 return self.build_config(build_dir, make_options)
314 return self.build_config(build_dir, make_options)
316 def build_kernel(self, alltests, jobs, build_dir, make_options) -> bool: argument
319 self._ops.make_allyesconfig(build_dir, make_options)
320 self._ops.make_olddefconfig(build_dir, make_options)
321 self._ops.make(jobs, build_dir, make_options)
325 return self.validate_config(build_dir)
327 def run_kernel(self, args=None, build_dir='', filter_glob='', timeout=None) -> Iterator[str]: argument
333 outfile = get_outfile_path(build_dir)
334 self._ops.run(args, timeout, build_dir, outfile)