(version, platform, skip_build)
| 409 | return True |
| 410 | |
| 411 | def build_consecutively(version, platform, skip_build): |
| 412 | sdk_dir = get_sdk_dir(version, platform) |
| 413 | if verbose: |
| 414 | print(f"Using SDK at {sdk_dir}") |
| 415 | os.environ["TACTILITY_SDK_PATH"] = sdk_dir |
| 416 | sdkconfig_path = os.path.join(ttbuild_path, f"sdkconfig.app.{platform}") |
| 417 | shutil.copy(sdkconfig_path, "sdkconfig") |
| 418 | if skip_build: |
| 419 | return True |
| 420 | cmake_path = get_cmake_path(platform) |
| 421 | print_status_busy(f"Building {platform} ELF") |
| 422 | shell_needed = sys.platform == "win32" |
| 423 | build_command = ["idf.py", "-B", cmake_path, "elf"] |
| 424 | if verbose: |
| 425 | print(f"Running command: {" ".join(build_command)}") |
| 426 | with subprocess.Popen(build_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=shell_needed) as process: |
| 427 | build_output = wait_for_process(process) |
| 428 | if process.returncode == 0: |
| 429 | print_status_success(f"Building {platform} ELF") |
| 430 | return True |
| 431 | else: |
| 432 | for line in build_output: |
| 433 | print(line, end="") |
| 434 | print_status_error(f"Building {platform} ELF") |
| 435 | return False |
| 436 | |
| 437 | #endregion Building |
| 438 |
no test coverage detected