summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2019-07-22 09:14:28 +0800
committerJi Luo <ji.luo@nxp.com>2019-07-25 20:15:05 +0800
commit22bad9224ec6b3932b72e49aeb0fa94644871156 (patch)
tree766aaf6657f7d64e56543e0a608da1ab429fd9f1 /common
parent2a43c3e702720fab67ae9af73634a958a1b62044 (diff)
MA-15180 Refine dual bootloader flow for imx8m
We may need to enable the dual bootloader feature on non-trusty platforms, skip the bootloader rollback index check in spl if trusty is not enabled. Don't generate rpmb key in spl, it should be generated in u-boot proper with u-boot commands. Test: dual bootloader on imx8mm. Change-Id: Iac455e0140cd6f4472a66d267d9ba0d40df7102c Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index e68b4b5551..423559cfbd 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -421,7 +421,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
return -1;
}
-#ifdef CONFIG_DUAL_BOOTLOADER
+#if defined(CONFIG_DUAL_BOOTLOADER) && defined(CONFIG_IMX_TRUSTY_OS)
int rbindex;
rbindex = spl_fit_get_rbindex(fit, images);
if (rbindex < 0) {