4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 21:43:30 +08:00

35 lines
629 B
Python
Raw Normal View History

2018-12-05 11:44:53 +08:00
from building import *
cwd = GetCurrentDir()
src = Split("""
board.c
clock_config.c
drv_gpio.c
""")
CPPPATH = [cwd]
2018-12-05 11:44:53 +08:00
# add driver code
if GetDepend('BSP_USING_UART0'):
src = src + ['drv_uart.c']
if GetDepend('BSP_USING_SPI2'):
src = src + ['drv_spi.c']
if GetDepend('BSP_USING_I2C4'):
src = src + ['drv_i2c.c']
if GetDepend('BSP_USING_ROMFS'):
src = src + ['drv_romfs.c']
if GetDepend('BSP_USING_SDCARD'):
src = src + ['drv_sdcard.c']
if GetDepend('BSP_USING_SPIFLASH'):
src = src + ['drv_spi_flash.c']
2018-12-05 11:44:53 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')