SConscript 561 B

1234567891011121314151617181920212223242526272829
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = Split("""
  7. """)
  8. if GetDepend(['BSP_USING_UART']):
  9. src += ['drv_uart.c']
  10. if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
  11. src += ['drv_flash.c']
  12. if GetDepend(['BSP_USING_QSPI_FLASH']):
  13. src += ['drv_qspi_flash.c']
  14. if GetDepend(['BSP_USING_SPI']):
  15. src += ['drv_spi.c']
  16. if GetDepend(['BSP_USING_GPIO']):
  17. src += ['drv_gpio.c']
  18. path = [cwd]
  19. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  20. Return('group')