Return-Path: Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 25C45E01468 for ; Thu, 6 Dec 2012 05:45:16 -0800 (PST) Received: by mail-ea0-f176.google.com with SMTP id d13so2770405eaa.35 for ; Thu, 06 Dec 2012 05:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=j/3yLcRR7EU89cMC8rMHS9fa2t/4i/1z7UXQud077Vk=; b=hKY4dKwtaeV5aZl5qo2PryxeNFBIrja8whGrGb90hpOb3br8QfyLpityqwF8r1TGUk eWYHbmzBtfkRyiHVzCuJOH9UGsLOnsr5G2qTNnDtuBix75wPj3d+f4fpbUKqxLd4nTP9 bDgCeslBQOap53n/kO+NaVgClb59Qfw3tjC5S5BsB3BLbtFoNMITHPfaCw9aR+gmYz+i K2ieVa95VBkfoKTnT1lvyQYJw+ol9Q173estBT3/xh6kQX4LPfogsccu3UZLqSEhohr+ hb+5rCSf/yAFGFwlJLJ/x7YLbFzVxqS5PMFJ95lT4so3f0UfOY3BWc98FU50tbrDxikE L4NA== Received: by 10.14.173.65 with SMTP id u41mr5992595eel.13.1354801516860; Thu, 06 Dec 2012 05:45:16 -0800 (PST) Received: from nysan (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPS id q44sm16012195eep.5.2012.12.06.05.45.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 05:45:15 -0800 (PST) Received: by nysan (Postfix, from userid 1000) id 004204011BC; Thu, 6 Dec 2012 14:45:06 +0100 (CET) From: david.c.nystrom@gmail.com To: meta-virtualization@yoctoproject.org Date: Thu, 6 Dec 2012 14:44:46 +0100 Message-Id: <1354801486-9482-15-git-send-email-david.nystrom@enea.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1354801486-9482-1-git-send-email-david.nystrom@enea.com> References: <1354801486-9482-1-git-send-email-david.nystrom@enea.com> MIME-Version: 1.0 Subject: [PATCH 14/14] Added kernel configuration for LxC and in kernel OpenvSwitch X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 13:45:17 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: David Nyström --- 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 + 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