]> git.sur5r.net Git - u-boot/blobdiff - net/Makefile
net: get mac address from environment and use eth util funcs
[u-boot] / net / Makefile
index d18460cab35195a525e2d56b876a778b8e8a0046..d3418742502e463c6ee96e8d342a3d127328b00b 100644 (file)
@@ -27,8 +27,15 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)libnet.a
 
-COBJS  = net.o tftp.o bootp.o rarp.o eth.o nfs.o sntp.o
-
+COBJS-y += net.o
+COBJS-y += tftp.o
+COBJS-y += bootp.o
+COBJS-y += rarp.o
+COBJS-y += eth.o
+COBJS-y += nfs.o
+COBJS-$(CONFIG_CMD_SNTP) += sntp.o
+
+COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))