MLK-17086 bootm: Add authentication to optee image
authorYe Li <ye.li@nxp.com>
Tue, 5 Dec 2017 07:16:08 +0000 (01:16 -0600)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:07 +0000 (00:56 -0700)
commitf07032ce3d65137d873d9ae05d520bcaaf223ead
tree6bf548dae624995ae4f37c7c4d7b0a57920516e0
parentad189d55871634a7a52317d6e6aa8da7ae43f833
MLK-17086 bootm: Add authentication to optee image

When IMX_OPTEE is enabled for secure boot, update bootm to authenticate the optee
image and the kernel zImage before booting into optee.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit d3bee08f12f1d41c83c47773aec6cfa28056694a)
(cherry picked from commit 3825c3fedbbe59fdf8c4f59f10221823a5fc6f03)
(cherry picked from commit a09dca5eff735ef8ef46313de09cfa0f3b4cf189)
(cherry picked from commit c83877f5ad9385279c5db3d6ab78ed103d45d1d5)
(cherry picked from commit 0e492bffc2b4cc804e8db6c035bf9dd08fae6a95)
(cherry picked from commit 77f0447b4fa51ff2807f4b4508bcbfe72982e802)
cmd/bootm.c