SConscript 576 B

1234567891011121314151617181920212223242526272829303132
  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_GPIO']):
  8. src += ['drv_gpio.c']
  9. if GetDepend(['BSP_USING_UART']):
  10. src += ['drv_sci.c']
  11. if GetDepend(['BSP_USING_PWM']):
  12. src += ['drv_pwm.c']
  13. if GetDepend(['BSP_USING_SPI']):
  14. src += ['drv_spi.c']
  15. if GetDepend(['BSP_USING_ADC']):
  16. src += Glob('drv_adc.c')
  17. # src += ['drv_common.c']
  18. path = [cwd]
  19. path += [cwd + '/config']
  20. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  21. Return('group')