mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 05:51:24 +08:00
add '#define DD 0' support.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1553 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
ce01644d0d
commit
0af1367525
@ -502,15 +502,17 @@ def PrepareBuilding(env, root_directory, has_libcpu=False):
|
|||||||
def GetDepend(depend):
|
def GetDepend(depend):
|
||||||
building = True
|
building = True
|
||||||
if type(depend) == type('str'):
|
if type(depend) == type('str'):
|
||||||
if not BuildOptions.has_key(depend):
|
if not BuildOptions.has_key(depend) or BuildOptions[depend] == 0:
|
||||||
building = False
|
building = False
|
||||||
|
elif BuildOptions[depend] != '':
|
||||||
|
return BuildOptions[depend]
|
||||||
|
|
||||||
return building
|
return building
|
||||||
|
|
||||||
# for list type depend
|
# for list type depend
|
||||||
for item in depend:
|
for item in depend:
|
||||||
if item != '':
|
if item != '':
|
||||||
if not BuildOptions.has_key(item):
|
if not BuildOptions.has_key(item) or BuildOptions[item] == 0:
|
||||||
building = False
|
building = False
|
||||||
|
|
||||||
return building
|
return building
|
||||||
|
Loading…
x
Reference in New Issue
Block a user