summaryrefslogtreecommitdiff
path: root/board/sc520_cdp/Makefile
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2009-08-23 12:59:57 +1000
committerWolfgang Denk <wd@denx.de>2009-09-04 21:57:22 +0200
commitf50b619d9cb297b0125fe78dcd6f255eb0d91659 (patch)
tree01683f12f8c3b47b55784f25bad85c1dabc1ec21 /board/sc520_cdp/Makefile
parented7a1b681de1e31d18d5b92e2767ae8df3241687 (diff)
downloadu-boot-imx-f50b619d9cb297b0125fe78dcd6f255eb0d91659.zip
u-boot-imx-f50b619d9cb297b0125fe78dcd6f255eb0d91659.tar.gz
u-boot-imx-f50b619d9cb297b0125fe78dcd6f255eb0d91659.tar.bz2
i386: Moved PCI from #ifdef to conditional compile for sc520 boards
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'board/sc520_cdp/Makefile')
-rw-r--r--board/sc520_cdp/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/board/sc520_cdp/Makefile b/board/sc520_cdp/Makefile
index 0d2800d..7944a01 100644
--- a/board/sc520_cdp/Makefile
+++ b/board/sc520_cdp/Makefile
@@ -28,12 +28,14 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := sc520_cdp.o flash.o
-SOBJS := sc520_cdp_asm.o sc520_cdp_asm16.o
-
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
-SOBJS := $(addprefix $(obj),$(SOBJS))
+COBJS-y += sc520_cdp.o
+COBJS-y += flash.o
+COBJS-$(CONFIG_PCI) += sc520_cdp_pci.o
+SOBJS-y += sc520_cdp_asm.o
+SOBJS-y += sc520_cdp_asm16.o
+
+SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)