Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaobo07
rt-thread
提交
7fc707d9
R
rt-thread
项目概览
Xiaobo07
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7fc707d9
编写于
5月 15, 2022
作者:
mysterywolf
提交者:
guo
5月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[sal][kconfig] 重新梳理sal的依赖关系
上级
b793b642
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
24 deletion
+23
-24
bsp/simulator/Kconfig
bsp/simulator/Kconfig
+3
-1
bsp/simulator/applications/platform.c
bsp/simulator/applications/platform.c
+4
-4
components/net/at/Kconfig
components/net/at/Kconfig
+1
-0
components/net/lwip/Kconfig
components/net/lwip/Kconfig
+1
-0
components/net/sal/Kconfig
components/net/sal/Kconfig
+4
-9
components/net/sal/SConscript
components/net/sal/SConscript
+10
-10
未找到文件。
bsp/simulator/Kconfig
浏览文件 @
7fc707d9
...
...
@@ -31,7 +31,9 @@ config RT_USING_DFS_WINSHAREDIR
config BSP_USING_SAL_WINSOCK
bool "Enable Windows socket (winsock) with SAL"
select RT_USING_SAL
select RT_USING_POSIX_FS
select RT_USING_POSIX_SOCKET
select SAL_USING_WINSOCK
default n
config BSP_USING_LVGL
...
...
bsp/simulator/applications/platform.c
浏览文件 @
7fc707d9
...
...
@@ -23,13 +23,13 @@ int platform_init(void)
/* initialize sd card */
rt_hw_sdcard_init
();
#if
defined(RT_USING_MTD_NAND)
#if
def RT_USING_MTD_NAND
rt_hw_mtd_nand_init
();
#endif
#endif
/* RT_USING_MTD_NAND */
#if
defined(RT_USING_MTD_NOR)
#if
def RT_USING_MTD_NOR
sst25vfxx_mtd_init
(
"nor"
,
0
,
RT_UINT32_MAX
);
#endif
#endif
/* RT_USING_MTD_NOR */
#endif
/* RT_USING_DFS */
...
...
components/net/at/Kconfig
浏览文件 @
7fc707d9
...
...
@@ -57,6 +57,7 @@ if RT_USING_AT
config AT_USING_SOCKET
bool "Enable BSD Socket API support by AT commnads"
select RT_USING_SAL
select SAL_USING_AT
default n
endif
...
...
components/net/lwip/Kconfig
浏览文件 @
7fc707d9
...
...
@@ -2,6 +2,7 @@ menuconfig RT_USING_LWIP
bool "LwIP: light weight TCP/IP stack"
select RT_USING_DEVICE
select RT_USING_DEVICE_IPC
select SAL_USING_LWIP if RT_USING_SAL
default n
if RT_USING_LWIP
...
...
components/net/sal/Kconfig
浏览文件 @
7fc707d9
...
...
@@ -13,26 +13,21 @@ if RT_USING_SAL
The ability that check internet status is provided by RT-Thread.
menu "Docking with protocol stacks"
config SAL_USING_LWIP
bool "Docking with lwIP stack"
default y
depends on RT_USING_LWIP
default n
config SAL_USING_AT
bool "Docking with AT commands stack"
default y
depends on AT_USING_SOCKET
default n
config SAL_USING_WINSOCK
bool "Docking with Windows socket (winsock)"
default y
depends on BSP_USING_SAL_WINSOCK
default n
config SAL_USING_TLS
bool "Docking with MbedTLS protocol"
default y
depends on PKG_USING_MBEDTLS
default n
endmenu
config SAL_USING_POSIX
...
...
components/net/sal/SConscript
浏览文件 @
7fc707d9
...
...
@@ -5,30 +5,30 @@ from building import *
cwd
=
GetCurrentDir
()
src
=
Glob
(
'src/*.c'
)
src
+=
Glob
(
'socket/net_netdb.c'
)
src
+=
[
'socket/net_netdb.c'
]
CPPPATH
=
[
cwd
+
'/include'
]
CPPPATH
+=
[
cwd
+
'/include/socket'
]
if
GetDepend
(
'SAL_USING_LWIP'
)
or
GetDepend
(
'SAL_USING_AT'
):
CPPPATH
+=
[
cwd
+
'/docking'
]
if
GetDepend
(
'SAL_USING_LWIP'
):
src
+=
Glob
(
'docking/af_inet_lwip.c'
)
src
+=
[
'docking/af_inet_lwip.c'
]
if
GetDepend
(
'SAL_USING_AT'
):
src
+=
Glob
(
'docking/af_inet_at.c'
)
if
GetDepend
(
'SAL_USING_LWIP'
)
or
GetDepend
(
'SAL_USING_AT'
):
CPPPATH
+=
[
cwd
+
'/docking'
]
src
+=
[
'docking/af_inet_at.c'
]
if
GetDepend
(
'SAL_USING_WINSOCK'
):
src
+=
Glob
(
'docking/af_inet_winsock.c'
)
src
+=
[
'docking/af_inet_winsock.c'
]
if
GetDepend
(
'SAL_USING_TLS'
):
src
+=
Glob
(
'docking/proto_mbedtls.c'
)
src
+=
[
'docking/proto_mbedtls.c'
]
if
GetDepend
(
'SAL_USING_POSIX'
):
CPPPATH
+=
[
cwd
+
'/include/dfs_net'
]
src
+=
Glob
(
'socket/net_sockets.c'
)
src
+=
Glob
(
'dfs_net/*.c'
)
src
+=
[
'socket/net_sockets.c'
]
src
+=
[
'dfs_net/*.c'
]
if
not
GetDepend
(
'HAVE_SYS_SOCKET_H'
):
CPPPATH
+=
[
cwd
+
'/include/socket/sys_socket'
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录