SConscript 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. # get current directory
  5. cwd = GetCurrentDir()
  6. define = []
  7. src = Split('''
  8. mwifi.c
  9. mport/mwifi_dev.c
  10. mport/firmware.c
  11. mport/skbuff.c
  12. mport/wext-core.c
  13. mlinux/moal_main.c
  14. mlinux/moal_ioctl.c
  15. mlinux/moal_shim.c
  16. mlinux/moal_eth_ioctl.c
  17. mlinux/moal_sdio_mmc.c
  18. mlan/mlan_shim.c
  19. mlan/mlan_init.c
  20. mlan/mlan_txrx.c
  21. mlan/mlan_cmdevt.c
  22. mlan/mlan_misc.c
  23. mlan/mlan_cfp.c
  24. mlan/mlan_wmm.c
  25. mlan/mlan_sdio.c
  26. mlan/mlan_11n_aggr.c
  27. mlan/mlan_11n_rxreorder.c
  28. mlan/mlan_11n.c
  29. mlan/mlan_11d.c
  30. mlan/mlan_11h.c
  31. ''')
  32. sta_src = Split('''
  33. mlan/mlan_meas.c
  34. mlan/mlan_scan.c
  35. mlan/mlan_sta_ioctl.c
  36. mlan/mlan_sta_rx.c
  37. mlan/mlan_sta_tx.c
  38. mlan/mlan_sta_event.c
  39. mlan/mlan_sta_cmd.c
  40. mlan/mlan_sta_cmdresp.c
  41. mlan/mlan_join.c
  42. ''')
  43. sta_wext = Split('''
  44. mlinux/moal_priv.c
  45. mlinux/moal_wext.c
  46. ''')
  47. if GetDepend(['MARVELLWIFI_USING_STA']):
  48. define += ['STA_SUPPORT']
  49. sta_src += sta_wext
  50. src += sta_src
  51. uap_src = Split('''
  52. mlan/mlan_uap_ioctl.c
  53. mlan/mlan_uap_cmdevent.c
  54. mlan/mlan_uap_txrx.c
  55. mlinux/moal_uap.c
  56. ''')
  57. uap_wext = Split('''
  58. mlinux/moal_uap_priv.c
  59. mlinux/moal_uap_wext.c
  60. ''')
  61. if GetDepend(['MARVELLWIFI_USING_UAP']):
  62. define += ['UAP_SUPPORT']
  63. uap_src += uap_wext
  64. src += uap_src
  65. path = [cwd + '/mlinux',
  66. cwd + '/mlan']
  67. group = DefineGroup('MarvellWiFi', src, depend = ['RT_USING_LWIP','RT_USING_SDIO','PKG_USING_WLANMARVELL'], CPPPATH = path, CPPDEFINES = define)
  68. Return('group')