[U-Boot] "optee" Kbuild seems to have weird dependencies
Robert P. J. Day
rpjday at crashcourse.ca
Thu Apr 18 20:19:09 UTC 2019
going over the u-boot.cfg generated from zynq_zed_defconfig, and
noticed the following:
#define CONFIG_OPTEE_TZDRAM_BASE 0x00000000
#define CONFIG_OPTEE_TZDRAM_SIZE 0x0000000
i thought that was strange as CONFIG_OPTEE was not selected, so i
checked, and here's the relevant snippet from lib/optee/Kconfig:
bool "Support OPTEE images"
U-Boot can be configured to boot OPTEE images.
Selecting this option will enable shared OPTEE library code and
enable an OPTEE specific bootm command that will perform additional
OPTEE specific checks before booting an OPTEE image created with
hex "Amount of Trust-Zone RAM for the OPTEE image"
The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE
hex "Base address of Trust-Zone RAM for the OPTEE image"
The base address of pre-allocated Trust Zone DRAM for
the OPTEE runtime.
those two Kbuild directives are (strangely?) not dependent on OPTEE,
which is why they show up in u-boot.cfg. is this deliberate? i know
nothing about TEE, but it seems odd that OPTEE-related settings don't
depend on OPTEE.
am i misreading something?
p.s. the MAINTAINERS entry for TEE seems incomplete as well:
M: Jens Wiklander <jens.wiklander at linaro.org>
one suspects that should include, at the very least:
More information about the U-Boot