Skip to content

Commit 0158a72

Browse files
authored
Fix ULP RISCV toolchain file selection (#993)
1 parent 168fa22 commit 0158a72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/frameworks/ulp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_component_includes(target_config):
7777

7878

7979
def generate_ulp_config(target_config):
80-
riscv_ulp_enabled = sdk_config.get("ESP32S2_ULP_COPROC_RISCV", False)
80+
riscv_ulp_enabled = sdk_config.get("ULP_COPROC_TYPE_RISCV", False)
8181

8282
ulp_sources = collect_ulp_sources()
8383
ulp_sources.sort()
@@ -90,8 +90,8 @@ def generate_ulp_config(target_config):
9090
"components",
9191
"ulp",
9292
"cmake",
93-
"toolchain-%s-ulp%s.cmake"
94-
% (idf_variant, "-riscv" if riscv_ulp_enabled else ""),
93+
"toolchain-%sulp%s.cmake"
94+
% ("" if riscv_ulp_enabled else idf_variant + "-", "-riscv" if riscv_ulp_enabled else ""),
9595
),
9696
'-DULP_S_SOURCES="%s"' % ";".join(ulp_sources),
9797
"-DULP_APP_NAME=ulp_main",

0 commit comments

Comments
 (0)