path: root/board/freescale/mx51evk/Makefile
diff options
authorVikram Narayanan <>2012-11-10 02:28:52 +0000
committerAnatolij Gustschin <>2012-11-14 14:05:35 +0100
commit5d71bd210ff3ab5b510071cae7ed1ea51ba9e0ca (patch)
treecb032edb25c7c35d250572213e0b7d974c2dc7b2 /board/freescale/mx51evk/Makefile
parent4a1921eb04fa83acbab60fc0219e48e85dbc2f74 (diff)
mx51evk: Fix build error when CONFIG_VIDEO is disabled
The inclusion of LCD patch into mx51evk breaks the build when CONFIG_VIDEO is disabled. Fix this by splitting the video related stuff to a new file. Also rename the function lcd_iomux to setup_iomux_lcd to make the namings aligned with the other iomux functions. Signed-off-by: Vikram Narayanan <> Signed-off-by: Anatolij Gustschin <> Cc: Fabio Estevam <> Cc: Stefano Babic <>
Diffstat (limited to 'board/freescale/mx51evk/Makefile')
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/mx51evk/Makefile b/board/freescale/mx51evk/Makefile
index 224eaa3c73..2310fe137d 100644
--- a/board/freescale/mx51evk/Makefile
+++ b/board/freescale/mx51evk/Makefile
@@ -23,8 +23,10 @@ include $(TOPDIR)/
LIB = $(obj)lib$(BOARD).o
-COBJS := mx51evk.o
+COBJS-y += mx51evk.o
+COBJS-$(CONFIG_VIDEO) += mx51evk_video.o
+COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
OpenPOWER on IntegriCloud