Commit Graph

137 Commits

Author SHA1 Message Date
Bruce Ashfield
1ef60507d1 python3-dtc: drop distutils3 usage
distutils is depreciated, so we switch to setuptools3-base to avoid
the OE core warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-13 12:20:25 -05:00
Bruce Ashfield
88d6fa982a Revert "Revert "kernel: drop 5.14 .inc""
5.14 has been removed from core, we can now go ahead with this
removal.

This reverts commit 22628b76c9.
2022-01-13 08:46:34 -05:00
Bruce Ashfield
22628b76c9 Revert "kernel: drop 5.14 .inc"
The removal of the .inc was pushed prematurely. We'll remove it
again, once 5.14 is removed from core and 5.15 is the default.

This reverts commit 79e0e4598c.
2022-01-12 08:42:43 -05:00
Bruce Ashfield
79e0e4598c kernel: drop 5.14 .inc
5.14 has been removed from core, and is EOL upstream. We drop our 5.15
.inc file to match that status.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-10 13:34:44 -05:00
Ross Burton
e13d364d7f python3-dtc: port to Python 3.10
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-11 08:59:11 -05:00
Bruce Ashfield
ecd241fc90 kernel: add 5.15 fragment enablement
5.15 is tested as a kernel now, so we add the .inc to enable
fragments.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-09 08:29:32 -05:00
Bruce Ashfield
f3e3653d4d lopper: update to v1.0 and setuptools based project
Switching to lopper 1.0 brings us a more standard setuptools
based project for install and packaging.

This update also fixes the experimental update to master-next,
which was incomplete and broken.

The only signficant user visible change with this update is
that lopper.py is now 'lopper' and any calling recipes need
to be updated accordingly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-08 21:57:02 -05:00
Richard Neill
152e254b0f k3s: Add additional required kernel modules
Adds the following kernel modules for k3s:

* xt-physdev
* xt-nflog
* xt-limit
* nfnetlink-log

Without them, the k3s network-policy-controller reports failures in the log
related to iptables-restore.

Signed-off-by: Richard Neill <richard.neill@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-08 09:20:32 -05:00
Martin Jansa
2c03be05dd linux-yocto_virtualization.inc: remove :append and += combination
* fixes:
  KERNEL_FEATURES:append += is not a recommended operator combination, please replace it.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-06 23:05:26 -04:00
Bruce Ashfield
369367c020 lopper: update to master-next
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-03 09:48:00 -04:00
Bruce Ashfield
0a7ae8bc50 global: convert github SRC_URIs to use https protocol
github is removing git:// access, and fetches will start experiencing
interruptions in service, and eventually will fail completely.

bitbake will also begin to warn on github src_uri's that don't use
https. So we convert the meta-virt instances to use protocol=https
(done using the oe-core contrib conversion script)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Bruce Ashfield
ac399ad091 global: add explicit branch to all SRC_URIs
As introduced in the oe-core post:

  https://lists.openembedded.org/g/openembedded-core/message/157623

SRC_URIs without an explicit branch will generate warnings, and
eventually be an error.

We run the provided conversion script to make sure that meta-virt
is ready for the change.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Bruce Ashfield
5c21291187 virtualization/config: allow conditional use of yocto-cfg-fragments
To help enforce/guide consistent configuration and to avoid duplicating
configuration fragments into the meta-virt layer, we leverage a native
provider of the yocto-kernel-cache fragment repository.

To allow support for kernels that support fragments, but don't have the
yocto-kernel-cache in the kernel's SRC_URI, we create two conditional
parts of the virtualization configuration.

If virtualization is enabled in the distro features, the kernel
version matches one of our supported ones, and the kernel inherits
kernel-yocto, we add a depedency on the yocto-cfg-fragments-native
recipe.

That recipe will install the fragment collection to the kernel recipe's
native sysroot.

We can then check for the kernel-cache on the SRC_URI. If it is present,
we use the feature at the standard location. If it is not present, we
add the fragment from the native sysroot.

While we could always use the native sysroot variant, we want to allow
a kernel with a kernel-cache to be the first choice, and provide their
own fragments.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-14 18:29:05 -04:00
Bruce Ashfield
fcf53f6a8c yocto-cfg-fragments: introduce native provider of configuration fragments
To allow the use of the yocto configuration fragments in scenarios where
a kernel inherits kernel-yocto or has a custom fragment implementation, but
doesn't directly include the yocto-kernel-cache in the kernel SRC_URI,
we introduce a native provider of the fragments.

