mirror of https://github.com/hak5/openwrt.git
hostapd: properly build hostapd-only SSL variants
Make sure hostapd-openssl is actually build against OpenSSL, same
for wolfSSL.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from 987900f2de
)
openwrt-18.06
parent
000a3fef0a
commit
5826efd18c
|
@ -7,7 +7,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=hostapd
|
PKG_NAME:=hostapd
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://w1.fi/hostap.git
|
PKG_SOURCE_URL:=http://w1.fi/hostap.git
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
@ -107,18 +107,18 @@ ifeq ($(LOCAL_VARIANT),full)
|
||||||
DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_DRIVER_11W_SUPPORT)
|
DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_DRIVER_11W_SUPPORT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(LOCAL_TYPE),hostapd)
|
ifeq ($(LOCAL_VARIANT),full)
|
||||||
ifeq ($(LOCAL_VARIANT),full)
|
ifeq ($(SSL_VARIANT),openssl)
|
||||||
ifeq ($(SSL_VARIANT),openssl)
|
DRIVER_MAKEOPTS += CONFIG_TLS=openssl
|
||||||
DRIVER_MAKEOPTS += CONFIG_TLS=openssl
|
TARGET_LDFLAGS += -lcrypto -lssl
|
||||||
TARGET_LDFLAGS += -lcrypto -lssl
|
|
||||||
endif
|
|
||||||
ifeq ($(SSL_VARIANT),wolfssl)
|
|
||||||
DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1
|
|
||||||
TARGET_LDFLAGS += -lwolfssl
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(SSL_VARIANT),wolfssl)
|
||||||
|
DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1
|
||||||
|
TARGET_LDFLAGS += -lwolfssl
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(LOCAL_TYPE),hostapd)
|
||||||
ifeq ($(LOCAL_VARIANT),mesh)
|
ifeq ($(LOCAL_VARIANT),mesh)
|
||||||
ifeq ($(SSL_VARIANT),openssl)
|
ifeq ($(SSL_VARIANT),openssl)
|
||||||
DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
|
DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
|
||||||
|
|
Loading…
Reference in New Issue