aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/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 /hostapd/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 'hostapd/Android.mk')
-rw-r--r--hostapd/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 6e37beb..5d6fe56 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -51,8 +51,12 @@ INCLUDES += $(LOCAL_PATH)/src/utils
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
ifndef CONFIG_OS
@@ -910,8 +914,12 @@ LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB)
endif
LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl
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)