SConscript 456 B

123456789101112131415161718192021222324
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. import os
  5. cwd = GetCurrentDir()
  6. src = []
  7. path = [cwd, cwd + '/config']
  8. if GetDepend('BSP_USING_GPIO'):
  9. src += ['drv_gpio.c']
  10. if GetDepend('BSP_USING_UART'):
  11. src += ['drv_uart.c']
  12. if GetDepend('BSP_USING_CAN'):
  13. src += ['drv_can.c']
  14. if GetDepend('BSP_USING_ECAP'):
  15. src += ['drv_ecap.c']
  16. group = DefineGroup('HAL_Drivers', src, depend = [''], CPPPATH = path)
  17. Return('group')