Lines Matching refs:build_dir
45 def make_olddefconfig(self, build_dir, make_options): argument
49 if build_dir:
50 command += ['O=' + build_dir]
58 def make_allyesconfig(self, build_dir, make_options): argument
64 if build_dir:
65 command += ['O=' + build_dir]
74 config = open(get_kconfig_path(build_dir), 'a')
80 def make(self, jobs, build_dir, make_options): argument
84 if build_dir:
85 command += ['O=' + build_dir]
98 def linux_bin(self, params, timeout, build_dir): argument
101 if build_dir:
102 linux_bin = os.path.join(build_dir, 'linux')
103 outfile = get_outfile_path(build_dir)
110 def get_kconfig_path(build_dir): argument
112 if build_dir:
113 kconfig_path = os.path.join(build_dir, KCONFIG_PATH)
116 def get_kunitconfig_path(build_dir): argument
118 if build_dir:
119 kunitconfig_path = os.path.join(build_dir, KUNITCONFIG_PATH)
122 def get_outfile_path(build_dir): argument
124 if build_dir:
125 outfile_path = os.path.join(build_dir, OUTFILE_PATH)
143 def create_kunitconfig(self, build_dir, defconfig=DEFAULT_KUNITCONFIG_PATH): argument
144 kunitconfig_path = get_kunitconfig_path(build_dir)
148 def read_kunitconfig(self, build_dir): argument
149 kunitconfig_path = get_kunitconfig_path(build_dir)
153 def validate_config(self, build_dir): argument
154 kconfig_path = get_kconfig_path(build_dir)
167 def build_config(self, build_dir, make_options): argument
168 kconfig_path = get_kconfig_path(build_dir)
169 if build_dir and not os.path.exists(build_dir):
170 os.mkdir(build_dir)
173 self._ops.make_olddefconfig(build_dir, make_options)
177 return self.validate_config(build_dir)
179 def build_reconfig(self, build_dir, make_options): argument
181 kconfig_path = get_kconfig_path(build_dir)
188 return self.build_config(build_dir, make_options)
193 return self.build_config(build_dir, make_options)
195 def build_um_kernel(self, alltests, jobs, build_dir, make_options): argument
198 self._ops.make_allyesconfig(build_dir, make_options)
199 self._ops.make_olddefconfig(build_dir, make_options)
200 self._ops.make(jobs, build_dir, make_options)
204 return self.validate_config(build_dir)
206 def run_kernel(self, args=[], build_dir='', timeout=None): argument
208 self._ops.linux_bin(args, timeout, build_dir)
209 outfile = get_outfile_path(build_dir)