Build: change CONFIG_NSOCKET_DESCRIPTORS to CONFIG_NET in Makefile
authorEunBong Song <eunb.song@samsung.com>
Fri, 14 Jul 2017 09:01:11 +0000 (02:01 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:44 +0000 (21:15 -0700)
ifeq ($(CONFIG_NSOCKET_DESCRIPTORS), xx) does not work properly because
CONFIG_NSOCKET_DESCRIPTORS is defined automatically to zero when CONFIG_NET
is disable. So this should be changed to compare with CONFIG_NET.

Change-Id: I4d8acec4a71f01d6065b001b5a154c018891d671
Signed-off-by: EunBong Song <eunb.song@samsung.com>
lib/libc/misc/Make.defs
os/fs/vfs/Make.defs

index 27a6a52..b22d085 100644 (file)
@@ -69,7 +69,7 @@ CSRCS += lib_ioctl.c
 endif
 
 else
-ifneq ($(CONFIG_NSOCKET_DESCRIPTORS),0)
+ifeq ($(CONFIG_NET),y)
 
 CSRCS += lib_sendfile.c
 
index c425591..9582a26 100644 (file)
@@ -54,7 +54,7 @@
 # logic in this directory may still apply to socket descriptors
 
 ifeq ($(CONFIG_NFILE_DESCRIPTORS),0)
-ifneq ($(CONFIG_NSOCKET_DESCRIPTORS),0)
+ifeq ($(CONFIG_NET),y)
 
 # Socket descriptor support