RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.46k stars 5.01k forks source link

SConstruct的一些问题 #119

Closed aozima closed 11 years ago

aozima commented 11 years ago
bsp\stm32f10x>scons --target=cb -s
TypeError: 'NoneType' object is not iterable:
  File "E:\work\rt-thread\rt-thread_git_fork\bsp\stm32f10x\SConstruct", line 40:
    EndBuilding(TARGET)
  File "E:\work\rt-thread\rt-thread_git_fork\tools\building.py", line 342:
    CBProject('project.cbp', Projects, program)
  File "E:\work\rt-thread\rt-thread_git_fork\tools\codeblocks.py", line 62:
    CB_AddHeadFiles(program, elem, project_path)
  File "E:\work\rt-thread\rt-thread_git_fork\tools\codeblocks.py", line 15:
    for item in program:    

经查问题出在 SConstruct 的末尾:

# build program 
env.Program(TARGET, objs)

# end building 
EndBuilding(TARGET)

这块是应该修改成:

# make a building
DoBuilding(TARGET, objs)

还是

# build program 
+program = env.Program(TARGET, objs)

# end building 
+EndBuilding(TARGET, program)
aozima commented 11 years ago

已更新为使用 DoBuilding,详见: a5a36d3fbffc33fe9978d17d63422411f61059ac