@@ -370,6 +370,8 @@ def convert(self, value, param, ctx):
370
370
help = 'Enable image compression using specified type. '
371
371
'Will fall back without image compression automatically '
372
372
'if the compression increases the image size.' )
373
+ @click .option ('--skip-encryption' , default = False , is_flag = True ,
374
+ help = 'Set encryption flags and TLV\' s without applying encryption.' )
373
375
@click .option ('-c' , '--clear' , required = False , is_flag = True , default = False ,
374
376
help = 'Output a non-encrypted image with encryption capabilities,'
375
377
'so it can be installed in the primary slot, and encrypted '
@@ -449,7 +451,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
449
451
dependencies , load_addr , hex_addr , erased_val , save_enctlv ,
450
452
security_counter , boot_record , custom_tlv , rom_fixed , max_align ,
451
453
clear , fix_sig , fix_sig_pubkey , sig_out , user_sha , is_pure ,
452
- vector_to_sign , non_bootable ):
454
+ vector_to_sign , non_bootable , skip_encryption ):
453
455
454
456
if confirm :
455
457
# Confirmed but non-padded images don't make much sense, because
@@ -462,7 +464,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
462
464
endian = endian , load_addr = load_addr , rom_fixed = rom_fixed ,
463
465
erased_val = erased_val , save_enctlv = save_enctlv ,
464
466
security_counter = security_counter , max_align = max_align ,
465
- non_bootable = non_bootable )
467
+ non_bootable = non_bootable , skip_encryption = skip_encryption )
466
468
compression_tlvs = {}
467
469
img .load (infile )
468
470
key = load_key (key ) if key else None
0 commit comments