Files
luban-lite/bsp/peripheral/spinand/SConscript
刘可亮 564e22b32f v0.7.5
2023-08-28 09:48:01 +08:00

29 lines
626 B
Python

from building import *
Import('rtconfig')
src = []
cwd = GetCurrentDir()
CPPPATH = []
LOCAL_CFLAGS = ''
if GetDepend('LPKG_USING_SPINAND'):
src += ['spinand.c']
src += ['winbond.c']
src += ['xtx.c']
src += ['gigadevice.c']
src += ['bbt.c']
CPPPATH += [cwd + '/inc']
if rtconfig.PLATFORM in ['gcc', 'armclang']:
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM in ['armcc']:
LOCAL_CFLAGS += ' --c99'
# add src and include to group.
group = DefineGroup('spinand', src, depend = ['LPKG_USING_SPINAND'], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')