[U-Boot] [PATCH] FIX : IMX - command for validateion of images.

By defining CONFIG_SECURE_BOOT we made verify_header function available to use which is invoked by esbc_validate command.
IMX platforms define only CONFIG_SECURE_BOOT and not cmd_esbc_validate and hence build will be break.
In file included from /home/ulises/Security/Secure/u-boot-imx/include/fsl_validate.h:11:0, from /home/ulises/Security/Secure/u-boot-imx/board/freescale/common/fsl_validate.c:8: /home/ulises/Security/Secure/u-boot-imx/include/fsl_sec_mon.h:27:2: error: #error Neither CONFIG_SYS_FSL_SEC_MON_LE nor CONFIG_SYS_FSL_SEC_MON_BE defined #error Neither CONFIG_SYS_FSL_SEC_MON_LE nor CONFIG_SYS_FSL_SEC_MON_BE defined ^ In file included from /home/ulises/Security/Secure/u-boot-imx/board/freescale/common/fsl_validate.c:10:0: /home/ulises/Security/Secure/u-boot-imx/include/fsl_sfp.h:29:2: error: #error Neither CONFIG_SYS_FSL_SFP_LE nor CONFIG_SYS_FSL_SFP_BE is defined #error Neither CONFIG_SYS_FSL_SFP_LE nor CONFIG_SYS_FSL_SFP_BE is defined ^ /home/ulises/Security/Secure/u-boot-imx/board/freescale/common/fsl_validate.c:19:36: fatal error: asm/arch/immap_ls102xa.h: No such file or directory #include <asm/arch/immap_ls102xa.h> ^ compilation terminated. AS arch/arm/lib/vectors.o /home/ulises/Security/Secure/u-boot-imx/scripts/Makefile.build:276: recipe for target 'board/freescale/common/fsl_validate.o' failed make[2]: *** [board/freescale/common/fsl_validate.o] Error 1 /home/ulises/Security/Secure/u-boot-imx/Makefile:1112: recipe for target 'board/freescale/common' failed make[1]: *** [board/freescale/common] Error 2 make[1]: *** Waiting for unfinished jobs....
Signed-off-by: Gaurav Rana gaurav.rana@freescale.com --- board/freescale/common/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile index 7181cac..87d0578 100644 --- a/board/freescale/common/Makefile +++ b/board/freescale/common/Makefile @@ -74,8 +74,7 @@ obj-$(CONFIG_P5040DS) += p_corenet/ obj-$(CONFIG_LS102XA_NS_ACCESS) += ns_access.o
ifdef CONFIG_SECURE_BOOT -obj-y += fsl_validate.o -obj-$(CONFIG_CMD_ESBC_VALIDATE) += cmd_esbc_validate.o +obj-$(CONFIG_CMD_ESBC_VALIDATE) += fsl_validate.o cmd_esbc_validate.o endif
endif
participants (1)
-
Gaurav Rana