boards: get mac address from env and move load_sernum_ethaddr() to board init
[platform/kernel/u-boot.git] / net / Makefile
index 0eee330..d341874 100644 (file)
@@ -33,7 +33,7 @@ COBJS-y += bootp.o
 COBJS-y += rarp.o
 COBJS-y += eth.o
 COBJS-y += nfs.o
-COBJS-y += sntp.o
+COBJS-$(CONFIG_CMD_SNTP) += sntp.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)