tf-a-stm32mp: fix set_fip_sign_key() to obtain the key password
This commit fixes the set_fip_sign_key() function to match the new keys format where there is a key_pass file for each key, no longer needing to search with the key index. Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
4b4d4b5a6b
commit
4b98b3f49e
|
|
@ -44,12 +44,9 @@ python set_fip_sign_key() {
|
|||
passfile = d.getVar('TRUSTFENCE_PASSWORD_FILE')
|
||||
if (os.path.isfile(passfile)):
|
||||
with open(passfile, "r") as file:
|
||||
p = file.read().split()
|
||||
i = int(d.getVar('TRUSTFENCE_KEY_INDEX'))
|
||||
if (i > 7):
|
||||
i = 0
|
||||
p = file.read().strip()
|
||||
if (p):
|
||||
d.setVar('FIP_SIGN_KEY_PASS', p[i])
|
||||
d.setVar('FIP_SIGN_KEY_PASS', p)
|
||||
}
|
||||
|
||||
do_deploy:append() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue