Add RT_LWIP_VER130, RT_LWIP_VER140 options.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1476 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-06-09 14:07:59 +00:00
parent e6a874abb4
commit 0513333a10
3 changed files with 20 additions and 17 deletions

View File

@ -81,6 +81,6 @@ if GetDepend(['RT_LWIP_PPP']):
src += ppp_src src += ppp_src
path += [RTT_ROOT + '/components/net/lwip-1.4.0/src/netif/ppp'] path += [RTT_ROOT + '/components/net/lwip-1.4.0/src/netif/ppp']
group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP'], CPPPATH = path) group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP', 'RT_LWIP_VER140'], CPPPATH = path)
Return('group') Return('group')

View File

@ -80,6 +80,6 @@ if GetDepend(['RT_LWIP_PPP']):
src += ppp_src src += ppp_src
path += [RTT_ROOT + '/components/net/lwip/src/netif/ppp'] path += [RTT_ROOT + '/components/net/lwip/src/netif/ppp']
group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP'], CPPPATH = path) group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP', 'RT_LWIP_VER130'], CPPPATH = path)
Return('group') Return('group')

View File

@ -276,6 +276,9 @@ def PrepareBuilding(env, root_directory, has_libcpu=False):
if (GetDepend('RT_USING_NEWLIB') == False and GetDepend('RT_USING_NOLIBC') == False) and rtconfig.PLATFORM == 'gcc': if (GetDepend('RT_USING_NEWLIB') == False and GetDepend('RT_USING_NOLIBC') == False) and rtconfig.PLATFORM == 'gcc':
AddDepend('RT_USING_MINILIBC') AddDepend('RT_USING_MINILIBC')
if (GetDepend('RT_USING_LWIP') == True and GetDepend('RT_LWIP_VER140') == False):
AddDepend('RT_LWIP_VER130')
# add target option # add target option
AddOption('--target', AddOption('--target',
dest='target', dest='target',