hostapd: Add build options for selecting eloop type

This adds CONFIG_ELOOP_POLL=y and CONFIG_ELOOP_EPOLL=y options to
hostapd build options similarly to how these were implemented for
wpa_supplicant.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-07-23 18:45:31 +03:00 committed by Jouni Malinen
parent 7c524a64c1
commit de01710b08
4 changed files with 29 additions and 0 deletions

View file

@ -127,6 +127,15 @@ endif
endif endif
OBJS += src/utils/eloop.c OBJS += src/utils/eloop.c
ifdef CONFIG_ELOOP_POLL
L_CFLAGS += -DCONFIG_ELOOP_POLL
endif
ifdef CONFIG_ELOOP_EPOLL
L_CFLAGS += -DCONFIG_ELOOP_EPOLL
endif
OBJS += src/utils/common.c OBJS += src/utils/common.c
OBJS += src/utils/wpa_debug.c OBJS += src/utils/wpa_debug.c
OBJS += src/utils/wpabuf.c OBJS += src/utils/wpabuf.c

View file

@ -107,6 +107,14 @@ LIBS_h += -lrt
LIBS_n += -lrt LIBS_n += -lrt
endif endif
ifdef CONFIG_ELOOP_POLL
CFLAGS += -DCONFIG_ELOOP_POLL
endif
ifdef CONFIG_ELOOP_EPOLL
CFLAGS += -DCONFIG_ELOOP_EPOLL
endif
OBJS += ../src/utils/common.o OBJS += ../src/utils/common.o
OBJS_c += ../src/utils/common.o OBJS_c += ../src/utils/common.o
OBJS += ../src/utils/wpa_debug.o OBJS += ../src/utils/wpa_debug.o

View file

@ -180,6 +180,12 @@ CONFIG_OS=unix
#LIBS_p += -lbfd -liberty -lz #LIBS_p += -lbfd -liberty -lz
#LIBS_c += -lbfd -liberty -lz #LIBS_c += -lbfd -liberty -lz
# Should we use poll instead of select? Select is used by default.
#CONFIG_ELOOP_POLL=y
# Should we use epoll instead of select? Select is used by default.
#CONFIG_ELOOP_EPOLL=y
# Enable AP # Enable AP
CONFIG_AP=y CONFIG_AP=y

View file

@ -240,6 +240,12 @@ CONFIG_IPV6=y
# requirements described above. # requirements described above.
#CONFIG_NO_RANDOM_POOL=y #CONFIG_NO_RANDOM_POOL=y
# Should we use poll instead of select? Select is used by default.
#CONFIG_ELOOP_POLL=y
# Should we use epoll instead of select? Select is used by default.
#CONFIG_ELOOP_EPOLL=y
# Select TLS implementation # Select TLS implementation
# openssl = OpenSSL (default) # openssl = OpenSSL (default)
# gnutls = GnuTLS # gnutls = GnuTLS