Skip to content

Commit 8dacd11

Browse files
authored
Update bsp_buildings.py
1 parent 54ff6a1 commit 8dacd11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/ci/bsp_buildings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ def get_details_and_dependencies(details, projects, seen=None):
109109
for dep in details:
110110
if dep not in seen:
111111
dep_details=projects.get(dep)
112-
seen.add(dep)
112+
seen.add(dep)
113113
if dep_details is not None:
114114
if dep_details.get('depends') is not None:
115115
temp,temp1=get_details_and_dependencies(dep_details.get('depends'), projects, seen)
116116
for line in temp:
117117
result.append(line)
118118
for line in temp1:
119119
scons_arg.append(line)
120-
if dep_details.get('kconfig') is not None:
120+
if dep_details.get('kconfig') is not None:
121121
for line in dep_details.get('kconfig'):
122122
result.append(line)
123123
if dep_details.get('depend_scons_arg') is not None:
@@ -126,6 +126,7 @@ def get_details_and_dependencies(details, projects, seen=None):
126126
else:
127127
print(f"::error::There are some problems with attachconfig depend: {dep}");
128128
return result,scons_arg
129+
129130
def build_bsp_attachconfig(bsp, attach_file):
130131
"""
131132
build bsp with attach config.
@@ -185,7 +186,7 @@ def build_bsp_attachconfig(bsp, attach_file):
185186
print("::endgroup::")
186187

187188
yml_files_content = []
188-
directory = os.path.join(rtt_root, '.ci/attachconfig')
189+
directory = os.path.join(rtt_root, 'bsp', bsp, '.ci/attachconfig')
189190
if os.path.exists(directory):
190191
for root, dirs, files in os.walk(directory):
191192
for filename in files:

0 commit comments

Comments
 (0)