Skip to content

Commit

Permalink
enable needed ULP toolchains for C6, P4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 15, 2024
1 parent d3843a4 commit a5973f6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions builder/frameworks/ulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,24 @@ def prepare_ulp_env_vars(env):

toolchain_path = platform.get_package_dir(
"xtensa-esp-elf"
if idf_variant not in ("esp32c6", "esp32p4")
else "riscv32-esp-elf"
)

toolchain_path_ulp = platform.get_package_dir(
"esp32ulp-elf"
if idf_variant in ("esp32", "esp32s2", "esp32s3")
else ""
)

additional_packages = [
toolchain_path,
os.path.join(
platform.get_package_dir("esp32ulp-elf"),
"bin",
),
toolchain_path_ulp,
platform.get_package_dir("tool-ninja"),
os.path.join(platform.get_package_dir("tool-cmake"), "bin"),
os.path.dirname(where_is_program("python")),
]


for package in additional_packages:
ulp_env.PrependENVPath("PATH", package)

Expand Down

0 comments on commit a5973f6

Please sign in to comment.