• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
18ifndef WPA_SUPPLICANT_VERSION
19WPA_SUPPLICANT_VERSION := VER_0_5_X
20endif
21
22ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_5_X)
23WPA_SUPPL_DIR = external/wpa_supplicant
24else
25WPA_SUPPL_DIR = external/wpa_supplicant_6/wpa_supplicant
26endif
27WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)
28ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_6_X)
29WPA_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
35endif
36
37DK_ROOT = hardware/ti/wlan/$(BOARD_WLAN_DEVICE)
38OS_ROOT = $(DK_ROOT)/platforms
39STAD	= $(DK_ROOT)/stad
40UTILS	= $(DK_ROOT)/utils
41TWD	= $(DK_ROOT)/TWD
42COMMON  = $(DK_ROOT)/common
43TXN	= $(DK_ROOT)/Txn
44CUDK	= $(DK_ROOT)/CUDK
45LIB	= ../../lib
46
47include $(WPA_SUPPL_DIR)/android.config
48
49INCLUDES = $(STAD)/Export_Inc \
50	$(STAD)/src/Application \
51	$(UTILS) \
52	$(OS_ROOT)/os/linux/inc \
53	$(OS_ROOT)/os/common/inc \
54	$(TWD)/TWDriver \
55	$(TWD)/FirmwareApi \
56	$(TWD)/TwIf \
57	$(TWD)/FW_Transfer/Export_Inc \
58	$(TXN) \
59	$(CUDK)/configurationutility/inc \
60	$(CUDK)/os/common/inc \
61	external/openssl/include \
62	$(WPA_SUPPL_DIR_INCLUDE) \
63	$(DK_ROOT)/../lib
64
65L_CFLAGS = -DCONFIG_DRIVER_CUSTOM -DHOST_COMPILE -D__BYTE_ORDER_LITTLE_ENDIAN
66L_CFLAGS += -DWPA_SUPPLICANT_$(WPA_SUPPLICANT_VERSION)
67OBJS = driver_ti.c $(LIB)/scanmerge.c $(LIB)/shlist.c
68
69# To force sizeof(enum) = 4
70L_CFLAGS += -mabi=aapcs-linux
71
72ifdef CONFIG_NO_STDOUT_DEBUG
73L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
74endif
75
76ifdef CONFIG_DEBUG_FILE
77L_CFLAGS += -DCONFIG_DEBUG_FILE
78endif
79
80ifdef CONFIG_ANDROID_LOG
81L_CFLAGS += -DCONFIG_ANDROID_LOG
82endif
83
84ifdef CONFIG_IEEE8021X_EAPOL
85L_CFLAGS += -DIEEE8021X_EAPOL
86endif
87
88ifdef CONFIG_WPS
89L_CFLAGS += -DCONFIG_WPS
90endif
91
92########################
93
94include $(CLEAR_VARS)
95LOCAL_MODULE := libCustomWifi
96LOCAL_SHARED_LIBRARIES := libc libcutils
97LOCAL_CFLAGS := $(L_CFLAGS)
98LOCAL_SRC_FILES := $(OBJS)
99LOCAL_C_INCLUDES := $(INCLUDES)
100include $(BUILD_STATIC_LIBRARY)
101
102########################
103