This fragment provider is independent of a kernel tree and when added
as a dependency to a recipe, the fragments will be placed in:

  recipe-sysroot-native/kcfg/

These can then be referenced on the SRC_URI or in KERNEL_FEEATURES by
using '../recipe-sysroot-native/kcfg' as the relative path to the
.scc or .cfg file. In the future, this won't be required as kernel-yocto
will always check the native sysroot for fragments, and fragments will
always be referenced by relative path from the base of the kernel-cache.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-13 22:45:55 -04:00
Bruce Ashfield
0aa16595a1 kernel: drop 5.13 configuration include
5.13 hs been removed from core, so we drop our associated
configuration include. 5.14 is now the default.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-24 10:08:50 -04:00
Bruce Ashfield
fd5a4ccbff kernel: add 5.14 pattern
oe-core is moving to a 5.10/5.14 reference, so we adjust our
matching versions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-22 13:40:28 -04:00
Bruce Ashfield
ddd00d35ff python3-dtc: update BSD License to more specific BSD-2-Clause
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-16 18:01:55 -04:00
Bruce Ashfield
e98c1761f0 kernel: add 5.13 pattern, remove 5.4
oe-core is moving to a 5.10/5.13 reference, so we adjust our matching
versions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-19 10:10:33 -04:00
Bruce Ashfield
1b6e39e426 global: overrides conversion pass 2
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02 17:18:08 -04:00
Bruce Ashfield
d876cfc5bf global: overrides syntax conversion
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>
2021-08-02 17:17:53 -04:00
Zqiang
b975a66297 k8s: update kernel configuration features
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>
2021-07-29 10:59:59 -04:00
Christopher Clark
29796322c2 lopper, python-dtc: add new recipes for device tree tools
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>
2021-07-29 10:55:42 -04:00
Bruce Ashfield
ba3ece52b3 k8s/k3s: add kernel configuration features
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>
2021-03-15 23:15:42 -04:00
Bruce Ashfield
eabacfd248 kernel: drop 5.8 configs
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>
2021-01-15 22:50:49 -05:00
Bruce Ashfield
29a8122f47 kernel: add 5.10 include file
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>
2021-01-05 16:34:32 -05:00
Tim Orling
fbfced367d 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>
2020-11-19 11:07:33 -05:00
Bruce Ashfield
5be8686e65 kernel: fix conditional application of fragments
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>
2020-10-08 18:33:41 -04:00
Bruce Ashfield
9cdcd3ee8d kernel: add 5.8 linux-yocto include file
Adding the version specific include for linux-yocto 5.8.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-06 14:20:38 -04:00
Bruce Ashfield
47425c21c7 config: make kernel meta data include more specific
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>
2020-10-06 14:16:24 -04:00
Bruce Ashfield
cc25d8efd8 lxc: drop RT_GROUP_SCHED
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>
2020-07-13 12:40:38 +00:00
Bruce Ashfield
1af36ffa3d kernel: drop 5.2 bbappend
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>
2020-03-03 11:21:15 -05:00
Christopher Clark
7c4e062505 linux-yocto/xen.cfg: update Xen KConfig fragment entries
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>
2020-02-27 16:59:22 -05:00
Bruce Ashfield
f2f36a8061 kernel: allow fragment re-use from any aware kernel
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>
2020-02-26 08:53:51 -05:00
Bruce Ashfield
324696b9a9 kernel: add v5.4 bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-21 12:49:51 -05:00
Bruce Ashfield
b252576ed6 kernel: drop v4.19 bbappend
4.19 has been dropped from core, so we drop our bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-21 12:49:19 -05:00
Bruce Ashfield
5258e89710 kernel: update linux-yocto bbappends to match oe-core master
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-09-06 13:07:41 -04:00
Chen Qi
6d6b2e1cb8 lxc.cfg: set CONFIG_VXLAN=m for running in virtual machine
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>
2019-08-18 22:28:11 -04:00
He Zhe
bff274db99 kernel: Add conditional inclusion of linux-yocto_virtualization.inc for rt 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>
2019-06-17 23:58:09 -04:00
Bruce Ashfield
69288b17c0 kernel: drop 4.18 bbappend
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>
2019-04-09 11:43:43 -04:00
Bruce Ashfield
5fd37dbe1c kernel: add 5.0 bbappend
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>
2019-03-18 09:52:33 -04:00
He Zhe
4b62efe469 lxc: Correct CONFIG_CGROUP_NET_PRIO setting
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>
2019-03-17 00:19:03 +00:00
He Zhe
97dd9208b6 kernel: Add bbappend for linux-yocto-dev
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>
2019-01-25 08:31:06 -05:00
Hongzhi.Song
5ba8e7ac84 linux/docker.cfg: CONFIG_NF_CONNTRACK_IPV4 was replaced by CONFIG_NF_CONNTRACK
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>
2019-01-25 08:31:03 -05:00
Mark Asselstine
9078c4bac5 linux-yocto: cleanup lxc.cfg kernel config fragment
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>
2019-01-10 13:08:38 -05:00
Bruce Ashfield
a3c284dbe8 kernel: update bbappends to match oe-core
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-12-21 14:42:56 -05:00
Chin Huat Ang
21d8bcdb79 linux-yocto: add virtio kernel configs
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>
2018-12-12 14:16:19 -05:00
Chin Huat Ang
f1c03f390e lxc: remove virtio kernel configs
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>
2018-12-12 14:16:19 -05:00
He Zhe
2dc1de2286 kernel: forcedly load nf_conntrack_ipv6 to work around kernel module loading 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>
2018-09-30 21:31:16 -04:00
Bruce Ashfield
5fe3950136 kernel: update bbappends to match oe-core
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-09-04 08:43:08 -04:00
He Zhe
eeb10ba17c linux-yocto: Fix systemd-modules-load.service start failure
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>
2018-07-26 10:40:31 -04:00
Bruce Ashfield
6ca3994157 kernel: sync kernel bbappends to oe-core
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>
2018-02-17 22:50:00 -05:00
Hongzhi.Song
d00a92ac19 enable kernel CONFIG_NET_ACT_POLICE for openvswitch
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>
2018-01-12 10:37:48 -05:00
Chen Qi
5b70104bf1 linux-yocto: make bbappend have effect conditionally
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>
2017-10-02 09:39:26 -04:00
Bruce Ashfield
537971d35a kernel: add linux-yocto 4.12 bappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-13 12:50:02 -04:00
Bruce Ashfield
7b3b082eca kernel: drop linux-yocto-4.1 bbappend
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>
2017-08-21 08:36:46 -04:00
Jan Kiszka
871962e231 kernel-features: Fix CONFIG_BLK_CGROUP enabling
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>
2017-07-25 09:08:56 -04:00
Bruce Ashfield
3ac773e4c7 docker: make fragment standalone
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>
2017-07-10 12:18:57 -04:00
brian avery
77fd5be8b6 docker: add NETFILTER_XT_MATCH_ADDRTYPE=m
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>
2017-07-10 12:18:09 -04:00
Bruce Ashfield
3786ca8902 kernel: drop 4.8 bbappend
4.8 is no longer in oe-core master, so we drop the bbappend

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-03-31 08:20:22 -04:00
Bruce Ashfield
260add1874 kernel: add 4.9 and 4.10 bbappends
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-03-15 19:24:11 -04:00
Bruce Ashfield
ada27ac45f kernel: add linux-yocto-4.8 bbappend
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>
2016-10-27 16:49:34 -04:00
Derek Straka
a3617f2464 globally replace 'base_contains' calls with 'bb.utils.contains'
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>
2016-05-03 22:21:25 -04:00
Bruce Ashfield
5dedd395f4 lxc: update configuration to include all required options
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:41 -04:00
Bruce Ashfield
9377e68bcd xen: clone 4.1 config to 4.4
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>
2016-01-19 09:53:11 -05:00
Chris Patterson
6ec960100f xen.cfg: enable CONFIG_HYPERVISOR_GUEST by default
Required dependency for CONFIG_XEN.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-14 15:37:46 -05:00
Bruce Ashfield
dbca9a89c0 linux-yocto: remove dangling bbappends
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>
2015-12-21 12:35:20 -05:00
Chris Patterson
ac7e0529fc xen.cfg: update for linux 4.1
- 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>
2015-12-25 22:50:52 -05:00
He Zhe
62e49b861f linux-yocto: Add bbappend for 4.1 for virtualization configuration
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08 10:01:55 -04:00
Bruce Ashfield
8bf314b41b linux-yocto: update bbappends to match oe-core 1.8 kernels
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-20 15:08:17 -05:00
Bruce Ashfield
b327673b51 lxc: add multiple PTYS to the default configuration
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-30 00:18:05 -05:00
Josep Puigdemont
fec41fc98e lxc.cfg: remove unnecessary kernel configuraitons.
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-01 10:49:06 -05:00
Bruce Ashfield
e7c3ee2a60 linux-yocto: update bbappends
Updating the bbappends for the kernel to match the latest oe-core/yocto
1.7 versions. We drop 3.4, since it is no longer supported and add a
3.17 bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-01 00:56:15 -04:00
Bruce Ashfield
d4dce51641 linux-yocto*: update missed module_autoload statements
In the updates to the new KERNEL_MODULE_AUTOLOAD format, openvswitch was
missed.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-08 10:05:30 -04:00
Bruce Ashfield
a66fb848db linux-yocto/3.4/3.10: replace module_autoload with KERNEL_MODULE_AUTOLOAD
commit kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF
in oe-core replaces module_autoload with KERNEL_MODULE_AUTOLOAD, so we must update
the linux-yocto bbappends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-07 12:14:13 -04:00
Christian Ziethén
7c193419ad linux-yocto_3.14: Replace module_autoload with KERNEL_MODULE_AUTOLOAD
Signed-off-by: Christian Ziethén <Christian.Ziethen@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-07 12:04:49 -04:00
Bruce Ashfield
7544bfb6ec kernel: update fragments to oe-core 1.6
Now that the 3.14 kernel has been introduced and 3.8 dropped from oe-core,
we need to adjust our configuration fragments accordingly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-02 09:07:00 -04:00
Chris Patterson
b531d00262 linux-yocto/xen: update fragment to support both dom0 and typical xen guests.
Updated linux kernel fragment to match defaults as defined in the 3.10 kernel's Kconfig files.  If defaults were not specified, modules were were used unless required by another built-in option.  As such, The core frontend drivers are included by default and the backend drivers are built as modules.

