imx8m: Guard binman nodes with CONFIG_OPTEE
authorFabio Estevam <festevam@denx.de>
Fri, 17 Jan 2025 01:56:42 +0000 (22:56 -0300)
committerFabio Estevam <festevam@gmail.com>
Mon, 20 Jan 2025 11:41:01 +0000 (08:41 -0300)
commit252ad9890d56d77908ac112f025216c4750f8239
tree6dc8e56c2fa9e806b3e5d29457e170dfdbcbfd7d
parente6df2f5e22c6710a818899f4be9f2df02574e44b
imx8m: Guard binman nodes with CONFIG_OPTEE

Guard binman nodes with CONFIG_OPTEE to fix the following error
when building without optee support:

  BINMAN  .binman_stamp
Image 'image' has faked external blobs and is non-functional: tee.bin

Image 'image' is missing optional external blobs but is still functional: tee-os

/binman/section/fit/images/tee/tee-os (tee.bin):
   See the documentation for your board. You may need to build Open Portable
   Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin

Some images are invalid
make: *** [Makefile:1135: .binman_stamp] Error 103

While at it, only pass tee to the loadables lines when CONFIG_OPTEE is
defined.

Reported-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Yannic Moog <y.moog@phytec.de>
arch/arm/dts/imx8mm-u-boot.dtsi
arch/arm/dts/imx8mn-u-boot.dtsi
arch/arm/dts/imx8mp-u-boot.dtsi
arch/arm/dts/imx8mq-u-boot.dtsi