Enable cgroups, docker, ebtables, lxc, vmswitch, xt-checksum configs to support
ocicontainers

Signed-off-by: Sai Hari Chandana Kalluri <[email protected]>
---
 features/ocicontainer/cgroup.scc       |  4 ++++
 features/ocicontainer/docker.cfg       | 12 ++++++++++++
 features/ocicontainer/docker.scc       |  4 ++++
 features/ocicontainer/ebtables.cfg     |  2 ++
 features/ocicontainer/ebtables.scc     |  4 ++++
 features/ocicontainer/lxc.cfg          | 33 +++++++++++++++++++++++++++++++++
 features/ocicontainer/lxc.scc          |  4 ++++
 features/ocicontainer/ocicontainer.scc |  7 +++++++
 features/ocicontainer/vswitch.cfg      |  3 +++
 features/ocicontainer/vswitch.scc      |  4 ++++
 features/ocicontainer/xt-checksum.cfg  |  1 +
 features/ocicontainer/xt-checksum.scc  |  4 ++++
 12 files changed, 82 insertions(+)
 create mode 100644 features/ocicontainer/cgroup.scc
 create mode 100644 features/ocicontainer/docker.cfg
 create mode 100644 features/ocicontainer/docker.scc
 create mode 100644 features/ocicontainer/ebtables.cfg
 create mode 100644 features/ocicontainer/ebtables.scc
 create mode 100644 features/ocicontainer/lxc.cfg
 create mode 100644 features/ocicontainer/lxc.scc
 create mode 100644 features/ocicontainer/ocicontainer.scc
 create mode 100644 features/ocicontainer/vswitch.cfg
 create mode 100644 features/ocicontainer/vswitch.scc
 create mode 100644 features/ocicontainer/xt-checksum.cfg
 create mode 100644 features/ocicontainer/xt-checksum.scc

diff --git a/features/ocicontainer/cgroup.scc b/features/ocicontainer/cgroup.scc
new file mode 100644
index 0000000..4bfbcce
--- /dev/null
+++ b/features/ocicontainer/cgroup.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable cgroups needed to run containerd"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware features/cgroups/cgroups.cfg
diff --git a/features/ocicontainer/docker.cfg b/features/ocicontainer/docker.cfg
new file mode 100644
index 0000000..79012a6
--- /dev/null
+++ b/features/ocicontainer/docker.cfg
@@ -0,0 +1,12 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
+CONFIG_IP_NF_FILTER=m
+CONFIG_NF_NAT=m
+CONFIG_NF_CONNTRACK=y
+
+CONFIG_DM_THIN_PROVISIONING=m
+
+
+CONFIG_IP_NF_NAT=m
+CONFIG_IP_NF_TARGET_MASQUERADE=m
+
+CONFIG_OVERLAY_FS=y
diff --git a/features/ocicontainer/docker.scc b/features/ocicontainer/docker.scc
new file mode 100644
index 0000000..e317456
--- /dev/null
+++ b/features/ocicontainer/docker.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition to 
LXC features"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
diff --git a/features/ocicontainer/ebtables.cfg 
b/features/ocicontainer/ebtables.cfg
new file mode 100644
index 0000000..a3c514e
--- /dev/null
+++ b/features/ocicontainer/ebtables.cfg
@@ -0,0 +1,2 @@
+CONFIG_BRIDGE_NF_EBTABLES=m
+CONFIG_BRIDGE_EBT_T_NAT=m
diff --git a/features/ocicontainer/ebtables.scc 
b/features/ocicontainer/ebtables.scc
new file mode 100644
index 0000000..b3895e5
--- /dev/null
+++ b/features/ocicontainer/ebtables.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable ebtables support"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware ebtables.cfg
diff --git a/features/ocicontainer/lxc.cfg b/features/ocicontainer/lxc.cfg
new file mode 100644
index 0000000..3fefc03
--- /dev/null
+++ b/features/ocicontainer/lxc.cfg
@@ -0,0 +1,33 @@
+CONFIG_CGROUP_DEVICE=y
+CONFIG_CPUSETS=y
+CONFIG_PROC_PID_CPUSET=y
+CONFIG_MEMCG=y
+CONFIG_CGROUP_SCHED=y
+CONFIG_FAIR_GROUP_SCHED=y
+CONFIG_RT_GROUP_SCHED=y
+CONFIG_CHECKPOINT_RESTORE=y
+CONFIG_NAMESPACES=y
+CONFIG_UTS_NS=y
+CONFIG_IPC_NS=y
+CONFIG_USER_NS=y
+CONFIG_PID_NS=y
+CONFIG_NET_NS=y
+
+CONFIG_NET_CLS_CGROUP=m
+CONFIG_BLK_CGROUP=y
+CONFIG_CGROUP_NET_PRIO=y
+
+# Virtual drivers
+CONFIG_HVC_DRIVER=y
+
+# Base support for live boot
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_NLS_CODEPAGE_437=y
+CONFIG_NLS_ISO8859_1=y
+CONFIG_VFAT_FS=y
+CONFIG_RD_GZIP=y
+
+# Support for virtual ethernet and LXC
+CONFIG_VETH=y
+CONFIG_MACVLAN=y
+CONFIG_VXLAN=m
diff --git a/features/ocicontainer/lxc.scc b/features/ocicontainer/lxc.scc
new file mode 100644
index 0000000..ee51883
--- /dev/null
+++ b/features/ocicontainer/lxc.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by LxC, namespaces, 
cgroups et.c."
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware lxc.cfg
diff --git a/features/ocicontainer/ocicontainer.scc 
b/features/ocicontainer/ocicontainer.scc
new file mode 100644
index 0000000..211568c
--- /dev/null
+++ b/features/ocicontainer/ocicontainer.scc
@@ -0,0 +1,7 @@
+include xt-checksum.scc
+include ebtables.scc
+include vswitch.scc
+include lxc.scc
+include docker.scc
+include cgroup.scc
+
diff --git a/features/ocicontainer/vswitch.cfg 
b/features/ocicontainer/vswitch.cfg
new file mode 100644
index 0000000..b1fefc0
--- /dev/null
+++ b/features/ocicontainer/vswitch.cfg
@@ -0,0 +1,3 @@
+CONFIG_OPENVSWITCH=m
+CONFIG_NET_SCH_INGRESS=m
+CONFIG_NET_ACT_POLICE=m
diff --git a/features/ocicontainer/vswitch.scc 
b/features/ocicontainer/vswitch.scc
new file mode 100644
index 0000000..2790b4f
--- /dev/null
+++ b/features/ocicontainer/vswitch.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable in kernel OpenvSwitch module"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware vswitch.cfg
diff --git a/features/ocicontainer/xt-checksum.cfg 
b/features/ocicontainer/xt-checksum.cfg
new file mode 100644
index 0000000..58afbff
--- /dev/null
+++ b/features/ocicontainer/xt-checksum.cfg
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
diff --git a/features/ocicontainer/xt-checksum.scc 
b/features/ocicontainer/xt-checksum.scc
new file mode 100644
index 0000000..d3804f0
--- /dev/null
+++ b/features/ocicontainer/xt-checksum.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Add extra iptables modules"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware xt-checksum.cfg
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8620): 
https://lists.yoctoproject.org/g/linux-yocto/message/8620
Mute This Topic: https://lists.yoctoproject.org/mt/73235222/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to