blob: 70ac821c74e7a7d3e9a7e58d12ec0160efd4a36b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd]
# add the general drivers.
src = Split("""
board.c
""")
if GetDepend(['BSP_USING_EMAC']):
src += ['drv_emac.c']
if GetDepend(['BSP_USING_CLOCK_TIMER0']):
src += ['drv_timer.c']
if GetDepend(['BSP_USING_LED']):
src += ['drv_led.c']
if GetDepend(['BSP_USING_SDRAM']):
src += ['drv_sdram.c']
if GetDepend('BSP_USING_UART0') or GetDepend('BSP_USING_UART2'):
src += ['drv_uart.c']
if GetDepend('BSP_USING_ADC'):
src += ['drv_adc.c']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|