diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2021-09-07 12:07:08 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-05 08:47:13 -0400 |
commit | f6953047cb99d50cca0dc73740337b08fbdc1bf8 (patch) | |
tree | a93d4555c5d65f5c3c4ba30b3dda2c15d048a140 /lib | |
parent | 1ab968b2fb1d63c49943450bfff14d18c0f54705 (diff) | |
download | u-boot-f6953047cb99d50cca0dc73740337b08fbdc1bf8.zip u-boot-f6953047cb99d50cca0dc73740337b08fbdc1bf8.tar.gz u-boot-f6953047cb99d50cca0dc73740337b08fbdc1bf8.tar.bz2 |
lib: optee: Remove CONFIG_OPTEE_LOAD_ADDR
This value is not used by u-boot, and it should not. The load address
of an OPTEE image is defined by said image. Either a uImage or a FIT
will have a defined load address and entry point. Those values are the
correct ones, not CONFIG_OPTEE_LOAD_ADDR.
Commit f25006b96e9f ("optee: Add CONFIG_OPTEE_LOAD_ADDR") justifies
this config by requiring its presence in u-boot's .config for other
images as part of a larger build, claiming it is "the best way".
This argument is not persuasive. U-boot's configuration is driven by
platform requirements, not the other way around. It seems more likely
that the argument is conflating tooling issues with Kconfig. Yocto and
buildroot have excellent mechanisms for defining values across the
board (pun intended). u-boot's Kconfig is the wrong place to do it.
Furthermore, it is not "best" for u-boot because it hardcodes a value
which is then not used. In fact the load address that u-boot uses is
the one derived from the OPTEE image.
Confused yet? I sure was. To prevent future confusion, remove
CONFIG_OPTEE_LOAD_ADDR.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optee/Kconfig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 3f8ce49..e6834d4 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -11,13 +11,6 @@ config OPTEE_IMAGE This option enable the OPTEE specific checks done before booting an OPTEE image created with mkimage -config OPTEE_LOAD_ADDR - hex "OPTEE load address" - default 0x00000000 - depends on OPTEE_LIB - help - The load address of the bootable OPTEE binary. - config OPTEE_TZDRAM_SIZE hex "Amount of Trust-Zone RAM for the OPTEE image" default 0x0000000 |