@@ -314,6 +314,8 @@ def convert(self, value, param, ctx):
314314
315315@click .argument ('outfile' )
316316@click .argument ('infile' )
317+ @click .option ('--non-bootable' , default = False , is_flag = True ,
318+ help = 'Mark the image as non-bootable.' )
317319@click .option ('--custom-tlv' , required = False , nargs = 2 , default = [],
318320 multiple = True , metavar = '[tag] [value]' ,
319321 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,
411413 endian , encrypt_keylen , encrypt , infile , outfile , dependencies ,
412414 load_addr , hex_addr , erased_val , save_enctlv , security_counter ,
413415 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 ):
415417
416418 if confirm :
417419 # 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,
423425 max_sectors = max_sectors , overwrite_only = overwrite_only ,
424426 endian = endian , load_addr = load_addr , rom_fixed = rom_fixed ,
425427 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 )
427430 img .load (infile )
428431 key = load_key (key ) if key else None
429432 enckey = load_key (encrypt ) if encrypt else None
0 commit comments