]> git.sur5r.net Git - u-boot/commitdiff
iMX: Fix compilation error when enabling SECURE_BOOT
authorgaurav rana <gaurav.rana@freescale.com>
Mon, 6 Apr 2015 07:35:33 +0000 (13:05 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 22 Apr 2015 14:02:46 +0000 (16:02 +0200)
Move the compilation of file fsl_validate.c in MACRO CONFIG_CMD_ESBC_VALIDATE.
This file should be compiled only when the above MACRO is defined

This caused a break in compilation of iMX platforms when compiling for SECURE_BOOT

Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
board/freescale/common/Makefile

index 7181cac291d3e44e35514f33c1502d2359899708..87d05780fe08701d6a36fa0f6b146b791c0fc35c 100644 (file)
@@ -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