From 03e8d86f457809f5f5ac3200f0b2612d86b4c006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Tapaj=C3=B3s?= Date: Mon, 9 Sep 2024 14:25:42 -0300 Subject: [PATCH] package/mosquitto: add dynamic security plugin option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Flávio Tapajós [Peter: drop default n] Signed-off-by: Peter Korsgaard --- package/mosquitto/Config.in | 9 +++++++++ package/mosquitto/mosquitto.mk | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/package/mosquitto/Config.in b/package/mosquitto/Config.in index 8bedf2ad21..339df8fddb 100644 --- a/package/mosquitto/Config.in +++ b/package/mosquitto/Config.in @@ -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 diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk index 6b249c37fd..c031f10c6b 100644 --- a/package/mosquitto/mosquitto.mk +++ b/package/mosquitto/mosquitto.mk @@ -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)