Skip to content

Commit a572bde

Browse files
authored
Update espidf.py
1 parent 5848b23 commit a572bde

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

builder/frameworks/espidf.py

Lines changed: 9 additions & 7 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"),
@@ -1660,7 +1662,7 @@ def _skip_prj_source_files(node):
16601662
(
16611663
board.get(
16621664
"upload.bootloader_offset",
1663-
"0x0" if mcu in ["esp32c2", "esp32c3", "esp32c6", "esp32s3", "esp32h2"] else ("0x2000" if mcu in ["esp32p4"] else "0x1000"),
1665+
"0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32p4"] else "0x0"),
16641666
),
16651667
os.path.join("$BUILD_DIR", "bootloader.bin"),
16661668
),
@@ -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)