SConscript 359 B

123456789101112131415161718192021
  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. src += ['drv_usart.c']
  12. path = [cwd]
  13. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  14. Return('group')