summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
Commit message (Collapse)AuthorAgeFilesLines
* global: overrides syntax conversionBruce Ashfield2021-08-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OEcore/bitbake are moving to use the clearer ":" as an overrides separator. This is pass one of updating the meta-virt recipes to use that syntax. This has only been minimally build/runtime tested, more changes will be required for missed overrides, or incorrect conversions Note: A recent bitbake is required: commit 75fad23fc06c008a03414a1fc288a8614c6af9ca Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sun Jul 18 12:59:15 2021 +0100 bitbake: data_smart/parse: Allow ':' characters in variable/function names It is becomming increasingly clear we need to find a way to show what is/is not an override in our syntax. We need to do this in a way which is clear to users, readable and in a way we can transition to. The most effective way I've found to this is to use the ":" charater to directly replace "_" where an override is being specified. This includes "append", "prepend" and "remove" which are effectively special override directives. This patch simply adds the character to the parser so bitbake accepts the value but maps it back to "_" internally so there is no behaviour change. This change is simple enough it could potentially be backported to older version of bitbake meaning layers using the new syntax/markup could work with older releases. Even if other no other changes are accepted at this time and we don't backport, it does set us on a path where at some point in future we could require a more explict syntax. I've tested this patch by converting oe-core/meta-yocto to the new syntax for overrides (9000+ changes) and then seeing that builds continue to work with this patch. (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* k8s: update kernel configuration featuresZqiang2021-07-291-1/+17
| | | | | | | | Add kernel config fragment according to the requirement from the file types_unix.go in source codes of kubernetes. Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* lopper, python-dtc: add new recipes for device tree toolsChristopher Clark2021-07-292-0/+73
| | | | | | | | | | | | | | | This device tree tooling is being added as a prequisite for enabling qemuboot with the Arm 64-bit version of the Xen hypervisor. lopper: a tool for performing operations on device tree files. A new recipe inspired by the original from meta-xilinx-bsp. python-dtc: a python library for the Device Tree compiler. This is a prerequisite for lopper. Updated import of recipe from meta-xilinx-bsp for the latest release, version 1.6.1. Signed-off-by: Christopher Clark <christopher.clark@starlab.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* k8s/k3s: add kernel configuration featuresBruce Ashfield2021-03-153-0/+25
| | | | | | | | | | | | | We already have docker and some other fragments that are relevant to k3s/k8s, but the addition of ipset as a depends for k3s highlights that we should have a reference configuration that sets all the options for proper opration and runtime dependencies. When k8s or k3s are distro features, we'll apply the new fragment to any kernel that supports fragments (and matches the supported versions). Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: drop 5.8 configsBruce Ashfield2021-01-151-4/+0
| | | | | | | | The 5.8 kernel is being dropped in oe-core, which means we don't test the 5.8 integration any more .. so we drop the .inc for the configs. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: add 5.10 include fileBruce Ashfield2021-01-051-0/+4
| | | | | | | oe-core now has a 5.10 reference kernel, so we need a 5.10 include file to pick up our configurations. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* linux-yocto: add cgroup-hugetlb configTim Orling2020-11-193-0/+11
| | | | | | | | | | 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>
* kernel: fix conditional application of fragmentsBruce Ashfield2020-10-081-4/+2
| | | | | | | | | | | using bb.utils.contains wasn't able to match on the substring "type=kmeta" to enable the conditional inclusion of fragments and KERNEL_FEATURES. We switch to a python string only method so we can fix the fragment application Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: add 5.8 linux-yocto include fileBruce Ashfield2020-10-061-0/+4
| | | | | | Adding the version specific include for linux-yocto 5.8. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* config: make kernel meta data include more specificBruce Ashfield2020-10-061-1/+3
| | | | | | | | | | | | | | | | Rather than only matching on the major/minor version, we should also check that the SRC_URI contains a "type=kmeta", to indicate that a kernel-meta data repository is available. This allows fragment enabled kernels, that don't want to use the main kernel meta data repository to not throw an error (when their version matches one of the reference kernels). This can potentially mask runtime issues (since kernel configuration options may not be present in the final kernel), but it makes the layer more usable, so we take the tradeoff. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* lxc: drop RT_GROUP_SCHEDBruce Ashfield2020-07-131-1/+0
| | | | | | | | | | The group scheduling options in the lxc fragment were initially used to support performance guaranteed systems using containers. This option now causes issues with systemd runtimes and the original feature it implemented is no longer relevant Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: drop 5.2 bbappendBruce Ashfield2020-03-031-4/+0
| | | | | | | 5.2 has been removed from core, so we drop the 5.2 bbappend to match. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* linux-yocto/xen.cfg: update Xen KConfig fragment entriesChristopher Clark2020-02-271-2/+1
| | | | | | | | | | | | | CONFIG_XEN_MAX_DOMAIN_MEMORY has been retired since kernel commit: 197ecb3802c04499d8ff4f8cb28f6efa008067db xen/balloon: add runtime control for scrubbing ballooned out pages CONFIG_XEN_SCRUB_PAGES has been replaced with CONFIG_XEN_SCRUB_PAGES_DEFAULT since kernel commit: c70727a5bc18a5a233fddc6056d1de9144d7a293 xen: allow more than 512 GB of RAM for 64 bit pv-domains Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: allow fragment re-use from any aware kernelBruce Ashfield2020-02-266-3/+18
| | | | | | | | | | | | | | | | The kernel fragments contained in this layer could not easily be consumed by any fragment aware kernel not called "linux-yocto". To make them easier to include, we make the bbappend more generic, to match any linux*.bb recipe (note: this means it will match things like linux-atm.bb as well). To avoid adding the fragments to recipes that can't use them, or to a version that hasn't been valided, we use the LINUX_VERSION variable to pull out the major/minor kernel release and then include a specific version of the .inc file. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: add v5.4 bbappendBruce Ashfield2020-02-211-0/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: drop v4.19 bbappendBruce Ashfield2020-02-211-1/+0
| | | | | | 4.19 has been dropped from core, so we drop our bbappend. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: update linux-yocto bbappends to match oe-core masterBruce Ashfield2019-09-061-0/+0
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* lxc.cfg: set CONFIG_VXLAN=m for running in virtual machineChen Qi2019-08-181-0/+1
| | | | | | | | The vxlan module is needed if user or some software is trying to configure network when the image is running in virtual machine. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: Add conditional inclusion of linux-yocto_virtualization.inc for rt ↵He Zhe2019-06-171-0/+1
| | | | | | | | | kernel This is the same as other kernel bbappend. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: drop 4.18 bbappendBruce Ashfield2019-04-091-1/+0
| | | | | | | 4.18 has been removed from oe-core master, so we no longer need this bbappend. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: add 5.0 bbappendBruce Ashfield2019-03-181-0/+1
| | | | | | | | | Althought the bbappends are currently empty, lets stick with the versioned (versus wildcard) bbappend. They serve as an explicit reference to which kernels have been tested with meta-virt Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* lxc: Correct CONFIG_CGROUP_NET_PRIO settingHe Zhe2019-03-171-1/+1
| | | | | | | | | Since af6363374cbd ("cgroup: make CONFIG_CGROUP_NET_PRIO bool and drop unnecessary init_netclassid_cgroup()"), CONFIG_CGROUP_NET_PRIO has become a bool option. Forcedly setting it to "m" would end up with "n". Change it to "y" here. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* kernel: Add bbappend for linux-yocto-devHe Zhe2019-01-251-0/+1
| | | | | | | linux-yocto-dev would also use virualization features. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux/docker.cfg: CONFIG_NF_CONNTRACK_IPV4 was replaced by CONFIG_NF_CONNTRACKHongzhi.Song2019-01-251-1/+1
| | | | | | | | kernel has replaced CONFIG_NF_CONNTRACK_IPV4 with CONFIG_NF_CONNTRACK. [commit: a0ae2562c] Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: cleanup lxc.cfg kernel config fragmentMark Asselstine2019-01-101-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes: WARNING: linux-yocto-4.18.21+gitAUTOINC+9e348b6f9d_db2d813869-r0 do_kernel_configcheck: [kernel config]: This BSP sets config options that are not offered anywhere within this kernel: CONFIG_EXT3_FS_XATTR CONFIG_RESOURCE_COUNTERS CONFIG_CGROUP_MEM_RES_CTLR CONFIG_CLS_CGROUP CONFIG_NETPRIO_CGROUP CONFIG_DEVPTS_MULTIPLE_INSTANCES Configs were either dropped or renamed according to the updates made in the kernel, as capture below. CONFIG_RESOURCE_COUNTERS gone since kernel v3.19 via mainline commit 5b1efc027c0b51ca3e76f4e00c83358f8349f543. CONFIG_CGROUP_MEM_RES_CTLR renamed since kernel v3.6 via mainline commit c255a458055e459f65eb7b7f51dc5dbdd0caf1d8 CONFIG_CLS_CGROUP never existed AFAICT it should have always been CONFIG_NET_CLS_CGROUP CONFIG_NETPRIO_CGROUP renamed since kernel v3.14 via mainline commit 86f8515f9721fa171483f0fe0391968fbb949cc9 CONFIG_DEVPTS_MULTIPLE_INSTANCES removed since kernel v4.7 via mainline commit eedf265aa003b4781de24cfed40a655a664457e6 Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: update bbappends to match oe-coreBruce Ashfield2018-12-211-0/+0
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: add virtio kernel configsChin Huat Ang2018-12-121-0/+2
| | | | | | | | Instead of setting virtio kernel configs in LXC fragment, just reuse cfg/virtio.scc from yocto-kernel-cache. Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: remove virtio kernel configsChin Huat Ang2018-12-121-11/+0
| | | | | | | | The script lxc-checkconfig doesn't seem to report virtio related kernel configs as required, so remove them from lxc.cfg instead. Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: forcedly load nf_conntrack_ipv6 to work around kernel module loading ↵He Zhe2018-09-301-1/+1
| | | | | | | | | | | | | | failure In the v4.18 kernel, there is a problem with the locking and init sequence of the kernel modules. This would cause nf_conntrack_ipv6 failed to be loaded. In kernel v4.19, nf_conntrack_ipv6 has been merged to nf_conntrack and the problematic code has gone. This patch just works around by forcedly loading nf_conntrack_ipv6. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: update bbappends to match oe-coreBruce Ashfield2018-09-042-1/+0
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: Fix systemd-modules-load.service start failureHe Zhe2018-07-261-2/+0
| | | | | | | | | | | | | | systemd-modules-load.service bindly load whatever in modules-load.d/*.conf, in this case, kvm_intel and kvm_amd. One of them must fail on a specific board and causes the following failure. This patches remove them from KERNEL_MODULE_AUTOLOAD and leaves them to udev. systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE Failed to start Load Kernel Modules. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: sync kernel bbappends to oe-coreBruce Ashfield2018-02-173-1/+0
| | | | | | | 4.4/4.9/4,10 are gone, replaced by 4.14 and 4.15. So we update our bbappends accordingly. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* enable kernel CONFIG_NET_ACT_POLICE for openvswitchHongzhi.Song2018-01-121-0/+1
| | | | | | | | | | | | | | | Setting 'CONFIG_NET_ACT_POLICE=m' meets demands of Qos,one of features of openswitch. This is a new police-mechanism called action-extension. It can build act_police.c into kernel as type of module. If you want to do traffic policing, a kind of action-extension, i.e. strict bandwidth limiting. This action replaces the existing policing module. User can set action-extension at userspace by tool of openvswitch If user set action-extension, exts->actions[i] will be called, and finally tcf_police() defined at act_police.c will be called. Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: make bbappend have effect conditionallyChen Qi2017-10-025-80/+24
| | | | | | | | | | | | | | Make these bbappend files to take effect only when DISTRO_FEATURES contain 'virtualization'. Otherwise, we would meet failure failure at system booting up qemux86. Related logs are as below. systemd-modules-load[113]: Failed to insert 'kvm_amd': Operation not supported systemd-modules-load[113]: Failed to insert 'kvm_intel': Operation not supported Also, make kvm related settings depend on the 'kvm' distro feature. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: add linux-yocto 4.12 bappendBruce Ashfield2017-09-131-0/+20
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: drop linux-yocto-4.1 bbappendBruce Ashfield2017-08-211-20/+0
| | | | | | The 4.1 kernel is no longer in oe-core, so we can drop our bbappend. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel-features: Fix CONFIG_BLK_CGROUP enablingJan Kiszka2017-07-251-1/+1
| | | | | | | | Meanwhile, this became boolean, and trying to make it a module just leaves it off. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker: make fragment standaloneBruce Ashfield2017-07-101-0/+11
| | | | | | | | | | | | | Importing the docker configuratino fragment from meta-overc, which adds options and capabilities to allow container to start out of the box. Note: There are more options that could be added here, but many of them are decision of the distro and depend on runtime configuration choices. So to balance the size of the build and leave decisions where they belong, we keep this as small as possible. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker: add NETFILTER_XT_MATCH_ADDRTYPE=mbrian avery2017-07-106-0/+9
| | | | | | | | Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels. Signed-off-by: brian avery <brian.avery@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: drop 4.8 bbappendBruce Ashfield2017-03-311-19/+0
| | | | | | 4.8 is no longer in oe-core master, so we drop the bbappend Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: add 4.9 and 4.10 bbappendsBruce Ashfield2017-03-152-0/+38
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel: add linux-yocto-4.8 bbappendBruce Ashfield2016-10-271-0/+19
| | | | | | | We want our options and features to apply to the 4.8 kernel as well as the older ones. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* globally replace 'base_contains' calls with 'bb.utils.contains'Derek Straka2016-05-032-4/+4
| | | | | | | The 'base_contains' is now deprecated and only kept as a compatibility method. It will be removed in future releases. Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: update configuration to include all required optionsBruce Ashfield2016-05-021-0/+25
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* xen: clone 4.1 config to 4.4Bruce Ashfield2016-01-191-0/+19
| | | | | | | | | | | 4.4 is available in oe-core, and will be built by default in many configurations. That leaves us either needing to force the preferred version or copy our config to 4.4. This is a direct clone of the 4.1 config to 4.4, and is currently untested, but forms a baseline for more updates. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* xen.cfg: enable CONFIG_HYPERVISOR_GUEST by defaultChris Patterson2016-01-141-0/+1
| | | | | | | Required dependency for CONFIG_XEN. Signed-off-by: Chris Patterson <cjp256@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: remove dangling bbappendsBruce Ashfield2015-12-212-38/+0
| | | | | | 3.14 and 3.19 are gone from oe-core, so we drop our bbappends as well. Signed-off-by: Bruce Ashfield <bruce@zedd.org>
* xen.cfg: update for linux 4.1Chris Patterson2015-12-251-12/+7
| | | | | | | - Drop old kernel options and add some newly available ones. Signed-off-by: Chris Patterson <cjp256@gmail.com> Signed-off-by: Bruce Ashfield <bruce@zedd.org>
* linux-yocto: Add bbappend for 4.1 for virtualization configurationHe Zhe2015-09-081-0/+19
| | | | | Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: update bbappends to match oe-core 1.8 kernelsBruce Ashfield2015-02-202-19/+0
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>