@@ -314,6 +314,8 @@ def convert(self, value, param, ctx):
314
314
315
315
@click .argument ('outfile' )
316
316
@click .argument ('infile' )
317
+ @click .option ('--non-bootable' , default = False , is_flag = True ,
318
+ help = 'Mark the image as non-bootable.' )
317
319
@click .option ('--custom-tlv' , required = False , nargs = 2 , default = [],
318
320
multiple = True , metavar = '[tag] [value]' ,
319
321
help = 'Custom TLV that will be placed into protected area. '
@@ -411,7 +413,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
411
413
endian , encrypt_keylen , encrypt , infile , outfile , dependencies ,
412
414
load_addr , hex_addr , erased_val , save_enctlv , security_counter ,
413
415
boot_record , custom_tlv , rom_fixed , max_align , clear , fix_sig ,
414
- fix_sig_pubkey , sig_out , vector_to_sign ):
416
+ fix_sig_pubkey , sig_out , vector_to_sign , non_bootable ):
415
417
416
418
if confirm :
417
419
# Confirmed but non-padded images don't make much sense, because
@@ -423,7 +425,8 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
423
425
max_sectors = max_sectors , overwrite_only = overwrite_only ,
424
426
endian = endian , load_addr = load_addr , rom_fixed = rom_fixed ,
425
427
erased_val = erased_val , save_enctlv = save_enctlv ,
426
- security_counter = security_counter , max_align = max_align )
428
+ security_counter = security_counter , max_align = max_align ,
429
+ non_bootable = non_bootable )
427
430
img .load (infile )
428
431
key = load_key (key ) if key else None
429
432
enckey = load_key (encrypt ) if encrypt else None
0 commit comments