diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-01-31 08:53:44 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-01-31 10:16:01 +0100 |
commit | 012d5bab09a534e4800b02f50cf508e6837202ea (patch) | |
tree | d4d83a434075c8a4edcb96d021f6f3213aaa9e0d /cpu/ixp/Makefile | |
parent | f693f501d67434df1f815fd1824a71973ae08207 (diff) | |
download | u-boot-imx-012d5bab09a534e4800b02f50cf508e6837202ea.zip u-boot-imx-012d5bab09a534e4800b02f50cf508e6837202ea.tar.gz u-boot-imx-012d5bab09a534e4800b02f50cf508e6837202ea.tar.bz2 |
ixp: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/ixp/Makefile')
-rw-r--r-- | cpu/ixp/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpu/ixp/Makefile b/cpu/ixp/Makefile index e1fb327..afa972a 100644 --- a/cpu/ixp/Makefile +++ b/cpu/ixp/Makefile @@ -26,10 +26,16 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(CPU).a START = start.o -COBJS = serial.o interrupts.o cpu.o timer.o pci.o - -SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) +COBJS-y += cpu.o +COBJS-y += interrupts.o +COBJS-$(CONFIG_PCI) += pci.o +COBJS-y += serial.o +ifndef CONFIG_USE_IRQ +COBJS-y += timer.o +endif + +SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) START := $(addprefix $(obj),$(START)) all: $(obj).depend $(START) $(LIB) |