Home | History | Annotate | Download | only in configurationutility
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 STATIC_LIB ?= y
      5 DEBUG ?= y
      6 BUILD_SUPPL ?= n
      7 WPA_ENTERPRISE ?= y
      8 CONFIG_EAP_WSC ?= n
      9 HOST_PLATFORM ?= wipp
     10 
     11 WILINK_ROOT = ../..
     12 CUDK_ROOT ?= $(WILINK_ROOT)/CUDK
     13 CU_ROOT = $(CUDK_ROOT)/configurationutility
     14 
     15 ifeq ($(DEBUG),y)
     16   DEBUGFLAGS = -O2 -g -DDEBUG -DTI_DBG -fno-builtin   
     17 else
     18   DEBUGFLAGS = -O2
     19 endif
     20 
     21 ifeq ($(DEBUG),y)
     22   DEBUGFLAGS = -O2 -g -DDEBUG -DTI_DBG -fno-builtin   # "-O" is needed to expand inlines
     23 #  DEBUGFLAGS+= -DDEBUG_MESSAGES
     24 else
     25   DEBUGFLAGS = -O2
     26 endif
     27 DEBUGFLAGS += -DHOST_COMPILE
     28 
     29 
     30 DK_DEFINES =
     31 ifeq ($(WPA_ENTERPRISE), y)
     32 	DK_DEFINES += -D WPA_ENTERPRISE
     33 endif
     34 
     35 #DK_DEFINES += -D NO_WPA_SUPPL
     36 
     37 #Supplicant image building
     38 ifeq ($(BUILD_SUPPL), y)
     39 DK_DEFINES += -D WPA_SUPPLICANT -D CONFIG_CTRL_IFACE -D CONFIG_CTRL_IFACE_UNIX
     40   -include external/wpa_supplicant/.config
     41 ifeq ($(CONFIG_EAP_WSC), y)
     42 DK_DEFINES += -DCONFIG_EAP_WSC
     43 endif
     44 endif
     45 
     46 ARMFLAGS  = -fno-common -g #-fno-builtin -Wall #-pipe
     47 
     48 LOCAL_C_INCLUDES = \
     49 	$(LOCAL_PATH)/inc \
     50 	$(LOCAL_PATH)/$(CUDK_ROOT)/os/linux/inc \
     51 	$(LOCAL_PATH)/$(CUDK_ROOT)/os/common/inc \
     52 	$(LOCAL_PATH)/$(WILINK_ROOT)/stad/Export_Inc \
     53 	$(LOCAL_PATH)/$(WILINK_ROOT)/stad/src/Sta_Management \
     54 	$(LOCAL_PATH)/$(WILINK_ROOT)/stad/src/Application \
     55 	$(LOCAL_PATH)/$(WILINK_ROOT)/utils \
     56 	$(LOCAL_PATH)/$(WILINK_ROOT)/Txn \
     57 	$(LOCAL_PATH)/$(WILINK_ROOT)/TWD/TWDriver \
     58 	$(LOCAL_PATH)/$(WILINK_ROOT)/TWD/FirmwareApi \
     59 	$(LOCAL_PATH)/$(WILINK_ROOT)/TWD/TwIf \
     60 	$(LOCAL_PATH)/$(WILINK_ROOT)/platforms/os/linux/inc \
     61 	$(LOCAL_PATH)/$(WILINK_ROOT)/platforms/os/common/inc \
     62 	$(LOCAL_PATH)/$(KERNEL_DIR)/include \
     63 	$(LOCAL_PATH)/$(WILINK_ROOT)/TWD/FW_Transfer/Export_Inc \
     64 	external/wpa_supplicant 
     65 
     66 LOCAL_SRC_FILES = \
     67 	src/console.c \
     68 	src/cu_common.c \
     69 	src/cu_cmd.c \
     70 	src/ticon.c \
     71 	src/wpa_core.c
     72 
     73 LOCAL_CFLAGS += -Wall -Wstrict-prototypes $(DEBUGFLAGS) -D__LINUX__ $(DK_DEFINES) -D__BYTE_ORDER_LITTLE_ENDIAN -DDRV_NAME='"tiwlan"'
     74 
     75 LOCAL_CFLAGS += $(ARMFLAGS)
     76 
     77 LOCAL_LDLIBS += -lpthread
     78 
     79 LOCAL_STATIC_LIBRARIES = \
     80 	libtiOsLib
     81 
     82 ifeq ($(BUILD_SUPPL), y)
     83 LOCAL_SHARED_LIBRARIES = \
     84 	libwpa_client
     85 endif
     86 
     87 LOCAL_MODULE:= wlan_cu
     88 
     89 include $(BUILD_EXECUTABLE)
     90