utils/genrandconfig: Add optee-os custom tarball handler
PATCH 1/1 utils/genrandconfig: Add optee-os custom tarball handler
From: Kory Maincent <[email protected]>
Add a handler to make sure that a random configuration with empty tarball location doesn't fail. It reverts to BR2_TARGET_OPTEE_OS_LATEST in that case.
Signed-off-by Kory Maincent <[email protected]>
--- utils/genrandconfig | 7 +++++++ 1 file changed, 7 insertions(+)
utils/genrandconfig +7 -0
@@ -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')
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 10 lines · On Wed, 29 Jun 2022 09:55:59 +0200 Köry Maincent via buildroot…
From: Kory Maincent <[email protected]>
Add a handler to make sure that a random configuration with empty tarball location doesn't fail. It reverts to
BR2_TARGET_OPTEE_OS_LATESTin that case.Signed-off-by Kory Maincent <[email protected]>--- utils/genrandconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to master with a slightly tweaked commit message. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot