1 2from building import * 3import rtconfig 4 5cwd = GetCurrentDir() 6 7src = [] 8 9src += Glob('*.c') 10if not GetDepend('BSP_USING_NORFLASH'): 11 SrcRemove(src, ['fal_norflash_sfud_port.c']) 12 13CPPPATH = [cwd] 14LOCAL_CCFLAGS = '' 15 16if rtconfig.CROSS_TOOL == 'gcc': 17 LOCAL_CCFLAGS += ' -std=c99' 18elif rtconfig.CROSS_TOOL == 'keil': 19 LOCAL_CCFLAGS += ' --c99' 20 21group = DefineGroup('fal', src, depend = ['RT_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) 22 23Return('group') 24