2022-12-05 15:05:07 +08:00
|
|
|
import rtconfig
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('main.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
# add for startup script
|
2022-12-05 15:05:07 +08:00
|
|
|
if rtconfig.PLATFORM in ['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')
|