1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4STATIC_LIB ?= y 5DEBUG ?= y 6BUILD_SUPPL ?= n 7WPA_ENTERPRISE ?= y 8CONFIG_EAP_WSC ?= n 9HOST_PLATFORM ?= wipp 10 11WILINK_ROOT = ../.. 12CUDK_ROOT ?= $(WILINK_ROOT)/CUDK 13CU_ROOT = $(CUDK_ROOT)/configurationutility 14 15ifeq ($(DEBUG),y) 16 DEBUGFLAGS = -O2 -g -DDEBUG -DTI_DBG -fno-builtin 17else 18 DEBUGFLAGS = -O2 19endif 20 21ifeq ($(DEBUG),y) 22 DEBUGFLAGS = -O2 -g -DDEBUG -DTI_DBG -fno-builtin # "-O" is needed to expand inlines 23# DEBUGFLAGS+= -DDEBUG_MESSAGES 24else 25 DEBUGFLAGS = -O2 26endif 27DEBUGFLAGS += -DHOST_COMPILE 28 29 30DK_DEFINES = 31ifeq ($(WPA_ENTERPRISE), y) 32 DK_DEFINES += -D WPA_ENTERPRISE 33endif 34 35#DK_DEFINES += -D NO_WPA_SUPPL 36 37#Supplicant image building 38ifeq ($(BUILD_SUPPL), y) 39DK_DEFINES += -D WPA_SUPPLICANT -D CONFIG_CTRL_IFACE -D CONFIG_CTRL_IFACE_UNIX 40 -include external/wpa_supplicant/.config 41ifeq ($(CONFIG_EAP_WSC), y) 42DK_DEFINES += -DCONFIG_EAP_WSC 43endif 44endif 45 46ARMFLAGS = -fno-common -g #-fno-builtin -Wall #-pipe 47 48LOCAL_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 66LOCAL_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 73LOCAL_CFLAGS += -Wall -Wstrict-prototypes $(DEBUGFLAGS) -D__LINUX__ $(DK_DEFINES) -D__BYTE_ORDER_LITTLE_ENDIAN -DDRV_NAME='"tiwlan"' 74 75LOCAL_CFLAGS += $(ARMFLAGS) 76 77LOCAL_LDLIBS += -lpthread 78 79LOCAL_STATIC_LIBRARIES = \ 80 libtiOsLib 81 82ifeq ($(BUILD_SUPPL), y) 83LOCAL_SHARED_LIBRARIES = \ 84 libwpa_client 85endif 86 87LOCAL_MODULE:= wlan_cu 88 89include $(BUILD_EXECUTABLE) 90