]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/armv7/omap3/Makefile
AM35xx: add EMAC support
[u-boot] / arch / arm / cpu / armv7 / omap3 / Makefile
index 7d63c6beca879ffc16cd0987a0b8cb0c1c12e430..6ebfd327e1f7948e358078a61408a021320e100a 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    =  $(obj)lib$(SOC).a
+LIB    =  $(obj)lib$(SOC).o
 
 SOBJS  := lowlevel_init.o
-SOBJS  += cache.o
-SOBJS  += reset.o
 
 COBJS  += board.o
 COBJS  += clock.o
-COBJS  += gpio.o
 COBJS  += mem.o
-COBJS  += syslib.o
 COBJS  += sys_info.o
-COBJS  += timer.o
 
+COBJS-$(CONFIG_DRIVER_TI_EMAC) += emac.o
 COBJS-$(CONFIG_EMIF4)  += emif4.o
 COBJS-$(CONFIG_SDRC)   += sdrc.o
 
@@ -46,7 +42,7 @@ OBJS  := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
 all:    $(obj).depend $(LIB)
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################