[bsp] fix stm32f429-apollo iar project build error:
- timespec has already been declared - <sys/socket.h> not found
This commit is contained in:
parent
e466357c7f
commit
c3ff9772b7
|
@ -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
Loading…
Reference in New Issue