summaryrefslogtreecommitdiff
path: root/board/armltd/integratorap/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-05-17 00:58:36 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-06-23 00:10:03 +0200
commit86baa085c52a7f3377a88074679c5aca9b9e4d38 (patch)
tree3fe56c895ab15d35918ebbc018087d52df096e0b /board/armltd/integratorap/Makefile
parent379e9fc0a319b8f6ae16d763590bf023f3afb87c (diff)
downloadu-boot-imx-86baa085c52a7f3377a88074679c5aca9b9e4d38.zip
u-boot-imx-86baa085c52a7f3377a88074679c5aca9b9e4d38.tar.gz
u-boot-imx-86baa085c52a7f3377a88074679c5aca9b9e4d38.tar.bz2
integratorap: split pci support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Peter Pearse <peter.pearse@arm.com>
Diffstat (limited to 'board/armltd/integratorap/Makefile')
-rw-r--r--board/armltd/integratorap/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/board/armltd/integratorap/Makefile b/board/armltd/integratorap/Makefile
index 79f501a..a6193c7 100644
--- a/board/armltd/integratorap/Makefile
+++ b/board/armltd/integratorap/Makefile
@@ -29,18 +29,21 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := integratorap.o flash.o
-SOBJS := lowlevel_init.o
+SOBJS-y := lowlevel_init.o
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
-SOBJS := $(addprefix $(obj),$(SOBJS))
+COBJS-y := integratorap.o
+COBJS-y += flash.o
+COBJS-$(CONFIG_PCI) += pci.o
-$(LIB): $(obj).depend $(OBJS) $(SOBJS)
- $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+COBJS := $(addprefix $(obj),$(COBJS-y))
+SOBJS := $(addprefix $(obj),$(SOBJS-y))
+
+$(LIB): $(obj).depend $(COBJS) $(SOBJS)
+ $(AR) $(ARFLAGS) $@ $(COBJS) $(SOBJS)
clean:
- rm -f $(SOBJS) $(OBJS)
+ rm -f $(SOBJS) $(COBJS)
distclean: clean
rm -f $(LIB) core *.bak $(obj).depend