1LOCAL_PATH := $(call my-dir) 2 3ifeq ($(TARGET_SIMULATOR),true) 4 $(error This makefile must not be included when building the simulator) 5endif 6 7ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_6_X) 8 WPA_SUPPL_DIR = external/wpa_supplicant_6/wpa_supplicant 9endif 10 11ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X) 12 WPA_SUPPL_DIR = external/wpa_supplicant_8/wpa_supplicant 13endif 14 15include $(WPA_SUPPL_DIR)/android.config 16 17ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) 18 CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y 19endif 20 21L_CFLAGS = -DCONFIG_DRIVER_CUSTOM -DWPA_SUPPLICANT_$(WPA_SUPPLICANT_VERSION) 22L_SRC := 23 24ifdef CONFIG_NO_STDOUT_DEBUG 25L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG 26endif 27 28ifdef CONFIG_DEBUG_FILE 29L_CFLAGS += -DCONFIG_DEBUG_FILE 30endif 31 32ifdef CONFIG_ANDROID_LOG 33L_CFLAGS += -DCONFIG_ANDROID_LOG 34endif 35 36ifdef CONFIG_IEEE8021X_EAPOL 37L_CFLAGS += -DIEEE8021X_EAPOL 38endif 39 40ifdef CONFIG_WPS 41L_CFLAGS += -DCONFIG_WPS 42endif 43 44ifdef CONFIG_DRIVER_WEXT 45L_SRC += driver_mac80211.c 46endif 47 48ifdef CONFIG_DRIVER_NL80211 49L_SRC += driver_mac80211_nl.c 50endif 51 52INCLUDES = $(WPA_SUPPL_DIR) \ 53 $(WPA_SUPPL_DIR)/src \ 54 $(WPA_SUPPL_DIR)/src/common \ 55 $(WPA_SUPPL_DIR)/src/drivers \ 56 $(WPA_SUPPL_DIR)/src/l2_packet \ 57 $(WPA_SUPPL_DIR)/src/utils \ 58 $(WPA_SUPPL_DIR)/src/wps \ 59 external/libnl-headers 60 61include $(CLEAR_VARS) 62LOCAL_MODULE := lib_driver_cmd_wl12xx 63LOCAL_MODULE_TAGS := eng 64LOCAL_SHARED_LIBRARIES := libc libcutils 65LOCAL_STATIC_LIBRARIES := libnl_2 66LOCAL_CFLAGS := $(L_CFLAGS) 67LOCAL_SRC_FILES := $(L_SRC) 68LOCAL_C_INCLUDES := $(INCLUDES) 69include $(BUILD_STATIC_LIBRARY) 70