SConscript 590 B

12345678910111213141516171819202122232425262728293031
  1. Import('RTT_ROOT')
  2. from building import *
  3. cwd = GetCurrentDir()
  4. #src_drv = ['']
  5. # The set of source files associated with this SConscript file.
  6. path = [cwd]
  7. src = Split("""
  8. davinci_serial.c
  9. """)
  10. if GetDepend('RT_USING_GPIO_DEVICE'):
  11. src += ['gpio.c']
  12. if GetDepend('RT_USING_I2C_CONTROL'):
  13. src += ['i2c-davinci.c']
  14. if GetDepend('RT_USING_SDIO_CONTROL'):
  15. src += ['mmcsd.c']
  16. if GetDepend('RT_USING_SPI_CONTROL'):
  17. src += ['spi-davinci.c']
  18. if GetDepend('RT_USING_EMAC'):
  19. src += ['davinci_emac.c']
  20. group = DefineGroup('Startup', src, depend = [''], CPPPATH = path)
  21. Return('group')