Commit | Line | Data |
---|---|---|
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 | # | |
16 | LOCAL_PATH := $(call my-dir) | |
17 | ||
18 | ##### For Google SUPPLICANT ##### | |
19 | ifeq ($(MTKPATH),) | |
20 | $(warning build BASIC wpa_supplicant) | |
21 | WPA_SUPPL_DIR = external/wpa_supplicant_8 | |
22 | WPA_SRC_FILE := | |
23 | ||
24 | ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) | |
25 | CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y | |
26 | endif | |
27 | ifneq ($(BOARD_HOSTAPD_DRIVER),) | |
28 | CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y | |
29 | endif | |
30 | ||
31 | include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config | |
32 | ||
33 | WPA_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 | ||
41 | ifdef CONFIG_DRIVER_NL80211 | |
42 | WPA_SUPPL_DIR_INCLUDE += external/libnl/include | |
43 | WPA_SRC_FILE += mediatek_driver_cmd_nl80211.c | |
44 | endif | |
45 | ||
46 | ifdef CONFIG_DRIVER_WEXT | |
47 | #error doesn't support CONFIG_DRIVER_WEXT | |
48 | endif | |
49 | ||
50 | # To force sizeof(enum) = 4 | |
51 | ifeq ($(TARGET_ARCH),arm) | |
52 | L_CFLAGS += -mabi=aapcs-linux | |
53 | endif | |
54 | ||
55 | ifdef CONFIG_ANDROID_LOG | |
56 | L_CFLAGS += -DCONFIG_ANDROID_LOG | |
57 | endif | |
58 | ||
59 | ######################## | |
60 | include $(CLEAR_VARS) | |
61 | LOCAL_MODULE := lib_driver_cmd_mt66xx | |
62 | LOCAL_SHARED_LIBRARIES := libc libcutils | |
63 | LOCAL_CFLAGS := $(L_CFLAGS) | |
64 | LOCAL_SRC_FILES := $(WPA_SRC_FILE) | |
65 | LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE) | |
66 | include $(BUILD_STATIC_LIBRARY) | |
67 | ######################## | |
68 | endif |