summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-09 14:07:59 +0000
committer[email protected] <[email protected]>2011-06-09 14:07:59 +0000
commit0513333a10933fbbd9f04e88455e0e2d08d29a4e (patch)
tree770446595a7d12b74cb462f7fe52cbc08abf3fda /tools
parente6a874abb4aaea0c08b1b19a031b8f7d471dd555 (diff)
Add RT_LWIP_VER130, RT_LWIP_VER140 options.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1476 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/building.py b/tools/building.py
index 2fa5786e59..1856b23db9 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -91,7 +91,7 @@ def IARProject(target, script):
import xml.etree.ElementTree as etree
project = file(target, "wb")
project_path = os.path.dirname(os.path.abspath(target))
-
+
tree = etree.parse('template.ewp')
tree.write('project.ewp')
@@ -262,7 +262,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False):
win32_spawn.env = env
env['SPAWN'] = win32_spawn.spawn
- # add program path
+ # add program path
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
# parse rtconfig.h to get used component
@@ -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':
AddDepend('RT_USING_MINILIBC')
+ if (GetDepend('RT_USING_LWIP') == True and GetDepend('RT_LWIP_VER140') == False):
+ AddDepend('RT_LWIP_VER130')
+
# add target option
AddOption('--target',
dest='target',
@@ -309,14 +312,14 @@ def GetDepend(depend):
building = False
return building
-
- # for list type depend
+
+ # for list type depend
for item in depend:
if item != '':
if not BuildOptions.has_key(item):
building = False
- return building
+ return building
def AddDepend(option):
BuildOptions[option] = 1
@@ -344,11 +347,11 @@ def DefineGroup(name, src, depend, **parameters):
if group.has_key('LINKFLAGS'):
Env.Append(LINKFLAGS = group['LINKFLAGS'])
- objs = Env.Object(group['src'])
+ objs = Env.Object(group['src'])
if group.has_key('LIBRARY'):
objs = Env.Library(name, objs)
-
+
return objs
def EndBuilding(target):