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>
Build Monkey as a shared library in addition to stand-alone
server
+config BR2_PACKAGE_MONKEY_SSL
+ bool "enable SSL/TLS"
+ select BR2_PACKAGE_MBEDTLS
+ help
+ Enable build of the SSL/TLS plugin.
+
endif
comment "monkey needs an toolchain w/ threads, dynamic library"
MONKEY_CONF_OPTS += --debug
endif
+ifeq ($(BR2_PACKAGE_MONKEY_SSL),y)
+MONKEY_CONF_OPTS += --enable-plugins=tls --mbedtls-shared
+MONKEY_DEPENDENCIES += mbedtls
+endif
+
define MONKEY_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(MONKEY_CONF_OPTS))
endef