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