utils/genrandconfig: add optee-os custom tarball handling
Add a custom case to make sure that a random configuration with an empty tarball location for OP-TEE OS doesn't fail. It reverts to BR2_TARGET_OPTEE_OS_LATEST in that case. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
05f559bacc
commit
d780b828fc
@ -463,6 +463,13 @@ def fixup_config(sysinfo, configfile):
|
||||
configlines.remove('BR2_TARGET_BAREBOX_USE_DEFCONFIG=y\n')
|
||||
configlines.remove('BR2_TARGET_BAREBOX_BOARD_DEFCONFIG=""\n')
|
||||
|
||||
if 'BR2_TARGET_OPTEE_OS=y\n' in configlines and \
|
||||
'BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL=y\n' in configlines and \
|
||||
'BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL_LOCATION=""\n' in configlines:
|
||||
configlines.remove('BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL=y\n')
|
||||
configlines.append('BR2_TARGET_OPTEE_OS_LATEST=y\n')
|
||||
configlines.remove('BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL_LOCATION=""\n')
|
||||
|
||||
if 'BR2_TARGET_OPTEE_OS=y\n' in configlines and \
|
||||
'BR2_TARGET_OPTEE_OS_PLATFORM=""\n' in configlines:
|
||||
configlines.remove('BR2_TARGET_OPTEE_OS=y\n')
|
||||
|
Loading…
Reference in New Issue
Block a user