diff options
author | Koen Kooi <koen@openembedded.org> | 2010-06-18 12:02:03 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-06-18 12:02:03 +0200 |
commit | cdfe641ca1ac5a6a144c9b70d5b3238a12a9d6cd (patch) | |
tree | a6c40fc542ae694e6a0d7132b6d3acff99209eb6 | |
parent | 7cdfbc23dc652d4c0a43d0cebc27b43fd2421020 (diff) |
linux.inc: add config mangler to enable cgroups support, disabled by default
* set KERNEL_ENABLE_CGROUPS = "1" in your distro/local.conf to enable this
* CGROUPS were added in 2.6.24
-rw-r--r-- | recipes/linux/linux.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc index e0205890cd..8d430e27d9 100644 --- a/recipes/linux/linux.inc +++ b/recipes/linux/linux.inc @@ -164,6 +164,23 @@ do_configure_prepend() { echo 'CONFIG_DEVTMPFS_MOUNT=y' >> ${S}/.config fi + # Newer inits like systemd need cgroup support + if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then + sed -e /CONFIG_CGROUP_SCHED/d \ + -e /CONFIG_CGROUPS/d \ + -i '${S}/.config' + + echo 'CONFIG_CGROUP_SCHED=y' >> ${S}/.config + echo 'CONFIG_CGROUPS=y' >> ${S}/.config + echo 'CONFIG_CGROUP_NS=y' >> ${S}/.config + echo 'CONFIG_CGROUP_FREEZER=y' >> ${S}/.config + echo 'CONFIG_CGROUP_DEVICE=y' >> ${S}/.config + echo 'CONFIG_CPUSETS=y' >> ${S}/.config + echo 'CONFIG_PROC_PID_CPUSET=y' >> ${S}/.config + echo 'CONFIG_CGROUP_CPUACCT=y' >> ${S}/.config + echo 'CONFIG_RESOURCE_COUNTERS=y' >> ${S}/.config + fi + # # root-over-nfs-over-usb-eth support. Limited, but should cover some cases. # Enable this by setting a proper CMDLINE_NFSROOT_USB. |