summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-06-20 20:09:07 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 18:02:52 +0800
commit44375ce44f45b7b9f6078bd35719511ce1ee990e (patch)
tree64087876735a8a4ce155c359f57f456e3c4f7340 /common
parent9356fdb1673075822ab90691c2da81935dcb11b5 (diff)
MLK-22078 romapi: Fix issue for stream mode with secure boot enabled
When download image through ROM API for stream mode (USB, eMMC fastboot). We uses tricky way to get the total image size: The spl_load_simple_fit is called but the data reading is invalid, so the image data is not really downloaded. We should not call HAB authenticate in this tricky way. Otherwise it will alway fail. This patch add a new flag SPL_FIT_BYPASS_POST_LOAD to skip the authentication only for this tricky using. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 47b0cf6de06ff9b3e2b2755d5c8203210378b26a) (cherry picked from commit 3e50573a7007771586e737b343bdde4d98c21c23) (cherry picked from commit 50ea462702262c65afbd1985d831edf16e47e212) (cherry picked from commit f1c7088597ea5a9d7172e2f0eb06348fb3beed5d) (cherry picked from commit 12859567e106cc47ab546c7aa059a4a4e0a0bb16)
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 967c20a452..26d3aff94a 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -852,7 +852,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
spl_image->flags |= SPL_FIT_FOUND;
- if (IS_ENABLED(CONFIG_IMX_HAB))
+ if (IS_ENABLED(CONFIG_IMX_HAB) && !(spl_image->flags & SPL_FIT_BYPASS_POST_LOAD))
board_spl_fit_post_load(ctx.fit);
return 0;