1 # 2 # Copyright (C) 2008 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 LOCAL_PATH := $(call my-dir) 17 18 ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X) 19 20 ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) 21 CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y 22 endif 23 24 WPA_SUPPL_DIR = external/wpa_supplicant_8 25 WPA_SRC_FILE := 26 27 include $(WPA_SUPPL_DIR)/wpa_supplicant/.config 28 29 WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \ 30 $(WPA_SUPPL_DIR)/src/common \ 31 $(WPA_SUPPL_DIR)/src/drivers \ 32 $(WPA_SUPPL_DIR)/src/l2_packet \ 33 $(WPA_SUPPL_DIR)/src/utils \ 34 $(WPA_SUPPL_DIR)/src/wps \ 35 $(WPA_SUPPL_DIR)/wpa_supplicant 36 37 ifdef CONFIG_DRIVER_NL80211 38 WPA_SUPPL_DIR_INCLUDE += external/libnl-headers 39 WPA_SRC_FILE += driver_cmd_nl80211.c 40 endif 41 42 ifdef CONFIG_DRIVER_WEXT 43 WPA_SRC_FILE += driver_cmd_wext.c 44 endif 45 46 # To force sizeof(enum) = 4 47 L_CFLAGS += -mabi=aapcs-linux 48 49 ifdef CONFIG_ANDROID_LOG 50 L_CFLAGS += -DCONFIG_ANDROID_LOG 51 endif 52 53 ######################## 54 55 include $(CLEAR_VARS) 56 LOCAL_MODULE := lib_driver_cmd_bcmdhd 57 LOCAL_SHARED_LIBRARIES := libc libcutils 58 LOCAL_CFLAGS := $(L_CFLAGS) 59 LOCAL_SRC_FILES := $(WPA_SRC_FILE) 60 LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE) 61 include $(BUILD_STATIC_LIBRARY) 62 63 ######################## 64 65 endif 66