[lwip] 修复dhcpd没有包含2.0.3版本的问题

This commit is contained in:
Meco Man 2021-12-30 09:38:38 -05:00
parent ead24644f0
commit 9a61b65c13
1 changed files with 5 additions and 6 deletions

View File

@ -1,14 +1,13 @@
from building import *
cwd = GetCurrentDir()
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP212') :
src = ['dhcp_server_raw.c']
else:
src = ['dhcp_server.c']
CPPPATH = [cwd]
if GetDepend('RT_USING_LWIP141'):
src = ['dhcp_server.c']
else:
src = ['dhcp_server_raw.c']
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_DHCPD'], CPPPATH = CPPPATH)
Return('group')