Home | History | Annotate | Download | only in wpa_supplicant_8_lib
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
     18 
     19 ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
     20   CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
     21 endif
     22 
     23 # Use a custom libnl on releases before N
     24 ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?))
     25 EXTERNAL_VSOC_LIBNL_INCLUDE := external/gce/libnl/include
     26 else
     27 EXTERNAL_VSOC_LIBNL_INCLUDE :=
     28 endif
     29 
     30 
     31 WPA_SUPPL_DIR = external/wpa_supplicant_8
     32 WPA_SRC_FILE :=
     33 
     34 include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config
     35 
     36 WPA_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 
     45 WPA_SUPPL_DIR_INCLUDE += external/libnl/include
     46 
     47 ifdef CONFIG_DRIVER_NL80211
     48 WPA_SRC_FILE += driver_cmd_nl80211.c
     49 endif
     50 
     51 ifeq ($(TARGET_ARCH),arm)
     52 # To force sizeof(enum) = 4
     53 L_CFLAGS += -mabi=aapcs-linux
     54 endif
     55 
     56 ifdef CONFIG_ANDROID_LOG
     57 L_CFLAGS += -DCONFIG_ANDROID_LOG
     58 endif
     59 
     60 ########################
     61 
     62 include $(CLEAR_VARS)
     63 LOCAL_MODULE := lib_driver_cmd_simulated
     64 LOCAL_VENDOR_MODULE := true
     65 LOCAL_SHARED_LIBRARIES := libc libcutils
     66 
     67 LOCAL_CFLAGS := $(L_CFLAGS) \
     68     $(VSOC_VERSION_CFLAGS)
     69 
     70 LOCAL_SRC_FILES := $(WPA_SRC_FILE)
     71 
     72 LOCAL_C_INCLUDES := \
     73   device/google/cuttlefish_common \
     74   $(WPA_SUPPL_DIR_INCLUDE)\
     75 
     76 include $(BUILD_STATIC_LIBRARY)
     77 
     78 ########################
     79 
     80 endif
     81