Lines Matching refs:f

81             raise self.error(f'Unknown tool {tool}; choose from: {self.TOOLS}')
93 raise self.error(f'Unknown generator {generator}; choose from: {self.GENERATORS}')
96 raise self.error(f'Unknown host-os {host_os}; choose from: {self.HOST_OS}')
107 f"zephyr-app: {zephyr_app} is not a valid folder in the zephyr tree."
166 f'CMake and {generator}'))
206 cmake_args = f' --{cmake_args}' if cmake_args != '' else ''
207 build_args = "".join(f" -o {b}" for b in build_args) if build_args else ""
208 west_args = f' {west_args}' if west_args else ''
209 flash_args = f' {flash_args}' if flash_args else ''
210 snippet_args = ''.join(f' -S {s}' for s in snippets) if snippets else ''
211 shield_args = ''.join(f' --shield {s}' for s in shield) if shield else ''
214 src = f' {app}' if app and not cd_into else ''
217 dst = f' -d {build_dir}' if build_dir != 'build' else ''
222 dst = f' -d {build_dir_formatted}'
229 content.append(f'cd {app}')
242 f"west build -b {board}{build_args}{west_args}{snippet_args}"
243 f"{shield_args}{build_dst}{src}{cmake_args}"
250 content.append(f'west sign{dst}')
256 content.append(f'west flash{flash_args}{dst}')
258 content.append(f'west debug{dst}')
260 content.append(f'west debugserver{dst}')
262 content.append(f'west attach{dst}')
264 content.append(f'west build -t {goal}{dst}')
272 content.append(f"# If you already made a build directory ({build_dir}) and ran cmake, "
273 f"just 'cd {build_dir}' instead.")
275 content.append(f'mkdir {build_dir} && cd {build_dir}')
277 content.append(f'{mkdir} {build_dir} && cd {build_dir}')
280 content.append(f'mkdir {build_dir} & cd {build_dir}')
288 board_arg = f' -DBOARD={board}' if board else ''
289 conf_arg = f' -DCONF_FILE={conf}' if conf else ''
290 gen_args = f' {gen_args}' if gen_args else ''
292 return f'{board_arg}{conf_arg}{gen_args}'
318 content.append(f'cd {app}')
324 content.append(f'cd {backslashified}')
358 source_dir = f' {app}' if app else ' .'
359 cmake_build_dir = f' -B{build_dir}'
360 tool_build_dir = f' -C{build_dir}'
364 build_args = f' {build_args}' if build_args else ''
371 content.append(f'# If you already ran cmake with -B{build_dir}, you '
372 f'can skip this step and run {generator} directly.')
374 content.append(f'# Use cmake to configure a {generator.capitalize()}-based build'
377 …content.append(f'cmake{cmake_build_dir}{gen_arg}{cmake_args}{snippet_args}{shield_args}{source_dir…
383 content.append(f'{generator}{tool_build_dir}{build_args}')
387 content.append(f'{generator}{tool_build_dir} {goal}')