SConscript 421 B

123456789101112131415161718
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. import os
  5. cwd = GetCurrentDir()
  6. group = []
  7. src = ['drv_common.c']
  8. path = [cwd]
  9. if GetDepend(['RT_USING_NANO']):
  10. group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
  11. else:
  12. group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
  13. group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  14. Return('group')