diff mbox series

[U-Boot,v6,04/10] optee: Add CONFIG_OPTEE_LOAD_ADDR

Message ID 1520959836-16105-5-git-send-email-bryan.odonoghue@linaro.org
State Accepted
Delegated to: Tom Rini
Headers show
Series Add new OPTEE bootm support to u-boot | expand

Commit Message

Bryan O'Donoghue March 13, 2018, 4:50 p.m. UTC
CONFIG_OPTEE_LOAD_ADDR is used to tell u-boot where to load the OPTEE
binary into memory prior to handing off control to OPTEE.

We need to pull this value out of u-boot in order to produce an IMX IVT/CSF
signed pair for the purposes of secure boot. The best way to do that is to
have CONFIG_OPTEE_LOAD_ADDR appear in u-boot.cfg.

Adding new CONFIG entires to u-boot should be kconfig driven so this patch
does just that.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
---
 lib/optee/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini March 19, 2018, 10:36 p.m. UTC | #1
On Tue, Mar 13, 2018 at 04:50:30PM +0000, Bryan O'Donoghue wrote:

> CONFIG_OPTEE_LOAD_ADDR is used to tell u-boot where to load the OPTEE
> binary into memory prior to handing off control to OPTEE.
> 
> We need to pull this value out of u-boot in order to produce an IMX IVT/CSF
> signed pair for the purposes of secure boot. The best way to do that is to
> have CONFIG_OPTEE_LOAD_ADDR appear in u-boot.cfg.
> 
> Adding new CONFIG entires to u-boot should be kconfig driven so this patch
> does just that.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig
index a3b7332..cc73ec3 100644
--- a/lib/optee/Kconfig
+++ b/lib/optee/Kconfig
@@ -7,6 +7,12 @@  config OPTEE
           OPTEE specific checks before booting an OPTEE image created with
           mkimage.
 
+config OPTEE_LOAD_ADDR
+	hex "OPTEE load address"
+	default 0x00000000
+	help
+	  The load address of the bootable OPTEE binary.
+
 config OPTEE_TZDRAM_SIZE
 	hex "Amount of Trust-Zone RAM for the OPTEE image"
 	depends on OPTEE