SConscript 496 B

123456789101112131415161718192021222324252627
  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(['RT_USING_PIN']):
  9. src += ['drv_gpio.c']
  10. if GetDepend(['RT_USING_SERIAL']):
  11. if GetDepend(['RT_USING_SERIAL_V2']):
  12. src += ['drv_usart_v2.c']
  13. else:
  14. src += ['drv_usart.c']
  15. src += ['drv_common.c']
  16. path = [cwd]
  17. path += [cwd + '/config']
  18. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  19. Return('group')