Fix that KERNEL_CGROUPS is enabled (selected) automatically along with
cgroups-mount
Replace "if PACKAGE_docker-ce" with a menu to avoid circular denpendency
issue involving PACKAGE_docker-ce, PACKAGE_cgroups-mount and
KERNEL_CGRUOPS
docker-ce, lxc: replace KERNEL_LXC_MISC with more specific options
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
-PKG_BUILD_PARALLEL:=1
-
include $(INCLUDE_DIR)/package.mk
-define Package/cgroupfs-mount/config
-config CGROUPFS_MOUNT_CGROUPS
- depends on PACKAGE_cgroupfs-mount
- bool "Enable support for cgroups in the kernel"
- default y
- select KERNEL_CGROUPS
-endef
-
define Package/cgroupfs-mount
SECTION:=utils
CATEGORY:=Utilities
TITLE:=cgroup mount scripts
- DEPENDS:=+mount-utils
+ DEPENDS:=@KERNEL_CGROUPS +mount-utils
MENU:=1
endef
-if PACKAGE_docker-ce
+menu "Kernel features for Docker"
config DOCKER_KERNEL_OPTIONS
bool "Enable Basic kernel support for Docker"
default n
select KERNEL_CPUSETS
select KERNEL_MEMCG
select KERNEL_KEYS
- select KERNEL_LXC_MISC
+ select KERNEL_DEVPTS_MULTIPLE_INSTANCES
select KERNEL_POSIX_MQUEUE
help
Select needed kernel options for Docker. Options include
select PACKAGE_kmod-fs-btrfs
select KERNEL_BTRFS_FS_POSIX_ACL
endmenu
-endif
+endmenu
default n
select KERNEL_CGROUPS
select KERNEL_NAMESPACES
- select KERNEL_LXC_MISC
+ select KERNEL_DEVPTS_MULTIPLE_INSTANCES
+ select KERNEL_POSIX_MQUEUE
select KERNEL_CGROUP_SCHED
select KERNEL_FAIR_GROUP_SCHED
select KERNEL_RT_GROUP_SCHED