mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-12 20:24:15 +08:00
Add tap netif driver
This commit is contained in:
@@ -22,7 +22,11 @@
|
||||
void rt_init_thread_entry(void *parameter)
|
||||
{
|
||||
#ifdef RT_USING_LWIP
|
||||
#ifdef RT_USING_TAPNETIF
|
||||
tap_netif_hw_init();
|
||||
#else
|
||||
pcap_netif_hw_init();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
rt_platform_init();
|
||||
|
||||
@@ -26,8 +26,10 @@ if GetDepend('RT_USING_DFS_WINSHAREDIR') == False:
|
||||
SrcRemove(src, 'dfs_win32.c')
|
||||
if GetDepend('RT_USING_MODULE') == False:
|
||||
SrcRemove(src, ['module_win32.c'])
|
||||
if GetDepend('RT_USING_TAPNETIF') == False:
|
||||
SrcRemove(src, ['tap_netif.c'])
|
||||
if sys.platform[0:5]=="linux": #check whether under linux
|
||||
SrcRemove(src, ['module_win32.c', 'dfs_win32.c'])
|
||||
SrcRemove(src, ['module_win32.c', 'dfs_win32.c', 'tap_netif.c'])
|
||||
|
||||
group = DefineGroup('Drivers', src, depend = [''],
|
||||
CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user