@@ -194,6 +194,21 @@ class Product_Color_Enum(Enum):
194
194
'encoding' : 'u32' ,
195
195
'value' : None ,
196
196
},
197
+ 'part-number' : {
198
+ 'type' : 'data' ,
199
+ 'encoding' : 'string' ,
200
+ 'value' : None ,
201
+ },
202
+ 'product-label' : {
203
+ 'type' : 'data' ,
204
+ 'encoding' : 'string' ,
205
+ 'value' : None ,
206
+ },
207
+ 'product-url' : {
208
+ 'type' : 'data' ,
209
+ 'encoding' : 'string' ,
210
+ 'value' : None ,
211
+ },
197
212
}
198
213
199
214
@@ -350,6 +365,12 @@ def populate_factory_data(args, spake2p_params):
350
365
FACTORY_DATA ['product-finish' ]['value' ] = Product_Finish_Enum [args .product_finish ].value
351
366
if args .product_color :
352
367
FACTORY_DATA ['product-color' ]['value' ] = Product_Color_Enum [args .product_color ].value
368
+ if args .part_number :
369
+ FACTORY_DATA ['part-number' ]['value' ] = args .part_number
370
+ if args .product_url :
371
+ FACTORY_DATA ['product-url' ]['value' ] = args .product_url
372
+ if args .product_label :
373
+ FACTORY_DATA ['product-label' ]['value' ] = args .product_label
353
374
354
375
# SupportedModes are stored as multiple entries
355
376
# - sm-sz/<ep> : number of supported modes for the endpoint
@@ -528,6 +549,10 @@ def any_base_int(s): return int(s, 0)
528
549
parser .add_argument ("--product-color" , type = str , choices = product_color_choices ,
529
550
help = 'Product colors choices for product appearance' )
530
551
552
+ parser .add_argument ("--part-number" , type = str , help = 'human readable product number' )
553
+ parser .add_argument ("--product-label" , type = str , help = 'human readable product label' )
554
+ parser .add_argument ("--product-url" , type = str , help = 'link to product specific web page' )
555
+
531
556
parser .add_argument ('-s' , '--size' , type = any_base_int , default = 0x6000 ,
532
557
help = 'The size of the partition.bin, default: 0x6000' )
533
558
parser .add_argument ('--target' , default = 'esp32' ,
0 commit comments