net/sntp.c: move ifdef into Makefile COBJS-$(...)
PATCH 1/1 net/sntp.c: move ifdef into Makefile COBJS-$(...)
Signed-off-by Mike Frysinger <[email protected]>
CC Ben Warren <[email protected]>
--- net/Makefile | 2 +- net/sntp.c | 4 ---- 2 files changed, 1 insertions(+), 5 deletions(-)
net/Makefile +1 -1
@@ -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)
net/sntp.c +0 -4
@@ -12,8 +12,6 @@#include "sntp.h" -#if defined(CONFIG_CMD_NET ) && defined(CONFIG_CMD_SNTP ) -#define SNTP_TIMEOUT 10000ULstatic int SntpOurPort;
@@ -88,5 +86,3 @@ SntpStart (void)SntpSend (); } - -#endif
Signature · 1 line
1.6.1.2
Ben Warren
AppliedPATCH 1/1 net/sntp.c: move ifdef into Makefile COBJS-$(...)
Hi Mike,
Quoted 7 lines · Mike Frysinger
Signed-off-by Mike Frysinger <[email protected]>CC Ben Warren <[email protected]>--- net/Makefile | 2 +- net/sntp.c | 4 ---- 2 files changed, 1 insertions(+), 5 deletions(-)
Applied to net repo.
thanks,
Ben