swmodd: config option to select swmodd-cgroups

This commit is contained in:
Vivek Kumar Dutta 2024-06-04 22:32:48 +05:30
parent 8456cf37e3
commit d2c3cda897
2 changed files with 13 additions and 3 deletions

View file

@ -81,3 +81,11 @@ config SWMODD_NETWORKING
select PACKAGE_kmod-macvlan
help
Enable "veth pair device" and "macvlan"
config SWMODD_LEGACY_CGROUPS
bool "Enables CGroups V1 Support"
depends on PACKAGE_swmodd
default y
help
If this option is selected, it selects swmod-cgroup package, which mounts
GGroupV1 hierarchy on system start

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=swmodd
PKG_VERSION:=2.5.7
PKG_VERSION:=2.5.8
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
@ -33,7 +33,10 @@ define Package/swmodd
DEPENDS:=+libuci +libubox +ubus +libuuid +opkg +libcurl \
+PACKAGE_lxc:lxc +PACKAGE_liblxc:liblxc +@BUSYBOX_CONFIG_BUSYBOX \
+@BUSYBOX_CONFIG_FEATURE_SHOW_SCRIPT +@BUSYBOX_CONFIG_SCRIPT \
+swmodd-cgroup +jq +libbbfdm-api
+jq +libbbfdm-api +@CONFIG_KERNEL_CGROUPS
ifeq ($(CONFIG_SWMODD_LEGACY_CGROUPS),y)
DEPENDS+=+swmodd-cgroup
endif
endef
define Package/swmodd/description
@ -49,7 +52,6 @@ define Package/swmodd-cgroup
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:= Cgroup mount handler for Software modules daemon
DEPENDS:=+@CONFIG_KERNEL_CGROUPS
endef
TARGET_CFLAGS += \