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