mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
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:
parent
08b5de42f9
commit
fbfced367d
5
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg
Normal file
5
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
#
|
||||||
|
# This requires CONFIG_HUGETLBFS
|
||||||
|
|
||||||
|
CONFIG_CGROUP_HUGETLB=y
|
5
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc
Normal file
5
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc
Normal 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
|
|
@ -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)}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user