Lines Matching refs:build_dir
61 def make_olddefconfig(self, build_dir: str, make_options: Optional[List[str]]) -> None:
62 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, 'olddefconfig']
75 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None:
77 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)]
97 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
120 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
121 kernel_path = os.path.join(build_dir, self._kernel_path)
152 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
154 linux_bin = os.path.join(build_dir, 'linux')
163 def get_kconfig_path(build_dir: str) -> str:
164 return os.path.join(build_dir, KCONFIG_PATH)
166 def get_kunitconfig_path(build_dir: str) -> str:
167 return os.path.join(build_dir, KUNITCONFIG_PATH)
169 def get_old_kunitconfig_path(build_dir: str) -> str:
170 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
172 def get_parsed_kunitconfig(build_dir: str,
175 path = get_kunitconfig_path(build_dir)
196 def get_outfile_path(build_dir: str) -> str:
197 return os.path.join(build_dir, OUTFILE_PATH)
246 build_dir: str,
264 self._kconfig = get_parsed_kunitconfig(build_dir, kunitconfig_paths)
281 def validate_config(self, build_dir: str) -> bool:
282 kconfig_path = get_kconfig_path(build_dir)
296 def build_config(self, build_dir: str, make_options: Optional[List[str]]) -> bool:
297 kconfig_path = get_kconfig_path(build_dir)
298 if build_dir and not os.path.exists(build_dir):
299 os.mkdir(build_dir)
303 self._ops.make_olddefconfig(build_dir, make_options)
307 if not self.validate_config(build_dir):
310 old_path = get_old_kunitconfig_path(build_dir)
316 def _kunitconfig_changed(self, build_dir: str) -> bool:
317 old_path = get_old_kunitconfig_path(build_dir)
324 def build_reconfig(self, build_dir: str, make_options: Optional[List[str]]) -> bool:
326 kconfig_path = get_kconfig_path(build_dir)
329 return self.build_config(build_dir, make_options)
334 if self._kconfig.is_subset_of(existing_kconfig) and not self._kunitconfig_changed(build_dir):
338 return self.build_config(build_dir, make_options)
340 def build_kernel(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> bool:
342 self._ops.make_olddefconfig(build_dir, make_options)
343 self._ops.make(jobs, build_dir, make_options)
347 return self.validate_config(build_dir)
355 …def run_kernel(self, args: Optional[List[str]]=None, build_dir: str='', filter_glob: str='', filte…
368 self._process = self._ops.start(args, build_dir)
385 output = open(get_outfile_path(build_dir), 'w')