Skip to content

Commit 26b5112

Browse files
committed
Fix ULP package paths
1 parent 5a7db65 commit 26b5112

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

builder/frameworks/espidf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def populate_idf_env_vars(idf_env):
223223
os.path.dirname(env.subst("$PYTHONEXE")),
224224
]
225225

226-
if mcu not in ("esp32c3", "esp32s3"):
226+
if mcu != "esp32c3":
227227
additional_packages.append(
228-
os.path.join(platform.get_package_dir("toolchain-%sulp" % mcu), "bin"),
228+
os.path.join(platform.get_package_dir("toolchain-esp32ulp"), "bin"),
229229
)
230230

231231
if "windows" in get_systype():

builder/frameworks/ulp.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ def prepare_ulp_env_vars(env):
3636

3737
additional_packages = [
3838
os.path.join(
39-
platform.get_package_dir(
40-
"toolchain-xtensa-esp%s"
41-
% ("32s2" if idf_variant == "esp32s2" else "32")
42-
),
39+
platform.get_package_dir("toolchain-xtensa-%s" % idf_variant),
4340
"bin",
4441
),
4542
os.path.join(
46-
platform.get_package_dir("toolchain-%sulp" % idf_variant),
43+
platform.get_package_dir("toolchain-esp32ulp"),
4744
"bin",
4845
),
4946
platform.get_package_dir("tool-ninja"),
@@ -99,6 +96,7 @@ def generate_ulp_config(target_config):
9996
"-DULP_APP_NAME=ulp_main",
10097
"-DCOMPONENT_DIR=" + os.path.join(ulp_env.subst("$PROJECT_DIR"), "ulp"),
10198
'-DCOMPONENT_INCLUDES="%s"' % ";".join(get_component_includes(target_config)),
99+
"-DIDF_TARGET=%s" % idf_variant,
102100
"-DIDF_PATH=" + fs.to_unix_path(FRAMEWORK_DIR),
103101
"-DSDKCONFIG_HEADER=" + os.path.join(BUILD_DIR, "config", "sdkconfig.h"),
104102
"-DPYTHON=" + env.subst("$PYTHONEXE"),

0 commit comments

Comments
 (0)