Add kernel config fragment for CRIU and include the config into scc file.

Signed-off-by: Yang Shi <yang....@windriver.com>
---
 meta/cfg/kernel-cache/features/criu/criu-enable.scc | 4 ++++
 meta/cfg/kernel-cache/features/criu/criu.cfg        | 8 ++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 meta/cfg/kernel-cache/features/criu/criu-enable.scc
 create mode 100644 meta/cfg/kernel-cache/features/criu/criu.cfg

diff --git a/meta/cfg/kernel-cache/features/criu/criu-enable.scc 
b/meta/cfg/kernel-cache/features/criu/criu-enable.scc
new file mode 100644
index 0000000..517c69f
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/criu/criu-enable.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Checkpoint Restore in Userspace"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware criu.cfg
diff --git a/meta/cfg/kernel-cache/features/criu/criu.cfg 
b/meta/cfg/kernel-cache/features/criu/criu.cfg
new file mode 100644
index 0000000..1208618
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/criu/criu.cfg
@@ -0,0 +1,8 @@
+CONFIG_CHECKPOINT_RESTORE=y
+CONFIG_MEM_SOFT_DIRTY=y
+
+CONFIG_PACKET_DIAG=m
+CONFIG_UNIX_DIAG=m
+CONFIG_INET_DIAG=m
+CONFIG_INET_UDP_DIAG=m
+CONFIG_NETLINK_DIAG=m
-- 
2.0.2

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to