20 lines
389 B
Python
20 lines
389 B
Python
import rtconfig
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('main.c')
|
|
CPPPATH = [cwd]
|
|
|
|
# add for startup script
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
CPPDEFINES = ['__START=entry']
|
|
else:
|
|
CPPDEFINES = []
|
|
|
|
if GetDepend('BSP_USING_SDIO'):
|
|
src += ['mnt.c']
|
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
Return('group')
|