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')