summaryrefslogtreecommitdiff
path: root/qcwcn/wpa_supplicant_8_lib/Android.mk
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2012-08-19 15:08:56 -0700
committerIliyan Malchev <malchev@google.com>2012-08-19 15:08:56 -0700
commit574336e826eed605a136da678b9b9572cf42ee05 (patch)
treee6694ab352b9d1b2e9150d495de282663e10dcbe /qcwcn/wpa_supplicant_8_lib/Android.mk
parentc000b5a7c6e18017fcf0df9f61ddb6806eef7542 (diff)
downloadwlan-574336e826eed605a136da678b9b9572cf42ee05.tar.gz
Qualcomm version of wpa_supplicant_8_lib
Clones from hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib at the following SHA: commit 24b6e583a57b8c3dd2aa3a79ddbc360ac504d8e9 Merge: 8c73777 4336246 Author: Joe Onorato <joeo@google.com> Date: Fri Aug 17 00:12:06 2012 -0700 am 43362466: Merge "Get rid of LOCAL_MODULE_TAGS := user" * commit '43362466e68ebaed8b7ca5eaf5c9cede8b7a0f57': Get rid of LOCAL_MODULE_TAGS := user Change-Id: I115c68b0952239b22e7e90436ff5c34e62dcd7f0 Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'qcwcn/wpa_supplicant_8_lib/Android.mk')
-rw-r--r--qcwcn/wpa_supplicant_8_lib/Android.mk65
1 files changed, 65 insertions, 0 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/Android.mk b/qcwcn/wpa_supplicant_8_lib/Android.mk
new file mode 100644
index 0000000..af3adf9
--- /dev/null
+++ b/qcwcn/wpa_supplicant_8_lib/Android.mk
@@ -0,0 +1,65 @@
+#
+# Copyright (C) 2008 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+LOCAL_PATH := $(call my-dir)
+
+ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
+
+ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
+ CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
+endif
+
+WPA_SUPPL_DIR = external/wpa_supplicant_8
+WPA_SRC_FILE :=
+
+include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config
+
+WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \
+ $(WPA_SUPPL_DIR)/src/common \
+ $(WPA_SUPPL_DIR)/src/drivers \
+ $(WPA_SUPPL_DIR)/src/l2_packet \
+ $(WPA_SUPPL_DIR)/src/utils \
+ $(WPA_SUPPL_DIR)/src/wps \
+ $(WPA_SUPPL_DIR)/wpa_supplicant
+
+ifdef CONFIG_DRIVER_NL80211
+WPA_SUPPL_DIR_INCLUDE += external/libnl-headers
+WPA_SRC_FILE += driver_cmd_nl80211.c
+endif
+
+ifdef CONFIG_DRIVER_WEXT
+WPA_SRC_FILE += driver_cmd_wext.c
+endif
+
+# To force sizeof(enum) = 4
+L_CFLAGS += -mabi=aapcs-linux
+
+ifdef CONFIG_ANDROID_LOG
+L_CFLAGS += -DCONFIG_ANDROID_LOG
+endif
+
+########################
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := lib_driver_cmd_bcmdhd
+LOCAL_SHARED_LIBRARIES := libc libcutils
+LOCAL_CFLAGS := $(L_CFLAGS)
+LOCAL_SRC_FILES := $(WPA_SRC_FILE)
+LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE)
+include $(BUILD_STATIC_LIBRARY)
+
+########################
+
+endif