summaryrefslogtreecommitdiff
path: root/board/sc520_spunk/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_spunk/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_spunk/Makefile')
-rw-r--r--board/sc520_spunk/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/board/sc520_spunk/Makefile b/board/sc520_spunk/Makefile
index e04172e..06fa2f3 100644
--- a/board/sc520_spunk/Makefile
+++ b/board/sc520_spunk/Makefile
@@ -28,12 +28,14 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := sc520_spunk.o flash.o
-SOBJS := sc520_spunk_asm.o sc520_spunk_asm16.o
-
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
-SOBJS := $(addprefix $(obj),$(SOBJS))
+COBJS-y += sc520_spunk.o
+COBJS-y += flash.o
+COBJS-$(CONFIG_PCI) += sc520_spunk_pci.o
+SOBJS-y += sc520_spunk_asm.o
+SOBJS-y += sc520_spunk_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)