tee: Rework Makefile logic
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:31:44 +0000 (09:31 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 14 Oct 2025 07:42:27 +0000 (10:42 +0300)
commit398f988410c94e95b49fe6679d8d848d2a09835a
tree1191b25efdc297ee2d2759702e6906d0ac66292e
parent038ca2c803cd0f51dad7ebd1d3da96118fb67056
tee: Rework Makefile logic

The intention of how this Makefile was written was to allow for sandbox
to build and test drivers still while otherwise requiring OPTEE to be
enabled. This however didn't work quite right in practice as sandbox
could enable some drivers which would then fail to link. Rework things
such that sandbox will also traverse the optee directory when
SANDBOX_TEE is enabled, but only build one of the optee-specific files
when OPTEE is enabled.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tee/Makefile
drivers/tee/optee/Makefile