]> Git Repo - buildroot-mgba.git/commitdiff
utils/genrandconfig: add optee-os custom tarball handling
authorKory Maincent <[email protected]>
Wed, 29 Jun 2022 07:55:59 +0000 (09:55 +0200)
committerThomas Petazzoni <[email protected]>
Wed, 6 Jul 2022 21:36:34 +0000 (23:36 +0200)
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 <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
utils/genrandconfig

index 6f748fa7097367d91c25262b26898eb2f6b2ad59..75757917c20e1c063edc02ea29aad391ac8cb5d1 100755 (executable)
@@ -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')
This page took 0.034507 seconds and 4 git commands to generate.