Skip to content

Commit 190cc09

Browse files
authored
add ULP LP support
1 parent b60bfc8 commit 190cc09

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

builder/frameworks/espidf.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,11 @@ def populate_idf_env_vars(idf_env):
250250
os.path.dirname(get_python_exe()),
251251
]
252252

253-
if mcu not in ("esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4"):
254-
additional_packages.append(
255-
os.path.join(platform.get_package_dir("toolchain-esp32ulp"), "bin"),
256-
)
253+
# if mcu in ("esp32", "esp32s2", "esp32s3"):
254+
# additional_packages.append(
255+
# os.path.join(platform.get_package_dir("toolchain-esp32ulp"), "bin"),
256+
# )
257+
257258

258259
idf_env["PATH"] = os.pathsep.join(additional_packages + [idf_env["PATH"]])
259260

@@ -870,6 +871,7 @@ def build_bootloader(sdk_config):
870871
"-DPYTHON=" + get_python_exe(),
871872
"-DIDF_PATH=" + FRAMEWORK_DIR,
872873
"-DSDKCONFIG=" + SDKCONFIG_PATH,
874+
"-DPROJECT_SOURCE_DIR=" + PROJECT_DIR,
873875
"-DLEGACY_INCLUDE_COMMON_HEADERS=",
874876
"-DEXTRA_COMPONENT_DIRS="
875877
+ os.path.join(FRAMEWORK_DIR, "components", "bootloader"),
@@ -1771,8 +1773,8 @@ def _skip_prj_source_files(node):
17711773
#
17721774

17731775
ulp_dir = os.path.join(PROJECT_DIR, "ulp")
1774-
if os.path.isdir(ulp_dir) and os.listdir(ulp_dir) and mcu not in ("esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4"):
1775-
env.SConscript("ulp.py", exports="env sdk_config project_config idf_variant")
1776+
if os.path.isdir(ulp_dir) and os.listdir(ulp_dir) and mcu not in ("esp32c2", "esp32c3", "esp32h2"):
1777+
env.SConscript("ulp.py", exports="env sdk_config project_config app_includes idf_variant")
17761778

17771779
#
17781780
# Process OTA partition and image

0 commit comments

Comments
 (0)