From: "Köry Maincent via buildroot" <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Kory Maincent <kory.maincent@bootlin.com>
Subject: [Buildroot] [PATCH] utils/genrandconfig: Add optee-os custom tarball handler
Date: Wed, 29 Jun 2022 09:55:59 +0200 [thread overview]
Message-ID: <20220629075600.1506639-1-kory.maincent@bootlin.com> (raw)
From: Kory Maincent <kory.maincent@bootlin.com>
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 <kory.maincent@bootlin.com>
---
utils/genrandconfig | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 6f748fa709..75757917c2 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -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')
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2022-06-29 7:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 7:55 Köry Maincent via buildroot [this message]
2022-07-06 21:38 ` [Buildroot] [PATCH] utils/genrandconfig: Add optee-os custom tarball handler Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220629075600.1506639-1-kory.maincent@bootlin.com \
--to=buildroot@buildroot.org \
--cc=kory.maincent@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.