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## 130## 131## Platform Compilation Directives 132## 133## 134 135# 136# Bus Driver 137# 138ifeq ($(WSPI),y) 139 BUS_DRV = spi 140 BUS_DRV_REMOVE = sdio 141 BUS_DRIVER_MODULE = spi.ko 142 PFORM_DEFINES += -D WSPI 143else 144 BUS_DRV = sdio 145 BUS_DRV_REMOVE = spi 146 BUS_DRV = sdio 147 BUS_DRV_REMOVE = spi 148 BUS_DRIVER_MODULE = sdio.ko 149endif 150 151ifeq ($(INFO),y) 152 PFORM_DEFINES += -D OS_INFO_MESSAGES 153 PFORM_DEFINES += -D INIT_MESSAGES 154endif 155 156PFORM_DEFINES += -D HOST_COMPILE 157PFORM_DEFINES += -D FW_RUNNING_AS_STA 158PFORM_DEFINES += -D TNETW1273 159 160ifeq ($(FPGA1273),y) 161 PFORM_DEFINES += -D FPGA1273_STAGE_ 162endif 163 164ifeq ($(FULL_ASYNC),y) 165 PFORM_DEFINES += -D FULL_ASYNC_MODE 166endif 167 168ifeq ($(USE_IRQ_ACTIVE_HIGH),y) 169 PFORM_DEFINES += -D USE_IRQ_ACTIVE_HIGH 170endif 171 172## 173## 174## Miscellaneous Compilation Directivcs 175## 176## 177 178EXTRA_CFLAGS += -fsigned-char 179EXTRA_CFLAGS += -D __LINUX__ 180EXTRA_CFLAGS += $(DK_DEFINES) 181EXTRA_CFLAGS += $(PFORM_DEFINES) 182