Home | History | Annotate | Download | only in sta_dk_4_0_4_32
      1 ##
      2 ##
      3 ## Directory Locations
      4 ##
      5 ##
      6 
      7 HAL_ROOT    := $(DK_ROOT)
      8 COMMON      := $(DK_ROOT)/common
      9 COMSRC      := $(COMMON)/src
     10 HALSRCR     := $(HAL_ROOT)/common
     11 HALSRC      := $(HALSRCR)/src
     12 DRV_BYPASS  := $(COMSRC)/driver_bypass
     13 LINUX_PFORM := $(DK_ROOT)/pform/linux
     14 PFORM       := $(DK_ROOT)/pform
     15 
     16 ##
     17 ##
     18 ## Make Flags
     19 ##
     20 ##
     21 
     22 #
     23 # Choose an interface (CRTWIPP)
     24 #
     25 WIFI_BOARD ?= MSM_DREAM
     26 
     27 #
     28 # Choose the TNET type (1251)
     29 #
     30 PLATFORM ?= 1251
     31 
     32 #
     33 # Compile with EXC support or not
     34 #
     35 EXC ?= n
     36 
     37 #
     38 # Choose the bus type (n for SDIO, y for WSPI)
     39 #
     40 WSPI ?= n
     41 
     42 #
     43 # Use periodic interrupt
     44 #
     45 INTR ?= y
     46 
     47 #
     48 # Use work queues
     49 #
     50 WORKQUEUE ?= y
     51 
     52 #
     53 # Enable or disable debugging
     54 #
     55 DEBUG ?= n
     56 
     57 #
     58 # Enable or disable OS and init messages
     59 #
     60 INFO ?= n
     61 
     62 #
     63 # Archtecture Type
     64 #
     65 ARCH ?= arm
     66 
     67 #
     68 # Cross Compiler Prefix
     69 #
     70 CROSS_COMPILE ?= arm-eabi-
     71 
     72 #
     73 # Enable driver profiling
     74 #
     75 DRIVER_PROFILING ?= n
     76 
     77 
     78 
     79 
     80 ##
     81 ##
     82 ## Driver Compilation Directives
     83 ##
     84 ##
     85 
     86 ifeq ($(EXC),y)
     87     DK_DEFINES += -D EXC_MODULE_INCLUDED
     88 endif
     89 
     90 ifeq ($(INTR),n)
     91     DK_DEFINES += -D PRIODIC_INTERRUPT
     92 endif    
     93 
     94 ifeq ($(WORKQUEUE),y)
     95     DK_DEFINES += -D DM_USE_WORKQUEUE
     96 endif    
     97 
     98 ifeq ($(DEBUG),y)
     99     DK_DEFINES += -D TI_DBG
    100     DK_DEFINES += -D REPORT_LOG
    101 else
    102     DK_DEFINES += -U REPORT_LOG
    103 endif
    104 
    105 DK_DEFINES += -D __BYTE_ORDER_LITTLE_ENDIAN
    106 DK_DEFINES += -D CONFIGURE_BSS_TYPE_STA
    107 DK_DEFINES += -D PERIODIC_WAKEUP
    108 
    109 ifeq ($(DRIVER_PROFILING),y)
    110    DK_DEFINES += -D DRIVER_PROFILING
    111 endif
    112 
    113 
    114 ##
    115 ##
    116 ## Platform Compilation Directives
    117 ##
    118 ##
    119 
    120 ifeq ($(WIFI_BOARD),CRTWIPP)
    121 	TIWLAN_OMAP1610_CRTWIPP ?= y
    122 	PFORM_DEFINES += -D TIWLAN_OMAP1610_CRTWIPP
    123 endif
    124 
    125 ifeq ($(PLATFORM),1251)
    126     PFORM_DEFINES += -D TNETW1150=1
    127     PFORM_DEFINES += -D TNETW1251=1
    128 endif
    129 
    130 ifeq ($(WSPI),y)
    131 	PFORM_DEFINES += -D HW_ACCESS_WSPI
    132 else
    133 	PFORM_DEFINES += -D HW_ACCESS_SDIO
    134 	PFORM_DEFINES += -D USE_SYNC_API
    135 	PFORM_DEFINES += -D USE_RECOVERY
    136 endif
    137 
    138 ifeq ($(INFO),y)
    139     PFORM_DEFINES += -D OS_INFO_MESSAGES
    140 	PFORM_DEFINES += -D INIT_MESSAGES
    141 endif
    142 
    143 ifeq ($(WIFI_BOARD),CRTWIPP)
    144 PFORM_DEFINES += -D TIWLAN_OMAP1610
    145 endif
    146 
    147 ifeq ($(WIFI_BOARD),MSM_DREAM)
    148 PFORM_DEFINES += -D TIWLAN_MSM7000
    149 endif
    150 
    151 # PFORM_DEFINES += -D DEBUG_MESSAGES
    152 PFORM_DEFINES += -D HOST_COMPILE
    153 PFORM_DEFINES += -D FW_RUNNING_AS_STA
    154 PFORM_DEFINES += -D NOT_SUPPORT_08_BIT_ACCESS_COMMAND
    155 PFORM_DEFINES += -D FOUR_ALIGNMENT
    156 PFORM_DEFINES += -D USE_INIT_FILE
    157 PFORM_DEFINES += -D ENABLE_ROAMING_BY_DEFAULT
    158 
    159 ifeq ($(FIRMWARE_DYNAMIC_LOAD),y)
    160 PFORM_DEFINES += -D FIRMWARE_DYNAMIC_LOAD
    161 endif
    162 
    163 ##
    164 ##
    165 ## Miscellaneous Compilation Directivcs
    166 ##
    167 ##
    168 
    169 EXTRA_CFLAGS += -fsigned-char
    170 EXTRA_CFLAGS += -D __int64="long long"
    171 EXTRA_CFLAGS += -D __LINUX__
    172 EXTRA_CFLAGS += -D TIWLN_MAJOR_VERSION=5
    173 EXTRA_CFLAGS += -D TIWLN_MINOR_VERSION=1
    174 EXTRA_CFLAGS += $(DK_DEFINES)
    175 EXTRA_CFLAGS += $(PFORM_DEFINES)
    176