optee: Make TZDRAM config options contingent on CONFIG_OPTEE
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sat, 4 May 2019 00:08:23 +0000 (01:08 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 13:12:07 +0000 (15:12 +0200)
commit7e7cc90e33f556f047b469e48a41fc5c130df2d8
tree046067dc3bc55d2b2068cbd8de4e95504db91ce3
parentd99b018a6e3d861c698390740af617549e229af2
optee: Make TZDRAM config options contingent on CONFIG_OPTEE

Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for
dram") makes the TZDRAM defines for OPTEE show up for all configs as a
side-effect. While not harmful its not what we really want.

This patch makes the following defines contingent on CONFIG_OPTEE=y

CONFIG_OPTEE_TZDRAM_BASE
CONFIG_OPTEE_TZDRAM_SIZE

Rightly, if you don't have CONFIG_OPTEE=y you don't care about the above
two defines.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Rui Miguel Silva <rui.silva@linaro.org>
Acked-by: Rui Miguel Silva <rui.silva@linaro.org>
lib/optee/Kconfig