Skip to content

Commit b901f2d

Browse files
committed
Typo fix
1 parent 02d004d commit b901f2d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def compile_source_files(
665665
):
666666
build_envs = prepare_build_envs(config, default_env, debug_allowed)
667667
objects = []
668-
components_dir = fs.to_unix_path(os.path.join(FRAMEWORK_DIR, "components")).lower()
668+
components_dir = fs.to_unix_path(os.path.join(FRAMEWORK_DIR, "components"))
669669
for source in config.get("sources", []):
670670
if source["path"].endswith(".rule"):
671671
continue
@@ -674,16 +674,13 @@ def compile_source_files(
674674
src_dir = config["paths"]["source"]
675675
if not os.path.isabs(src_dir):
676676
src_dir = os.path.join(project_src_dir, config["paths"]["source"])
677-
src_path = os.path.join(
678-
os.path.dirname(source.get("path")).lower(),
679-
os.path.basename(source.get("path"))
680-
)
677+
src_path = source.get("path")
681678
if not os.path.isabs(src_path):
682679
# For cases when sources are located near CMakeLists.txt
683680
src_path = os.path.join(project_src_dir, src_path)
684681

685682
obj_path = os.path.join("$BUILD_DIR", prepend_dir or "")
686-
if src_path.startswith(components_dir):
683+
if src_path.lower().startswith(components_dir.lower()):
687684
obj_path = os.path.join(
688685
obj_path, os.path.relpath(src_path, components_dir)
689686
)

0 commit comments

Comments
 (0)