提交 c3ff9772 编写于 作者: T tanek liang 提交者: Bernard Xiong

[bsp] fix stm32f429-apollo iar project build error:

- timespec has already been declared
- <sys/socket.h> not found
上级 e466357c
import rtconfig
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
...@@ -7,10 +8,16 @@ application.c ...@@ -7,10 +8,16 @@ application.c
startup.c startup.c
""") """)
# add for startup script
if rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['_TIMESPEC_DEFINED']
else:
CPPDEFINES = []
# add UI engine demo. # add UI engine demo.
if GetDepend('RT_USING_GUIENGINE'): if GetDepend('RT_USING_GUIENGINE'):
src += ['rtgui_demo.c'] src += ['rtgui_demo.c']
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group') Return('group')
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册