From 20b24d56952b6d77ec7c702b19d48acca16f7aa9 Mon Sep 17 00:00:00 2001 From: David Nyström Date: Thu, 6 Dec 2012 14:02:18 +0100 Subject: Added kernel configuration for LxC and in kernel OpenvSwitch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Nyström Reviewed-by: Bruce Ashfield --- recipes-kernel/linux/linux-yocto/lxc.cfg | 22 ++++++++++++++++++++++ recipes-kernel/linux/linux-yocto/lxc.scc | 4 ++++ recipes-kernel/linux/linux-yocto/vswitch.cfg | 2 ++ recipes-kernel/linux/linux-yocto/vswitch.scc | 4 ++++ recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 ++++- 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-yocto/lxc.cfg create mode 100644 recipes-kernel/linux/linux-yocto/lxc.scc create mode 100644 recipes-kernel/linux/linux-yocto/vswitch.cfg create mode 100644 recipes-kernel/linux/linux-yocto/vswitch.scc (limited to 'recipes-kernel') diff --git a/recipes-kernel/linux/linux-yocto/lxc.cfg b/recipes-kernel/linux/linux-yocto/lxc.cfg new file mode 100644 index 00000000..f720ca6d --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/lxc.cfg @@ -0,0 +1,22 @@ +CONFIG_CGROUP_DEVICE=y +CONFIG_CPUSETS=y +CONFIG_PROC_PID_CPUSET=y +CONFIG_RESOURCE_COUNTERS=y +CONFIG_CGROUP_MEM_RES_CTLR=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_SECCOMP=y +CONFIG_SECURITY_APPARMOR=y + +CONFIG_CLS_CGROUP=m +CONFIG_BLK_CGROUP=m +CONFIG_NETPRIO_CGROUP=m + diff --git a/recipes-kernel/linux/linux-yocto/lxc.scc b/recipes-kernel/linux/linux-yocto/lxc.scc new file mode 100644 index 00000000..ee518835 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/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/recipes-kernel/linux/linux-yocto/vswitch.cfg b/recipes-kernel/linux/linux-yocto/vswitch.cfg new file mode 100644 index 00000000..fcc0ca68 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/vswitch.cfg @@ -0,0 +1,2 @@ +CONFIG_OPENVSWITCH=m + diff --git a/recipes-kernel/linux/linux-yocto/vswitch.scc b/recipes-kernel/linux/linux-yocto/vswitch.scc new file mode 100644 index 00000000..2790b4fe --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/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/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend index dc97c1b8..5b163fff 100644 --- a/recipes-kernel/linux/linux-yocto_3.4.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -1,5 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://xt-checksum.scc \ - file://ebtables.scc " + file://ebtables.scc \ + file://vswitch.scc \ + file://lxc.scc \ + " -- cgit v1.2.3-54-g00ecf