SConscript 310 B

123456789101112131415161718
  1. import os
  2. import rtconfig
  3. from building import *
  4. Import('SDK_LIB')
  5. cwd = GetCurrentDir()
  6. # add general drivers
  7. src = []
  8. path = [cwd]
  9. if GetDepend(['BSP_USING_SPI_FLASH']):
  10. src += Glob('drv_spi_flash.c')
  11. group = DefineGroup('Platform', src, depend = ['RT_USING_SFUD'], CPPPATH = path)
  12. Return('group')