Lines Matching refs:build_dir

60 	def make_olddefconfig(self, build_dir: str, make_options) -> None:
61 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, 'olddefconfig']
74 def make(self, jobs, build_dir: str, make_options) -> None:
75 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)]
95 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
115 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
116 kernel_path = os.path.join(build_dir, self._kernel_path)
144 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
146 linux_bin = os.path.join(build_dir, 'linux')
154 def get_kconfig_path(build_dir: str) -> str:
155 return os.path.join(build_dir, KCONFIG_PATH)
157 def get_kunitconfig_path(build_dir: str) -> str:
158 return os.path.join(build_dir, KUNITCONFIG_PATH)
160 def get_old_kunitconfig_path(build_dir: str) -> str:
161 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
163 def get_parsed_kunitconfig(build_dir: str,
166 path = get_kunitconfig_path(build_dir)
187 def get_outfile_path(build_dir: str) -> str:
188 return os.path.join(build_dir, OUTFILE_PATH)
230 build_dir: str,
248 self._kconfig = get_parsed_kunitconfig(build_dir, kunitconfig_paths)
264 def validate_config(self, build_dir: str) -> bool:
265 kconfig_path = get_kconfig_path(build_dir)
279 def build_config(self, build_dir: str, make_options) -> bool:
280 kconfig_path = get_kconfig_path(build_dir)
281 if build_dir and not os.path.exists(build_dir):
282 os.mkdir(build_dir)
286 self._ops.make_olddefconfig(build_dir, make_options)
290 if not self.validate_config(build_dir):
293 old_path = get_old_kunitconfig_path(build_dir)
299 def _kunitconfig_changed(self, build_dir: str) -> bool:
300 old_path = get_old_kunitconfig_path(build_dir)
307 def build_reconfig(self, build_dir: str, make_options) -> bool:
309 kconfig_path = get_kconfig_path(build_dir)
312 return self.build_config(build_dir, make_options)
317 if self._kconfig.is_subset_of(existing_kconfig) and not self._kunitconfig_changed(build_dir):
321 return self.build_config(build_dir, make_options)
323 def build_kernel(self, jobs, build_dir: str, make_options) -> bool:
325 self._ops.make_olddefconfig(build_dir, make_options)
326 self._ops.make(jobs, build_dir, make_options)
330 return self.validate_config(build_dir)
332 def run_kernel(self, args=None, build_dir='', filter_glob='', timeout=None) -> Iterator[str]: argument
339 process = self._ops.start(args, build_dir)
353 output = open(get_outfile_path(build_dir), 'w')