criu: add kernel configuration features

criu needs to turn on sock diag features in kernel to do the system dump[1].

Ref:
[1] https://criu.org/Linux_kernel

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Xiangyu Chen 2024-01-07 20:56:07 +08:00 committed by Bruce Ashfield
parent f33765288d
commit e4e2072188
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#Networking options options for sock-diag subsystem
CONFIG_UNIX_DIAG=y
CONFIG_INET_DIAG=y
CONFIG_INET_UDP_DIAG=y
CONFIG_PACKET_DIAG=y
CONFIG_NETLINK_DIAG=y
CONFIG_NETFILTER_XT_MARK=y
CONFIG_TUN=y

View File

@ -0,0 +1,4 @@
define KFEATURE_DESCRIPTION "Enable Networking Features needed by criu."
define KFEATURE_COMPATIBILITY board
kconf non-hardware criu.cfg

View File

@ -6,6 +6,7 @@ SRC_URI += "file://xt-checksum.scc \
file://lxc.scc \
file://docker.scc \
file://cgroup-hugetlb.scc \
file://criu.scc \
"
KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"