2019-10-24 17:56:09 +08:00
|
|
|
import rtconfig
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2021-09-21 18:24:52 +08:00
|
|
|
src = Glob('main.c')
|
2019-10-24 17:56:09 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
# add for startup script
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
2019-10-24 17:56:09 +08:00
|
|
|
CPPDEFINES = ['__START=entry']
|
|
|
|
else:
|
|
|
|
CPPDEFINES = []
|
2021-10-10 21:06:03 +08:00
|
|
|
|
|
|
|
if GetDepend('BSP_USING_SDIO'):
|
|
|
|
src += ['mnt.c']
|
|
|
|
|
2019-10-24 17:56:09 +08:00
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|