Skip to content

Commit 9f99877

Browse files
committed
Improve searching for ESP-IDF service files
1 parent 4774553 commit 9f99877

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

builder/frameworks/espidf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,16 @@ def find_framework_service_files(search_path, sdk_config):
411411
result["kconfig_files"] = list()
412412
result["kconfig_build_files"] = list()
413413
for d in listdir(search_path):
414-
for f in listdir(join(search_path, d)):
414+
path = join(search_path, d)
415+
if not isdir(path):
416+
continue
417+
for f in listdir(path):
415418
if f == "linker.lf":
416-
result["lf_files"].append(join(search_path, d, f))
419+
result["lf_files"].append(join(path, f))
417420
elif f == "Kconfig.projbuild":
418-
result["kconfig_build_files"].append(join(search_path, d, f))
421+
result["kconfig_build_files"].append(join(path, f))
419422
elif f == "Kconfig":
420-
result["kconfig_files"].append(join(search_path, d, f))
423+
result["kconfig_files"].append(join(path, f))
421424

422425
result["lf_files"].extend([
423426
join(FRAMEWORK_DIR, "components", "esp32", "ld", "esp32_fragments.lf"),

0 commit comments

Comments
 (0)