mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
net/sntp.c: move ifdef into Makefile COBJS-$(...)
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
committed by
Ben Warren
parent
9e5be8214b
commit
638ed3e296
@@ -33,7 +33,7 @@ COBJS-y += bootp.o
|
|||||||
COBJS-y += rarp.o
|
COBJS-y += rarp.o
|
||||||
COBJS-y += eth.o
|
COBJS-y += eth.o
|
||||||
COBJS-y += nfs.o
|
COBJS-y += nfs.o
|
||||||
COBJS-y += sntp.o
|
COBJS-$(CONFIG_CMD_SNTP) += sntp.o
|
||||||
|
|
||||||
COBJS := $(COBJS-y)
|
COBJS := $(COBJS-y)
|
||||||
SRCS := $(COBJS:.o=.c)
|
SRCS := $(COBJS:.o=.c)
|
||||||
|
@@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
#include "sntp.h"
|
#include "sntp.h"
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP)
|
|
||||||
|
|
||||||
#define SNTP_TIMEOUT 10000UL
|
#define SNTP_TIMEOUT 10000UL
|
||||||
|
|
||||||
static int SntpOurPort;
|
static int SntpOurPort;
|
||||||
@@ -88,5 +86,3 @@ SntpStart (void)
|
|||||||
|
|
||||||
SntpSend ();
|
SntpSend ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user