1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4 5cwd = GetCurrentDir() 6src = Glob('*.c') 7CPPPATH = [cwd] 8 9#remove other no use files 10if GetDepend('SAM_I2C_EXAMPLE') == False: 11 SrcRemove(src, ['sam_i2c.c']) 12 13if GetDepend('SAM_LWIP_EXAMPLE') == False: 14 SrcRemove(src, ['sam_gmac.c']) 15 16# You can select chips from the list above 17CPPDEFINES = [] 18 19group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) 20 21Return('group') 22