@@ -109,8 +109,10 @@ def build_project(src_path, build_path, target, toolchain_name,
109
109
110
110
if report != None :
111
111
start = time ()
112
- id_name = project_id .upper ()
113
- description = project_description
112
+
113
+ # If project_id is specified, use that over the default name
114
+ id_name = project_id .upper () if project_id else name .upper ()
115
+ description = project_description if project_description else name
114
116
vendor_label = target .extra_labels [0 ]
115
117
cur_result = None
116
118
prep_report (report , target .name , toolchain_name , id_name )
@@ -190,7 +192,8 @@ def build_project(src_path, build_path, target, toolchain_name,
190
192
def build_library (src_paths , build_path , target , toolchain_name ,
191
193
dependencies_paths = None , options = None , name = None , clean = False , archive = True ,
192
194
notify = None , verbose = False , macros = None , inc_dirs = None , inc_dirs_ext = None ,
193
- jobs = 1 , silent = False , report = None , properties = None , extra_verbose = False ):
195
+ jobs = 1 , silent = False , report = None , properties = None , extra_verbose = False ,
196
+ project_id = None ):
194
197
""" src_path: the path of the source directory
195
198
build_path: the path of the build directory
196
199
target: ['LPC1768', 'LPC11U24', 'LPC2368']
@@ -213,7 +216,9 @@ def build_library(src_paths, build_path, target, toolchain_name,
213
216
214
217
if report != None :
215
218
start = time ()
216
- id_name = name .upper ()
219
+
220
+ # If project_id is specified, use that over the default name
221
+ id_name = project_id .upper () if project_id else name .upper ()
217
222
description = name
218
223
vendor_label = target .extra_labels [0 ]
219
224
cur_result = None
0 commit comments