update init library
[GitHub/mt8127/android_device_alcatel_ttab.git] / wpa_supplicant_8_lib / Android.mk
CommitLineData
f3fa1980
S
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#
16LOCAL_PATH := $(call my-dir)
17
18##### For Google SUPPLICANT #####
19ifeq ($(MTKPATH),)
20 $(warning build BASIC wpa_supplicant)
21 WPA_SUPPL_DIR = external/wpa_supplicant_8
22 WPA_SRC_FILE :=
23
24ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
25 CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
26endif
27ifneq ($(BOARD_HOSTAPD_DRIVER),)
28 CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y
29endif
30
31include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config
32
33WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \
34 $(WPA_SUPPL_DIR)/src/common \
35 $(WPA_SUPPL_DIR)/src/drivers \
36 $(WPA_SUPPL_DIR)/src/l2_packet \
37 $(WPA_SUPPL_DIR)/src/utils \
38 $(WPA_SUPPL_DIR)/src/wps \
39 $(WPA_SUPPL_DIR)/wpa_supplicant
40
41ifdef CONFIG_DRIVER_NL80211
42WPA_SUPPL_DIR_INCLUDE += external/libnl/include
43WPA_SRC_FILE += mediatek_driver_cmd_nl80211.c
44endif
45
46ifdef CONFIG_DRIVER_WEXT
47#error doesn't support CONFIG_DRIVER_WEXT
48endif
49
50# To force sizeof(enum) = 4
51ifeq ($(TARGET_ARCH),arm)
52L_CFLAGS += -mabi=aapcs-linux
53endif
54
55ifdef CONFIG_ANDROID_LOG
56L_CFLAGS += -DCONFIG_ANDROID_LOG
57endif
58
59########################
60include $(CLEAR_VARS)
61LOCAL_MODULE := lib_driver_cmd_mt66xx
62LOCAL_SHARED_LIBRARIES := libc libcutils
63LOCAL_CFLAGS := $(L_CFLAGS)
64LOCAL_SRC_FILES := $(WPA_SRC_FILE)
65LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE)
66include $(BUILD_STATIC_LIBRARY)
67########################
68endif