aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Android.mk
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2014-02-19 00:26:10 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-19 12:10:12 (GMT)
commitac494fcce4270dbd076ab1d167dbffd6e0f7060b (patch)
tree222ab2709d2a7347a76a39db8900c633010a5765 /wpa_supplicant/Android.mk
parentb7cac4125413dedabc3d6c0bae8e3b334e161138 (diff)
downloadhostap-ac494fcce4270dbd076ab1d167dbffd6e0f7060b.zip
hostap-ac494fcce4270dbd076ab1d167dbffd6e0f7060b.tar.gz
hostap-ac494fcce4270dbd076ab1d167dbffd6e0f7060b.tar.bz2
Android: Use external libnl 2.0 dynamic library
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wpa_supplicant/Android.mk')
-rw-r--r--wpa_supplicant/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 9b07460..2880b2d 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -70,8 +70,12 @@ INCLUDES += $(LOCAL_PATH)/src/wps
INCLUDES += external/openssl/include
INCLUDES += system/security/keystore/include
ifdef CONFIG_DRIVER_NL80211
+ifneq ($(wildcard external/libnl),)
+INCLUDES += external/libnl/include
+else
INCLUDES += external/libnl-headers
endif
+endif
ifdef CONFIG_FIPS
CONFIG_NO_RANDOM_POOL=
@@ -1568,8 +1572,12 @@ ifeq ($(CONFIG_TLS), openssl)
LOCAL_SHARED_LIBRARIES += libcrypto libssl libkeystore_binder
endif
ifdef CONFIG_DRIVER_NL80211
+ifneq ($(wildcard external/libnl),)
+LOCAL_SHARED_LIBRARIES += libnl
+else
LOCAL_STATIC_LIBRARIES += libnl_2
endif
+endif
LOCAL_CFLAGS := $(L_CFLAGS)
LOCAL_SRC_FILES := $(OBJS)
LOCAL_C_INCLUDES := $(INCLUDES)