summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/parse-container.c
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2022-05-24 17:02:56 +0800
committerJi Luo <ji.luo@nxp.com>2022-05-25 12:00:49 +0800
commit587c0e19a32ac49e681c8e05926e10cb9a9a43a7 (patch)
tree867a0313c67fa75d491b019e3ab63dd4f52fa0f6 /arch/arm/mach-imx/parse-container.c
parent6c10cfe481c32cec642a2e09a8cece25982915aa (diff)
MA-20303-1 Support rollback index check for single bootloader
Add support to check the rollback index of next stage images (ATF, TEE, u-boot proper) in SPL to harden the security. And because there is no backup bootloader image to fall back to so the board would hang in SPL if rollback index is rejected. Change-Id: I4c7d1f084dd5b3d37899a9e4c4755c03145542c7 Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/parse-container.c')
-rw-r--r--arch/arm/mach-imx/parse-container.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c
index 503d2cf796..334fe3b12e 100644
--- a/arch/arm/mach-imx/parse-container.c
+++ b/arch/arm/mach-imx/parse-container.c
@@ -139,8 +139,7 @@ static int read_auth_container(struct spl_image_info *spl_image,
}
}
-#if defined(CONFIG_SPL_BUILD) && \
- defined(CONFIG_DUAL_BOOTLOADER) && defined(CONFIG_IMX_TRUSTY_OS)
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX_TRUSTY_OS)
/* Everything checks out, get the sw_version now. */
spl_image->rbindex = (uint64_t)container->sw_version;
#endif