1Import('RTT_ROOT')
2Import('rtconfig')
3from building import *
4
5cwd     = os.path.join(str(Dir('#')), 'drivers')
6
7# add the general drivers.
8src = Split("""
9board.c
10led.c
11key.c
12uart.c
13""")
14
15if GetDepend('RT_USING_LWIP'):
16    src += ['dm9000.c']
17
18if GetDepend('RT_MINI2440_LCD_A70'):
19    src += ['lcd_a70.c']
20if GetDepend('RT_MINI2440_LCD_T43'):
21    src += ['lcd_t43.c']
22if GetDepend('RT_MINI2440_LCD_N35'):
23    src += ['lcd_n35.c']
24if GetDepend('RT_MINI2440_LCD_T35'):
25    src += ['lcd_t35.c']
26if GetDepend('RT_MINI2440_LCD_X35'):
27    src += ['lcd_x35.c']
28
29if GetDepend('PKG_USING_GUIENGINE'):
30    src += ['touch.c']
31
32if GetDepend('RT_USING_SDIO'):
33    src += ['s3cmci.c']
34
35
36CPPPATH = [cwd]
37
38group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
39
40Return('group')
41
42