linux-yocto: add cgroup-hugetlb config

Add kernel config fragment for CONFIG_CGROUP_HUGETLB

This is a recommended config for Kubernetes and k8s
will throw a warning if it is not present.

Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Tim Orling 2020-11-14 19:49:22 -08:00 committed by Bruce Ashfield
parent 08b5de42f9
commit fbfced367d
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# SPDX-License-Identifier: MIT
#
# This requires CONFIG_HUGETLBFS
CONFIG_CGROUP_HUGETLB=y

View File

@ -0,0 +1,5 @@
# SPDX-License-Identifier: MIT
define KFEATURE_DESCRIPTION "Enable hugetlb cgroup"
define KFEATURE_COMPATIBILITY all
kconf non-hardware cgroup-hugetlb.cfg

View File

@ -5,6 +5,7 @@ SRC_URI += "file://xt-checksum.scc \
file://vswitch.scc \ file://vswitch.scc \
file://lxc.scc \ file://lxc.scc \
file://docker.scc \ file://docker.scc \
file://cgroup-hugetlb.scc \
" "
KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}" KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"