1# Copyright (C) 2016 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16 17ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X) 18 19ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) 20 CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y 21endif 22 23# Use a custom libnl on releases before N 24ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?)) 25EXTERNAL_VSOC_LIBNL_INCLUDE := external/gce/libnl/include 26else 27EXTERNAL_VSOC_LIBNL_INCLUDE := 28endif 29 30 31WPA_SUPPL_DIR = external/wpa_supplicant_8 32WPA_SRC_FILE := 33 34include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config 35 36WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \ 37 $(WPA_SUPPL_DIR)/src/common \ 38 $(WPA_SUPPL_DIR)/src/drivers \ 39 $(WPA_SUPPL_DIR)/src/l2_packet \ 40 $(WPA_SUPPL_DIR)/src/utils \ 41 $(WPA_SUPPL_DIR)/src/wps \ 42 $(WPA_SUPPL_DIR)/wpa_supplicant \ 43 $(EXTERNAL_VSOC_LIBNL_INCLUDE) 44 45WPA_SUPPL_DIR_INCLUDE += external/libnl/include 46 47ifdef CONFIG_DRIVER_NL80211 48WPA_SRC_FILE += driver_cmd_nl80211.c 49endif 50 51ifeq ($(TARGET_ARCH),arm) 52# To force sizeof(enum) = 4 53L_CFLAGS += -mabi=aapcs-linux 54endif 55 56ifdef CONFIG_ANDROID_LOG 57L_CFLAGS += -DCONFIG_ANDROID_LOG 58endif 59 60######################## 61 62include $(CLEAR_VARS) 63LOCAL_MODULE := lib_driver_cmd_simulated 64LOCAL_VENDOR_MODULE := true 65LOCAL_SHARED_LIBRARIES := libc libcutils 66 67LOCAL_CFLAGS := $(L_CFLAGS) \ 68 $(VSOC_VERSION_CFLAGS) 69 70LOCAL_SRC_FILES := $(WPA_SRC_FILE) 71 72LOCAL_C_INCLUDES := \ 73 device/google/cuttlefish_common \ 74 $(WPA_SUPPL_DIR_INCLUDE)\ 75 76include $(BUILD_STATIC_LIBRARY) 77 78######################## 79 80endif 81