chenyong 52d1c50efe [net][lwip] Fix set_if() compile error when enable dhcpd fucntion and close finsh.
[net][dhcpd]Fix dhcpd fucntion compile error in lwIP 2.1.0.
2019-07-04 16:17:52 +08:00

15 lines
316 B
Python

from building import *
cwd = GetCurrentDir()
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP210') :
src = ['dhcp_server_raw.c']
else:
src = ['dhcp_server.c']
CPPPATH = [cwd]
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_DHCPD'], CPPPATH = CPPPATH)
Return('group')