From: gaurav rana Date: Mon, 6 Apr 2015 07:35:33 +0000 (+0530) Subject: iMX: Fix compilation error when enabling SECURE_BOOT X-Git-Tag: KARO-TX6-2015-09-18~3032 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=41cbdecd9dce87b736c0ed1c9f886c3fec8823f2;p=karo-tx-uboot.git iMX: Fix compilation error when enabling SECURE_BOOT 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 --- diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile index 7181cac291..87d05780fe 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