diff options
| author | prife <[email protected]> | 2013-01-13 23:10:49 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-01-13 23:10:49 +0800 |
| commit | 212b71205b61f7b8f9b478113f8e0ec10990243e (patch) | |
| tree | 9a56ab97f86e2ad5e22805a95e21f87e42e5ef3b /bsp/simlinux/drivers/SConscript | |
| parent | 7b58dd92fada8a99cf4f4beecb68a987f67c925f (diff) | |
add bsp: simluator for linux
Diffstat (limited to 'bsp/simlinux/drivers/SConscript')
| -rwxr-xr-x | bsp/simlinux/drivers/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bsp/simlinux/drivers/SConscript b/bsp/simlinux/drivers/SConscript new file mode 100755 index 0000000000..34b1a0bda7 --- /dev/null +++ b/bsp/simlinux/drivers/SConscript @@ -0,0 +1,22 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +# remove no need file. +if GetDepend('RT_USING_RTGUI') == False: + SrcRemove(src, 'sdl_fb.c') +if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_ELMFAT') == False: + SrcRemove(src, 'sd_sim.c') +if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NAND') == False: + SrcRemove(src, 'nanddrv_file.c') +if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NOR') == False: + SrcRemove(src, 'sst25vfxx_mtd_sim.c') +if GetDepend('RT_USING_SERIAL') == False: + SrcRemove(src, 'usart_sim.c') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') |
