Makefile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # File: Makefile
  2. #
  3. # Copyright (C) 2008-2010, Marvell International Ltd.
  4. #
  5. # This software file (the "File") is distributed by Marvell International
  6. # Ltd. under the terms of the GNU General Public License Version 2, June 1991
  7. # (the "License"). You may use, redistribute and/or modify this File in
  8. # accordance with the terms and conditions of the License, a copy of which
  9. # is available by writing to the Free Software Foundation, Inc.,
  10. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
  11. # worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
  12. #
  13. # A copy of the GPL is available in file gpl-2.0.txt accompanying in this
  14. # deliverables.
  15. #
  16. # THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
  17. # IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
  18. # ARE EXPRESSLY DISCLAIMED. The License provides additional details about
  19. # this warranty disclaimer.
  20. CC= $(CROSS_COMPILE)gcc
  21. LD= $(CROSS_COMPILE)ld
  22. BACKUP= /root/backup
  23. YMD= `date +%Y%m%d%H%M`
  24. #############################################################################
  25. # Configuration Options
  26. #############################################################################
  27. #############################################################################
  28. # Select Platform Tools
  29. #############################################################################
  30. EXTRA_CFLAGS += -Idrivers/amlogic/wifi/mrvl_nh387/mlan
  31. EXTRA_CFLAGS += -DLINUX
  32. #############################################################################
  33. # Compiler Flags
  34. #############################################################################
  35. EXTRA_CFLAGS += -DFPNUM='"57"'
  36. ifeq ($(CONFIG_MRVLNH387_DEBUG),"1")
  37. EXTRA_CFLAGS += -DDEBUG_LEVEL1
  38. endif
  39. ifeq ($(CONFIG_MRVLNH387_DEBUG),"2")
  40. EXTRA_CFLAGS += -DDEBUG_LEVEL1
  41. EXTRA_CFLAGS += -DDEBUG_LEVEL2
  42. DBG= -dbg
  43. endif
  44. ifdef CONFIG_MRVLNH387_PROC_DEBUG
  45. EXTRA_CFLAGS += -DPROC_DEBUG
  46. endif
  47. ifdef CONFIG_MRVLNH387_STA_SUPPORT
  48. EXTRA_CFLAGS += -DSTA_SUPPORT
  49. ifdef CONFIG_MRVLNH387_REASSOCIATION
  50. EXTRA_CFLAGS += -DREASSOCIATION
  51. endif
  52. endif
  53. ifdef CONFIG_MRVLNH387_UAP_SUPPORT
  54. EXTRA_CFLAGS += -DUAP_SUPPORT
  55. endif
  56. ifdef CONFIG_MRVLNH387_MFG_CMD_SUPPORT
  57. EXTRA_CFLAGS += -DMFG_CMD_SUPPORT
  58. endif
  59. ifdef CONFIG_MRVLNH387_BIG_ENDIAN
  60. EXTRA_CFLAGS += -DBIG_ENDIAN_SUPPORT
  61. endif
  62. ifdef CONFIG_MRVLNH387_SDIO_MULTI_PORT_TX_AGGR
  63. EXTRA_CFLAGS += -DSDIO_MULTI_PORT_TX_AGGR
  64. endif
  65. ifdef CONFIG_MRVLNH387_SDIO_MULTI_PORT_RX_AGGR
  66. EXTRA_CFLAGS += -DSDIO_MULTI_PORT_RX_AGGR
  67. endif
  68. ifdef CONFIG_MRVLNH387_SDIO_SUSPEND_RESUME
  69. EXTRA_CFLAGS += -DSDIO_SUSPEND_RESUME
  70. endif
  71. #############################################################################
  72. # Make Targets
  73. #############################################################################
  74. obj-$(CONFIG_SDIO_MARVELL_NH387_WIFI) += mlan.o
  75. mlan-objs += mlinux/moal_main.o \
  76. mlinux/moal_ioctl.o \
  77. mlinux/moal_shim.o \
  78. mlinux/moal_sdio_mmc.o
  79. ifdef CONFIG_MRVLNH387_STA_SUPPORT
  80. mlan-objs += mlinux/moal_priv.o \
  81. mlinux/moal_wext.o
  82. endif
  83. ifdef CONFIG_MRVLNH387_UAP_SUPPORT
  84. mlan-objs += mlinux/moal_uap.o \
  85. mlinux/moal_uap_priv.o \
  86. mlinux/moal_uap_wext.o
  87. endif
  88. ifdef CONFIG_PROC_FS
  89. mlan-objs += mlinux/moal_proc.o
  90. ifdef CONFIG_MRVLNH387_PROC_DEBUG
  91. mlan-objs += mlinux/moal_debug.o
  92. endif
  93. endif
  94. mlan-objs += mlan/mlan_shim.o mlan/mlan_init.o \
  95. mlan/mlan_txrx.o \
  96. mlan/mlan_cmdevt.o mlan/mlan_misc.o \
  97. mlan/mlan_module.o \
  98. mlan/mlan_wmm.o \
  99. mlan/mlan_sdio.o \
  100. mlan/mlan_11n_aggr.o \
  101. mlan/mlan_11n_rxreorder.o \
  102. mlan/mlan_11n.o
  103. ifdef CONFIG_MRVLNH387_STA_SUPPORT
  104. mlan-objs += mlan/mlan_11d.o \
  105. mlan/mlan_11h.o \
  106. mlan/mlan_meas.o \
  107. mlan/mlan_cfp.o \
  108. mlan/mlan_scan.o \
  109. mlan/mlan_sta_ioctl.o \
  110. mlan/mlan_sta_rx.o \
  111. mlan/mlan_sta_tx.o \
  112. mlan/mlan_sta_event.o \
  113. mlan/mlan_sta_cmd.o \
  114. mlan/mlan_sta_cmdresp.o \
  115. mlan/mlan_join.o
  116. endif
  117. ifdef CONFIG_MRVLNH387_UAP_SUPPORT
  118. mlan-objs += mlan/mlan_uap_ioctl.o \
  119. mlan/mlan_uap_cmdevent.o \
  120. mlan/mlan_uap_txrx.o
  121. endif