summaryrefslogtreecommitdiff
path: root/components/net/sal_socket/SConscript
diff options
context:
space:
mode:
authorchenyong <[email protected]>2018-08-27 19:50:37 +0800
committerchenyong <[email protected]>2018-08-27 19:50:37 +0800
commit6d702e579f533179e5b158a5daae6a6e78ca2d70 (patch)
tree5136c29fb8ab6d35820bd1110d17493a0cd01614 /components/net/sal_socket/SConscript
parent2d894b41026e4253efd3a60184c3e5e0c17d6883 (diff)
[net][sal] Remove DFS dependencies in the SAL
Diffstat (limited to 'components/net/sal_socket/SConscript')
-rw-r--r--components/net/sal_socket/SConscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/net/sal_socket/SConscript b/components/net/sal_socket/SConscript
index 3dcb5c3fe4..e962193359 100644
--- a/components/net/sal_socket/SConscript
+++ b/components/net/sal_socket/SConscript
@@ -5,10 +5,9 @@ from building import *
cwd = GetCurrentDir()
src = Glob('src/*.c')
-src += Glob('socket/*.c')
+src += Glob('socket/net_netdb.c')
CPPPATH = [cwd + '/include']
-CPPPATH += [cwd + '/include/dfs_net']
CPPPATH += [cwd + '/include/socket']
if GetDepend('SAL_USING_LWIP'):
@@ -21,6 +20,8 @@ if GetDepend('SAL_USING_LWIP') or GetDepend('SAL_USING_AT'):
CPPPATH += [cwd + '/impl']
if GetDepend('SAL_USING_POSIX'):
+ CPPPATH += [cwd + '/include/dfs_net']
+ src += Glob('socket/net_sockets.c')
src += Glob('dfs_net/*.c')
if not GetDepend('HAVE_SYS_SELECT_H'):