1 2 3## 4## 5## Directory Locations 6## 7## 8 9COMMON := $(DK_ROOT)/stad 10COMSRC := $(COMMON)/src 11TWD := $(DK_ROOT)/TWD 12UTILS := $(DK_ROOT)/utils 13TESTSRC := $(DK_ROOT)/Test 14LINUX_PFORM := $(DK_ROOT)/platforms/os/linux 15PLATFORMS := $(DK_ROOT)/platforms 16EXT_DRV := $(DK_ROOT)/external_drivers 17TXN := $(DK_ROOT)/Txn 18 19## 20## 21## Make Flags 22## 23## 24 25# 26# Compile with FW1273 or FW1251 27# 28FW ?= 1273 29 30# 31# Compile with XCC support or not 32# 33XCC ?= n 34 35 36# 37# Compile with GEM support or not 38# 39GEM ?= n 40 41# 42# Choose the bus type (n for SDIO, y for WSPI) 43# 44WSPI ?= n 45 46# 47# Use periodic interrupt 48# 49INTR ?= y 50 51# 52# Enable or disable debugging 53# 54DEBUG ?= y 55KERNEL_DEBUGGER ?= n 56STRIP ?= y 57BMTRACE ?= n 58# 59# Enable or disable OS and init messages 60# 61INFO ?= n 62 63# 64# 1273 FPGA platform 65# 66FPGA1273 ?= n 67 68# 69# Enable trace buffer 70# 71TI_TRACE_BUFFER ?= n 72 73## 74## 75## Driver Compilation Directives 76## 77## 78ifeq "$(HOST_PLATFORM)" "omap2430" 79 DK_DEFINES += -D HOST_PLATFORM_OMAP2430 80endif 81ifeq "$(HOST_PLATFORM)" "omap3430" 82 DK_DEFINES += -D HOST_PLATFORM_OMAP3430 83endif 84ifeq "$(HOST_PLATFORM)" "zoom2" 85 DK_DEFINES += -D HOST_PLATFORM_ZOOM2 86endif 87ifeq "$(HOST_PLATFORM)" "zoom1" 88 DK_DEFINES += -D HOST_PLATFORM_ZOOM1 89endif 90 91ifeq ($(XCC),y) 92 DK_DEFINES += -D XCC_MODULE_INCLUDED 93endif 94 95ifeq ($(GEM),y) 96 DK_DEFINES += -D GEM_SUPPORTED 97endif 98 99ifeq ($(INTR),n) 100 DK_DEFINES += -D PRIODIC_INTERRUPT 101endif 102 103ifeq ($(DEBUG),y) 104 DK_DEFINES += -D TI_DBG 105 DK_DEFINES += -D REPORT_LOG 106 DK_DEFINES += -O2 107 DK_DEFINES += -D PRINTF_ROLLBACK 108else 109 DK_DEFINES += -D TI_DBG 110 DK_DEFINES += -U REPORT_LOG 111 DK_DEFINES += -O2 112endif 113ifeq ($(KERNEL_DEBUGGER),y) 114 DK_DEFINES += -g -O2 115 STRIP = n 116endif 117export KERNEL_DEBUGGER 118 119DK_DEFINES += -D __BYTE_ORDER_LITTLE_ENDIAN 120 121ifeq ($(TI_TRACE_BUFFER),y) 122 DK_DEFINES += -D TI_TRACE_BUF 123endif 124 125ifeq ($(BMTRACE),y) 126 DK_DEFINES += -D TIWLAN_BMTRACE 127endif 128 129# WPS Support 130DK_DEFINES += -D SUPPL_WPS_SUPPORT 131 132## 133## 134## Platform Compilation Directives 135## 136## 137 138# 139# Bus Driver 140# 141ifeq ($(WSPI),y) 142 BUS_DRV = spi 143 BUS_DRV_REMOVE = sdio 144 BUS_DRIVER_MODULE = spi.ko 145 PFORM_DEFINES += -D WSPI 146else 147 BUS_DRV = sdio 148 BUS_DRV_REMOVE = spi 149 BUS_DRV = sdio 150 BUS_DRV_REMOVE = spi 151 BUS_DRIVER_MODULE = sdio.ko 152endif 153 154ifeq ($(INFO),y) 155 PFORM_DEFINES += -D OS_INFO_MESSAGES 156 PFORM_DEFINES += -D INIT_MESSAGES 157endif 158 159PFORM_DEFINES += -D HOST_COMPILE 160PFORM_DEFINES += -D FW_RUNNING_AS_STA 161PFORM_DEFINES += -D TNETW1273 162 163ifeq ($(FPGA1273),y) 164 PFORM_DEFINES += -D FPGA1273_STAGE_ 165endif 166 167ifeq ($(FULL_ASYNC),y) 168 PFORM_DEFINES += -D FULL_ASYNC_MODE 169endif 170 171ifeq ($(USE_IRQ_ACTIVE_HIGH),y) 172 PFORM_DEFINES += -D USE_IRQ_ACTIVE_HIGH 173endif 174 175## 176## 177## Miscellaneous Compilation Directivcs 178## 179## 180 181EXTRA_CFLAGS += -fsigned-char 182EXTRA_CFLAGS += -D __LINUX__ -DTI_RANDOM_DEFAULT_MAC 183EXTRA_CFLAGS += $(DK_DEFINES) 184EXTRA_CFLAGS += $(PFORM_DEFINES) 185