summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2020-04-08 12:34:55 +0800
committerJi Luo <ji.luo@nxp.com>2020-05-18 09:45:08 +0800
commitb2af8d60551f0474014a91ac03d109e1fc40a52e (patch)
tree3a54cf4990613fd43ca1e3330abad67b9b42c5f4 /cmd
parent54781b897c4329f15937e58916a917d8197ec99b (diff)
MA-16877 Skip kernel hab authentication for android
Android use AVB to verify the kernel, hab authentication is not necessary for boot image. For imx8m, don't authenticate the kernel image when AVB (CONFIG_AVB_SUPPORT) is enabled. For imx8q, as android uses different 'CONFIG_EXTRA_ENV_SETTINGS' and 'CONFIG_BOOTCOMMAND' with linux bsp, so it won't try to do kernel hab authentication. by default. Test: boot imx8mp with "CONFIG_IMX_HAB" and imx8qxp with 'CONFIG_AHAB_BOOT'. Change-Id: I1b2087ce7d8f9795422a053b6b68a694c86f0b3d Signed-off-by: Ji Luo <ji.luo@nxp.com> (cherry picked from commit f907e4ac090e960ba5110b8039cccc4296841595)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/booti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/booti.c b/cmd/booti.c
index dbcd84a272..a132949091 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -42,7 +42,7 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
if (ret != 0)
return 1;
-#ifdef CONFIG_IMX_HAB
+#if defined(CONFIG_IMX_HAB) && !defined(CONFIG_AVB_SUPPORT)
extern int authenticate_image(
uint32_t ddr_start, uint32_t raw_image_size);
if (authenticate_image(ld, image_size) != 0) {