You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
607 B
31 lines
607 B
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_HWTIMER0']):
|
|
src += ['drv_hwtimer.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')
|
|
|