package/mosquitto: add dynamic security plugin option

Signed-off-by: Flávio Tapajós <flavio.tapajos@newtesc.com.br>
[Peter: drop default n]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Flávio Tapajós 2024-09-09 14:25:42 -03:00 committed by Peter Korsgaard
parent ec270a0815
commit 03e8d86f45
2 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,15 @@ config BR2_PACKAGE_MOSQUITTO_BROKER
help
Build and install the mosquitto broker onto target.
config BR2_PACKAGE_MOSQUITTO_BROKER_DYNAMIC_SECURITY_PLUGIN
bool "dynamic security plugin"
depends on BR2_PACKAGE_MOSQUITTO_BROKER
select BR2_PACKAGE_CJSON
select BR2_PACKAGE_OPENSSL
help
Build and install the dynamic security plugin for
mosquitto broker onto target.
comment "mosquitto broker needs a toolchain w/ dynamic library"
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS

View File

@ -94,6 +94,10 @@ ifeq ($(BR2_PACKAGE_MOSQUITTO_BROKER),y)
MOSQUITTO_MAKE_DIRS += src apps/mosquitto_ctrl apps/mosquitto_passwd
endif
ifeq ($(BR2_PACKAGE_MOSQUITTO_BROKER_DYNAMIC_SECURITY_PLUGIN),y)
MOSQUITTO_MAKE_DIRS += plugins/dynamic-security
endif
define MOSQUITTO_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DIRS="$(MOSQUITTO_MAKE_DIRS)" \
$(MOSQUITTO_MAKE_OPTS)