summaryrefslogtreecommitdiff
path: root/cpu/arm920t/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-06-23 00:12:01 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-07-06 21:52:30 +0200
commit798bf9a9ade1cfbe85a16d180cad720927d8e10a (patch)
treecbc48de57fa5a96795cd902f17a73baf74a4556c /cpu/arm920t/Makefile
parent06e758e75c79ce8761866bf8165c443584a20893 (diff)
downloadu-boot-imx-798bf9a9ade1cfbe85a16d180cad720927d8e10a.zip
u-boot-imx-798bf9a9ade1cfbe85a16d180cad720927d8e10a.tar.gz
u-boot-imx-798bf9a9ade1cfbe85a16d180cad720927d8e10a.tar.bz2
arm920t/interrupts: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm920t/Makefile')
-rw-r--r--cpu/arm920t/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/arm920t/Makefile b/cpu/arm920t/Makefile
index e02bc6a..cbb13b2 100644
--- a/cpu/arm920t/Makefile
+++ b/cpu/arm920t/Makefile
@@ -26,10 +26,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a
START = start.o
-COBJS = cpu.o interrupts.o
-SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
+COBJS-y += cpu.o
+COBJS-$(CONFIG_USE_IRQ) += interrupts.o
+
+SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
START := $(addprefix $(obj),$(START))
all: $(obj).depend $(START) $(LIB)