SConscript 431 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(['RT_USING_PIN']):
  8. src += ['drv_gpio.c']
  9. if GetDepend(['RT_USING_SERIAL']):
  10. if GetDepend(['RT_USING_SERIAL_V2']):
  11. src += ['drv_uart_v2.c']
  12. else:
  13. src += ['drv_uart.c']
  14. path = [cwd]
  15. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  16. Return('group')