[meta-virtualization] [PATCHv4 12/15] Added kernel configuration for LxC and in kernel OpenvSwitch
Bruce Ashfield
bruce.ashfield at gmail.com
Thu Dec 6 12:47:19 PST 2012
On Thu, Dec 6, 2012 at 12:06 PM, <david.c.nystrom at gmail.com> wrote:
> From: David Nyström <david.nystrom at enea.com>
>
> ---
> 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
>
> diff --git a/recipes-kernel/linux/linux-yocto/lxc.cfg
> b/recipes-kernel/linux/linux-yocto/lxc.cfg
> new file mode 100644
> index 0000000..f720ca6
> --- /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
>
This looks good as a start for a new feature fragment, we also have parts
of these same configs covered here:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/tree/features/namespaces/namespaces.cfg
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/tree/features/cgroups/cgroups.cfg
And a few other configuration items in other spots. I like this because it
is standalone and gets you everything you need for the advertised feature,
and I only mention the other items so they won't be a surprise, and in
future
work of yocto 1.4+ we'll have some options to share them, allowing their
reuse without too tight a binding to a particular kernel tree.
Cheers,
Bruce
> +
> diff --git a/recipes-kernel/linux/linux-yocto/lxc.scc
> b/recipes-kernel/linux/linux-yocto/lxc.scc
> new file mode 100644
> index 0000000..ee51883
> --- /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 0000000..fcc0ca6
> --- /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 0000000..2790b4f
> --- /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 dc97c1b..5b163ff 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 \
> + "
>
> --
> 1.7.9.5
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20121206/2456af4f/attachment.html>
More information about the meta-virtualization
mailing list