From 6dbd4fbadea7bd1522434e12d6b7c305a66e5ff1 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Thu, 5 Dec 2024 16:25:08 +0530 Subject: [PATCH] swmodd: align with bbfdm --- swmodd/Makefile | 5 +++-- swmodd/bbfdm_service.json | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 swmodd/bbfdm_service.json diff --git a/swmodd/Makefile b/swmodd/Makefile index 1fc221fbf..7e1175c87 100755 --- a/swmodd/Makefile +++ b/swmodd/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=swmodd -PKG_VERSION:=2.5.19 +PKG_VERSION:=2.5.20 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) @@ -34,7 +34,7 @@ define Package/swmodd +PACKAGE_lxc:lxc +PACKAGE_liblxc:liblxc +@BUSYBOX_CONFIG_BUSYBOX \ +@BUSYBOX_CONFIG_FEATURE_SHOW_SCRIPT +@BUSYBOX_CONFIG_SCRIPT \ +jq +@CONFIG_KERNEL_CGROUPS +SWMODD_LEGACY_CGROUPS:swmodd-cgroup - DEPENDS+=+libbbfdm-api +libbbfdm-ubus +dm-service + DEPENDS+=+libbbfdm-api +libbbfdm-ubus +dm-service endef define Package/swmodd/description @@ -96,6 +96,7 @@ ifeq ($(CONFIG_PACKAGE_crun),y) $(INSTALL_BIN) ./files/etc/config/crun $(1)/etc/config/crun $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/crun_create $(1)/usr/sbin/crun_create endif + $(BBFDM_REGISTER_SERVICES) ./bbfdm_service.json $(1) $(PKG_NAME) $(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/libswmodd.so $(1) $(PKG_NAME) endef diff --git a/swmodd/bbfdm_service.json b/swmodd/bbfdm_service.json new file mode 100644 index 000000000..9c3357feb --- /dev/null +++ b/swmodd/bbfdm_service.json @@ -0,0 +1,16 @@ +{ + "daemon": { + "enable": "1", + "service_name": "swmodd", + "unified_daemon": false, + "services": [ + { + "parent_dm": "Device.", + "object": "SoftwareModules" + } + ], + "config": { + "loglevel": "3" + } + } +}