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 25WPA_SRC_FILE := 26 27include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config 28 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 \ 35 $(WPA_SUPPL_DIR)/src/ap \ 36 $(WPA_SUPPL_DIR)/wpa_supplicant 37 38ifdef CONFIG_DRIVER_NL80211 39WPA_SUPPL_DIR_INCLUDE += external/libnl/include 40WPA_SRC_FILE += driver_cmd_nl80211_extn.c \ 41 driver_cmd_nl80211.c 42endif 43 44ifeq ($(TARGET_ARCH),arm) 45# To force sizeof(enum) = 4 46L_CFLAGS += -mabi=aapcs-linux 47endif 48 49ifdef CONFIG_ANDROID_LOG 50L_CFLAGS += -DCONFIG_ANDROID_LOG 51endif 52 53ifdef CONFIG_P2P 54L_CFLAGS += -DCONFIG_P2P 55endif 56 57L_CFLAGS += -Werror 58 59######################## 60 61include $(CLEAR_VARS) 62LOCAL_MODULE := lib_driver_cmd_qcwcn 63LOCAL_SHARED_LIBRARIES := libc libcutils 64ifneq ($(wildcard external/libnl),) 65LOCAL_SHARED_LIBRARIES += libnl 66endif 67LOCAL_SHARED_LIBRARIES += libdl 68LOCAL_CFLAGS := $(L_CFLAGS) -Wall 69LOCAL_SRC_FILES := $(WPA_SRC_FILE) 70LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE) 71LOCAL_VENDOR_MODULE := true 72LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 73LOCAL_LICENSE_CONDITIONS := notice 74LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE 75include $(BUILD_STATIC_LIBRARY) 76 77######################## 78 79endif 80