This allows privileged, PV, HVM, and PVHVM guests to work properly without additional kernel configuration or modules required in initramfs (from a Xen support perspective).

This also removes CONFIG_KVM_GUEST which was erroneously included previously.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:32:26 -04:00
Chris Patterson
98ed26b831 linux-yocto: add optional support for aufs and xen using DISTRO_FEATURES.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Chris Patterson
88adab97f9 linux-yocto: add kernel fragment and scc to support xen on linux 3.4, 3.8, and 3.10.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Bruce Ashfield
5b7cbf7e0b linux-yocto: add linux-yocto 3.10 bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-09-01 11:51:08 -04:00
David Nyström
88a7e97b9b Add kernel config fragment to allow OVS QoS service
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-08-25 01:24:51 -04:00
Mihai Prica
84ff6d7447 linux-yocto: Added 3.8 kernel bbappend
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-08 23:06:40 -04:00
Lei Yang
0afb6647c1 openvswtich: start openvswitch at the boot time
When I define the bridge, I get below error

root@intel_5500_server:~# ovs-vsctl add-br ovsbr0
Jan 25 17:34:07|00002|stream_unix|ERR|/tmp/stream-unix.1487.0: connection to /var/run/openvswitch/db.sock
failed: No such file or directory
........
........

This is because openvswitch damon isn't running,so we'd better start it at
the boot time.  The split-package ${PN}-switch ${PN}-controller provide us
to start necessary daemon with update-rc.d so we add them to the RDEPENDS.

Since openvswitch depends on openvswtich kernel module, so auto load the
kernel module too.

Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-02-01 09:08:07 -05:00
Mihai Prica
15e6ea1dbb linux-yocto: added kernel configuration for KVM
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-01-29 09:19:24 -05:00
David Nyström
20b24d5695 Added kernel configuration for LxC and in kernel OpenvSwitch
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
Mihai Prica
bf7a0aa055 linux-yocto: added kernel configs for iptables modules iptables: loaded necessary kernel modules
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00
Mihai Prica
6777842470 ebtables: added necessary kernel modules linux-yocto: added kernel configs for ebtables modules
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00