Skip to contentSkip to conversation

utils/genrandconfig: Add optee-os custom tarball handler

PATCH Applied Köry Maincent via buildroot 1 participant 2 messages Jun 29, 2022 – Jul 6, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 utils/genrandconfig | 7 +++++++
 1 file changed, 7 insertions(+)
utils/genrandconfig +7 -0
index 6f748fa709..75757917c2 100755
@@ -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
#1 lore raw
Quoted 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_LATEST in that case.

---
 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