]> git.sur5r.net Git - u-boot/blobdiff - cpu/arm920t/s3c24x0/Makefile
S3C24x0: extract interrupts from timer
[u-boot] / cpu / arm920t / s3c24x0 / Makefile
index 5d2be2c1b294ddc851115c0a53e217163cca2ed8..7e8d6ed5f2f9e0872daea1501dc4851379561759 100644 (file)
@@ -25,13 +25,15 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(SOC).a
 
-COBJS  += speed.o
-COBJS  += timer.o
-COBJS  += usb.o
-COBJS  += usb_ohci.o
+COBJS-$(CONFIG_USE_IRQ) += interrupts.o
+COBJS-y        += speed.o
+COBJS-y        += timer.o
+COBJS-y        += usb.o
+COBJS-y        += usb_ohci.o
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
 
 all:   $(obj).depend $(LIB)