Skip to content

Commit

Permalink
Skip ldscript preprocessing for IDF < v5.3 (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Aug 1, 2024
1 parent 1c27159 commit de553ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ def generate_project_ld_script(sdk_config, ignore_targets=None):
"sections.ld.in",
)

if IDF5:
framework_version = [int(v) for v in get_framework_version().split(".")]
if framework_version[:2] > [5, 2]:
initial_ld_script = preprocess_linker_file(
initial_ld_script,
os.path.join(
Expand Down Expand Up @@ -1419,7 +1420,8 @@ def get_python_exe():
"memory.ld.in",
))

if IDF5:
framework_version = [int(v) for v in get_framework_version().split(".")]
if framework_version[:2] > [5, 2]:
initial_ld_script = preprocess_linker_file(
initial_ld_script,
os.path.join(
Expand Down

0 comments on commit de553ce

Please sign in to comment.