summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-06-20 20:09:07 -0700
committerYe Li <ye.li@nxp.com>2019-06-21 00:50:21 -0700
commit47b0cf6de06ff9b3e2b2755d5c8203210378b26a (patch)
tree008ca6626e7ce3bb9b34cae3c1aaf0cb87239ec2 /include
parente74561bcaa67e11ed5889959ab22afb5a9885c82 (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>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 199ce33e7f..efb58337d9 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -81,6 +81,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
#define SPL_COPY_PAYLOAD_ONLY 1
#define SPL_FIT_FOUND 2
+#define SPL_FIT_BYPASS_POST_LOAD 4
/* SPL common functions */
void preloader_console_init(void);