Lines Matching refs:build_dir

30 def get_file_path(build_dir, default):  argument
31 if build_dir:
32 default = os.path.join(build_dir, default)
61 def make_allyesconfig(self, build_dir, make_options) -> None: argument
64 def make_olddefconfig(self, build_dir, make_options) -> None: argument
70 if build_dir:
71 command += ['O=' + build_dir]
80 def make(self, jobs, build_dir, make_options) -> None: argument
86 if build_dir:
87 command += ['O=' + build_dir]
103 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
123 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
124 kernel_path = os.path.join(build_dir, self._kernel_path)
146 def make_allyesconfig(self, build_dir, make_options) -> None: argument
152 if build_dir:
153 command += ['O=' + build_dir]
162 with open(get_kconfig_path(build_dir), 'a') as config:
168 def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
170 linux_bin = get_file_path(build_dir, 'linux')
177 def get_kconfig_path(build_dir) -> str: argument
178 return get_file_path(build_dir, KCONFIG_PATH)
180 def get_kunitconfig_path(build_dir) -> str: argument
181 return get_file_path(build_dir, KUNITCONFIG_PATH)
183 def get_outfile_path(build_dir) -> str: argument
184 return get_file_path(build_dir, OUTFILE_PATH)
225 build_dir: str,
248 kunitconfig_path = get_kunitconfig_path(build_dir)
263 def validate_config(self, build_dir) -> bool: argument
264 kconfig_path = get_kconfig_path(build_dir)
277 def build_config(self, build_dir, make_options) -> bool: argument
278 kconfig_path = get_kconfig_path(build_dir)
279 if build_dir and not os.path.exists(build_dir):
280 os.mkdir(build_dir)
284 self._ops.make_olddefconfig(build_dir, make_options)
288 return self.validate_config(build_dir)
290 def build_reconfig(self, build_dir, make_options) -> bool: argument
292 kconfig_path = get_kconfig_path(build_dir)
300 return self.build_config(build_dir, make_options)
305 return self.build_config(build_dir, make_options)
307 def build_kernel(self, alltests, jobs, build_dir, make_options) -> bool: argument
310 self._ops.make_allyesconfig(build_dir, make_options)
311 self._ops.make_olddefconfig(build_dir, make_options)
312 self._ops.make(jobs, build_dir, make_options)
316 return self.validate_config(build_dir)
318 def run_kernel(self, args=None, build_dir='', filter_glob='', timeout=None) -> Iterator[str]: argument
325 process = self._ops.start(args, build_dir)
339 output = open(get_outfile_path(build_dir), 'w')