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

- timespec has already been declared
- <sys/socket.h> not found
This commit is contained in:
tanek liang 2017-11-10 12:38:32 +08:00 committed by Bernard Xiong
parent e466357c7f
commit c3ff9772b7
2 changed files with 2467 additions and 2566 deletions

View File

@ -1,3 +1,4 @@
import rtconfig
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
@ -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')

File diff suppressed because it is too large Load Diff