1import rtconfig 2Import('RTT_ROOT') 3from building import * 4 5# get current directory 6cwd = GetCurrentDir() 7 8# The set of source files associated with this SConscript file. 9src = [] 10 11src += Glob('ALD/ES32VF2264/Source/*.c') 12 13#add for startup script 14if rtconfig.CROSS_TOOL == 'gcc': 15 src = src + ['RV_CORE/Device/EastSoft/ES32VF2264/Startup/startup_es32vf2264.S'] 16 src = src + ['RV_CORE/Device/EastSoft/ES32VF2264/Startup/trap_c.c'] 17 src = src + ['RV_CORE/Device/EastSoft/ES32VF2264/Svc/es32vf2264.svc'] 18 19path = [cwd + '/RV_CORE/Device/EastSoft/ES32VF2264/Include', 20 cwd + '/RV_CORE/Include', 21 cwd + '/ALD/ES32VF2264/Include'] 22 23group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = ['ES32VF2264']) 24 25Return('group') 26