SConscript 712 B

1234567891011121314151617181920212223242526272829303132
  1. import os
  2. from building import *
  3. objs = []
  4. cwd = GetCurrentDir()
  5. # add general drivers
  6. src = []
  7. path = [cwd]
  8. if GetDepend(['BSP_USING_QSPI_FLASH']):
  9. src += Glob('drv_qspi_flash.c')
  10. if GetDepend(['RT_USING_FAL']):
  11. src += Glob('qspi_mnt.c')
  12. if GetDepend(['BSP_USING_LCD_OTM8009A']):
  13. src += Glob('drv_otm8009a.c')
  14. if GetDepend(['BSP_USING_SDCARD']):
  15. src += Glob('drv_sdcard.c')
  16. CPPDEFINES = ['STM32F469xx']
  17. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  18. list = os.listdir(cwd)
  19. for item in list:
  20. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  21. group = group + SConscript(os.path.join(item, 'SConscript'))
  22. Return('group')