Skip to content

Commit 9b6e7ad

Browse files
committed
fix
1 parent 10e7cc1 commit 9b6e7ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/ci/bsp_buildings.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ def run_cmd(cmd, output_info=True):
3737
return output_str_list, res
3838

3939

40-
def build_bsp(bsp, scons_args=''):
40+
def build_bsp(bsp, scons_args='', build_tool=None):
41+
if build_tool is None:
42+
build_tool = os.getenv('RTT_BUILD_TOOL')
4143
if build_tool == 'scons':
42-
return build_bsp_scons(bsp)
44+
return build_bsp_scons(bsp, scons_args)
4345
elif build_tool =='cmake':
44-
return build_bsp_cmake(bsp)
46+
return build_bsp_cmake(bsp, scons_args)
4547
else:
4648
print(f"::error::build tool {build_tool} is not supported")
4749
return False
@@ -234,7 +236,6 @@ def build_bsp_attachconfig(bsp, attach_file):
234236

235237
rtt_root = os.getcwd()
236238
srtt_bsp = os.getenv('SRTT_BSP').split(',')
237-
build_tool = os.getenv('RTT_BUILD_TOOL')
238239

239240
for bsp in srtt_bsp:
240241
count += 1

0 commit comments

Comments
 (0)