diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-01-11 08:59:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-12 16:26:02 +0100 |
commit | dbe8120e8552ffeb382804f51bc9d19a99220a58 (patch) | |
tree | 3b4ae9d7e0a96dd9f727ca14f39e4ae39e83a074 /common | |
parent | 54ef7bc589eb795e267439849cd05893e34f45b1 (diff) | |
download | barebox-dbe8120e8552ffeb382804f51bc9d19a99220a58.tar.gz barebox-dbe8120e8552ffeb382804f51bc9d19a99220a58.tar.xz |
common: add new CONFIG_HAVE_OPTEE symbol
We have two methods of loading a trusted OS: The legacy, but generic,
way of doing it in barebox proper during bootm and the new way of doing
it in prebootloader to reduce attack surface as much as possible by
running barebox proper completely in normal world.
Add a new CONFIG_HAVE_OPTEE symbol that is selected in both cases, so
code can use just that instead of checking for both.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230111075940.922817-7-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig index 19cd793110..e2b810c39c 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1119,11 +1119,14 @@ config EXTERNAL_DTS_FRAGMENTS menu "OP-TEE loading" +config HAVE_OPTEE + bool + config OPTEE_SIZE hex default 0x02000000 prompt "OP-TEE Memory Size" - depends on BOOTM_OPTEE || PBL_OPTEE + depends on HAVE_OPTEE help Size to reserve in main memory for OP-TEE. Can be smaller than the actual size used by OP-TEE, this is used to prevent @@ -1133,6 +1136,7 @@ config BOOTM_OPTEE bool prompt "support booting OP-TEE" depends on BOOTM && ARM + select HAVE_OPTEE help OP-TEE is a trusted execution environment (TEE). With this option enabled barebox supports starting optee_os as part of the bootm command. @@ -1144,6 +1148,7 @@ config PBL_OPTEE bool "Enable OP-TEE early start" depends on ARM depends on !THUMB2_BAREBOX + select HAVE_OPTEE help Allows starting OP-TEE during lowlevel initialization of the PBL. Requires explicit support in the board's lowlevel file. |