SConscript 410 B

1234567891011121314151617181920212223
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = []
  7. if GetDepend(['BSP_USING_PIN']):
  8. src += ['drv_gpio.c']
  9. if GetDepend(['BSP_USING_UART']):
  10. src += ['drv_uart.c']
  11. if GetDepend(['BSP_USING_SOFT_I2C']):
  12. src += ['drv_soft_i2c.c']
  13. path = [cwd]
  14. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  15. Return('group')