• 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
18ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
19
20ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
21  CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
22endif
23
24WPA_SUPPL_DIR = external/wpa_supplicant_8
25
26include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config
27
28WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \
29	$(WPA_SUPPL_DIR)/src/common \
30	$(WPA_SUPPL_DIR)/src/drivers \
31	$(WPA_SUPPL_DIR)/src/l2_packet \
32	$(WPA_SUPPL_DIR)/src/utils \
33	$(WPA_SUPPL_DIR)/src/wps \
34	$(WPA_SUPPL_DIR)/wpa_supplicant
35
36# To force sizeof(enum) = 4
37L_CFLAGS += -mabi=aapcs-linux
38
39ifdef CONFIG_ANDROID_LOG
40L_CFLAGS += -DCONFIG_ANDROID_LOG
41endif
42
43########################
44
45include $(CLEAR_VARS)
46LOCAL_MODULE := lib_driver_cmd_wext
47LOCAL_SHARED_LIBRARIES := libc libcutils
48LOCAL_CFLAGS := $(L_CFLAGS)
49LOCAL_SRC_FILES := driver_cmd_wext.c
50LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE)
51include $(BUILD_STATIC_LIBRARY)
52
53########################
54
55endif
56