monkey: add option for SSL/TLS plugin compilation
This commit add an option to enable SSL/TLS plugin compilation who is not build by default. Signed-off-by: David Pierret <david.pierret@gmail.com> [Thomas: add missing dependency on mbedtls.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
f6aeb6b7df
commit
ca5ae83ccb
|
@ -17,6 +17,12 @@ config BR2_PACKAGE_MONKEY_SHARED
|
||||||
Build Monkey as a shared library in addition to stand-alone
|
Build Monkey as a shared library in addition to stand-alone
|
||||||
server
|
server
|
||||||
|
|
||||||
|
config BR2_PACKAGE_MONKEY_SSL
|
||||||
|
bool "enable SSL/TLS"
|
||||||
|
select BR2_PACKAGE_MBEDTLS
|
||||||
|
help
|
||||||
|
Enable build of the SSL/TLS plugin.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "monkey needs an toolchain w/ threads, dynamic library"
|
comment "monkey needs an toolchain w/ threads, dynamic library"
|
||||||
|
|
|
@ -48,6 +48,11 @@ ifeq ($(BR2_ENABLE_DEBUG),y)
|
||||||
MONKEY_CONF_OPTS += --debug
|
MONKEY_CONF_OPTS += --debug
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_MONKEY_SSL),y)
|
||||||
|
MONKEY_CONF_OPTS += --enable-plugins=tls --mbedtls-shared
|
||||||
|
MONKEY_DEPENDENCIES += mbedtls
|
||||||
|
endif
|
||||||
|
|
||||||
define MONKEY_CONFIGURE_CMDS
|
define MONKEY_CONFIGURE_CMDS
|
||||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(MONKEY_CONF_OPTS))
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(MONKEY_CONF_OPTS))
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue