From: Bryan O'Donoghue Date: Tue, 13 Mar 2018 16:50:30 +0000 (+0000) Subject: optee: Add CONFIG_OPTEE_LOAD_ADDR X-Git-Tag: v2018.05-rc1~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f25006b96e9f6b9b8688ec8e4bc8a87dc1f1479d;p=oweals%2Fu-boot.git optee: Add CONFIG_OPTEE_LOAD_ADDR 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 Reviewed-by: Ryan Harkin --- diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index a3b7332174..cc73ec3fb5 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