diff options
author | Tim Orling <ticotimo@gmail.com> | 2020-11-14 19:49:22 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-11-19 11:07:33 -0500 |
commit | fbfced367daaca778bda733f11c36973577c2456 (patch) | |
tree | 18e3fb0e48339f9199f8dbe70e7ef5c8cb944951 /recipes-kernel | |
parent | 08b5de42f9216a10bb2f83263b7e6789686b4c3d (diff) | |
download | meta-virtualization-fbfced367daaca778bda733f11c36973577c2456.tar.gz |
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>
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg new file mode 100644 index 00000000..417ca249 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg | |||
@@ -0,0 +1,5 @@ | |||
1 | # SPDX-License-Identifier: MIT | ||
2 | # | ||
3 | # This requires CONFIG_HUGETLBFS | ||
4 | |||
5 | CONFIG_CGROUP_HUGETLB=y | ||
diff --git a/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc new file mode 100644 index 00000000..7d1f9997 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc | |||
@@ -0,0 +1,5 @@ | |||
1 | # SPDX-License-Identifier: MIT | ||
2 | define KFEATURE_DESCRIPTION "Enable hugetlb cgroup" | ||
3 | define KFEATURE_COMPATIBILITY all | ||
4 | |||
5 | kconf non-hardware cgroup-hugetlb.cfg | ||
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index f050b3fa..42a10b35 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
@@ -5,6 +5,7 @@ SRC_URI += "file://xt-checksum.scc \ | |||
5 | file://vswitch.scc \ | 5 | file://vswitch.scc \ |
6 | file://lxc.scc \ | 6 | file://lxc.scc \ |
7 | file://docker.scc \ | 7 | file://docker.scc \ |
8 | file://cgroup-hugetlb.scc \ | ||
8 | " | 9 | " |
9 | KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}" | 10 | KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}" |
10 | 11 | ||