MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / build_consecutively

Function build_consecutively

Tests/SdkIntegration/tactility.py:411–435  ·  view source on GitHub ↗
(version, platform, skip_build)

Source from the content-addressed store, hash-verified

409 return True
410
411def 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

Callers 1

build_allFunction · 0.85

Calls 7

get_sdk_dirFunction · 0.85
get_cmake_pathFunction · 0.85
print_status_busyFunction · 0.85
wait_for_processFunction · 0.85
print_status_successFunction · 0.85
print_status_errorFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected