File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments