SConscript 413 B

123456789101112131415161718192021
  1. from building import *
  2. group = []
  3. if not GetDepend(['RT_PCI_DW']):
  4. Return('group')
  5. cwd = GetCurrentDir()
  6. CPPPATH = [cwd + '/../../../include']
  7. src = ['pcie-dw.c', 'pcie-dw_platfrom.c']
  8. if GetDepend(['RT_PCI_DW_HOST']):
  9. src += ['pcie-dw_host.c']
  10. if GetDepend(['RT_PCI_DW_EP']):
  11. src += ['pcie-dw_ep.c']
  12. group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
  13. Return('group')