Commit Graph

118 Commits

Author SHA1 Message Date
Bruce Ashfield
8c18554d3e cfg-fragments: update to 6.6
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-03-15 17:17:20 +00:00
Bruce Ashfield
bd67612b66 kernel: drop 6.1 inc file
6.1 has been removed from oe-core, so we update our .inc files
to match.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-02-07 22:34:09 +00:00
Bruce Ashfield
cd448b3de6 kernel/cfg: change CONFIG_TUN to module
Currently Xen expected a tun module to be packaged. We need
a better way to resolve dependencies such as this (perhaps
by the kernel providing the package requested when functionality
is built in).

But for now, without a compelling need for criu to have tun
built in, we tweak this config to match and keep the xen builds
happy and with no conditional package requirements.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-23 19:24:18 +00:00
Xiangyu Chen
e4e2072188 criu: add kernel configuration features
criu needs to turn on sock diag features in kernel to do the system dump[1].

Ref:
[1] https://criu.org/Linux_kernel

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-19 14:29:24 +00:00
Bruce Ashfield
fb67ee2b7a kernel: drop 6.5 support
6.6 will be the default in oe-core and 6.5 removed, so we
follow with our support

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-04 02:52:53 +00:00
Bruce Ashfield
c56d8448e6 kernel: add v6.6 support
Adding support for the 6.6 kernel series as testing has been
completed against linux-yocto v6.6/*

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-04 02:52:53 +00:00
Bruce Ashfield
92a7e8ec46 kernel: allow configuration to be skipped .. but warn
Allow the kernel include file to be skipped, even if a
kernel is capable of merging and using the fragments in
the layer and kernel-cache.

Setting SKIP_META_VIRT_KERNEL_INCLUDE="t" in a kernel
bbappend, or in a configuration file will inhibit the
generated / detected include file.

BUT

If that opt-out is done, we warn, as the user has
explicitly disabled safeguards that help ensure that
subtle runtime issues aren't introduced.

BUT

If someone really knows what they are doing, they
don't want the warning to be present in each build.
So setting META_VIRT_KERNEL_CHECK_WARNING_INHIBIT="t"
will inhibit the message.

At that point, you have jumped through all the hoops
and you are free to ensure your kernel configuration
is correct using other means.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-11-07 13:22:17 +00:00
Bruce Ashfield
185d07f863 kernel/yocto-cfg-fragments: update to 6.5 kernel
Bumping the standalone fragments recipe to pickup the latest
6.5 fragments.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-11-06 16:21:12 +00:00
Bruce Ashfield
62d5c5a4f5 kernel: drop 6.4 .inc file
6.4 is no longer in OEcore, so we drop our associated
kernel .inc file.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-11-06 16:21:12 +00:00
Bruce Ashfield
7e9472c72b kernel: add 6.5 support
The 6.5 kernel has now been tested against core and meta-virtualization
so we add the .inc file to show that status.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-10-01 15:12:56 +00:00
Bruce Ashfield
08435d20b1 recipes/classes/scripts: Drop SRCPV usage
bitbake has been enhanced such that SRCPV is no longer needed in
PV to handle updating git hashes and task signatures.

We can simplify our PV by dropping SRCPV

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-24 01:38:21 +00:00
Bruce Ashfield
8e1a34f550 kernel: drop 5.15 inc file
5.15 hasn't been in master for quite some time, so we drop
our version matching .inc

Support for 5.15 can be found on release branches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-15 18:24:13 +00:00
Bruce Ashfield
56593e277a python3-dtc: drop recipe
oe-core commit 123077ecd9f3c1839d [python3-dtc: add from
meta-virtualization] brings this recipe into core, so we drop
our version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-01 14:42:25 -04:00
Bruce Ashfield
433e5ea556 kernel: the dev kernel is moving to 6.4, so we update our bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-06-07 16:40:21 -04:00
Bruce Ashfield
a8e46c6e1f kernel: add 6.2 kernel configuration include
The -dev kernel is on 6.2, so we create a .inc file to match.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-03-08 17:08:01 -05:00
Bruce Ashfield
2119189361 treewide: bulk update patches with status field
While the insane.bbclass upstream-status check hasn't been made
default, users of meta-virtualization may have it enabled in their
distros .. so the effect is the same. We must have this tracking
tag in out patches.

This is a bulk update to add the tag and silence the QA message.

As packages get updated, the normal/routine process of checking
the patches will continue, and the status fields may (or may not)
get more useful.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27 10:32:06 -05:00
Bruce Ashfield
c3bd7a21d4 kernel: drop linux-yocto-dev.bbappend
The more generic linux-%.bbappend will match on linux-yocto-dev.
If we have the version specific .inc files in the layer, then we
will have support for linux-yocto-dev. Since we already track
the linux-yocto-tested versions, it isn't hard to track the -dev
kernel version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27 10:32:05 -05:00
Bruce Ashfield
3195447160 kernel: add 6.1 kernel configuration
Removing 5.19 and adding 6.1 kernel configuration triggers, now
that OE core will drop 5.19.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-26 12:22:30 -05:00
Bruce Ashfield
5cfc4c3f80 kernel/cfg: add CONFIG_NETFILTER_XT_MATCH_IPVS to docker config
This is an optional feature (but still commonly used), so we add
it to our default fragment.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-25 22:55:48 -04:00
Bruce Ashfield
fec43d04a4 kernel: add 5.19 inc file
The major stacks have been tested against 5.19, so we add the
tracking .inc to indicate support.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-09 14:25:04 -04:00
Bruce Ashfield
58f5ac62e8 kernel: drop 5.10 .inc
oe-core has removed 5.10 from master, so we drop our tracking .inc

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-09 14:25:04 -04:00
Bruce Ashfield
8364fd6c98 lopper: update to -latest
Bumping lopper to latest, which comprises the following commits:

    9159040 lopper: assists: baremetallinker_xlnx: Fix race condition in memory domain handling
    38d18ca lopper/fdt: add /memreserve/ to preprocessing routines
    33ee8e6 sanity: add /memreserve/ test
    c6431bf fdt: fix dtb handling of common prefix nodes
    211c902 lopper: add support for /memreserve/
    4545eed base: add powerdomains to default phandle meta data
    bc95bc2 tree: handle variable sized phandle properties
    69d8849 openamp: Update YAML handling to match spec
    578de1d lopper: assists: bmcmake_metadata_xlnx: Fix race condition in the assist file
    14d2aa3 tree: ensure that phandle is initialized before export
    a6b38e8 tree: make label generation more robust
    9faf923 extract-xen: add [extract-xen] prefix, and write xen,passthrough
    00c14d5 assists: add imagebuilder wrapper assist
    d879eaf extract: use lopper.write for export of trees
    ca80fbb extract: improve xen passthrough configuration
    791f0f5 lopper.py: allow execution from any directory
    0c62984 lops: fix comment style
    3598d54 lopper/tree: handle invalid last phandle
    697aa62 assists: create generic tree extraction and xen-processing assists
    5ae6650 lopper/tree: improve phandle and node operations
    5a230a5 lopper/assists: allow chained command line assists
    bbb92ee lopper/tree: make import/export more robust
    b8aeb54 lopper/tree: improve node iteration and resolution
    692cbc9 lopper: lops: lop-domain-linux-a53-prune: Remove unneeded nodes for Linux boot
    cd25873 lopper: assists: baremetalconfig_xlnx: Fix KeyError exception
    58dd00c lopper: assists: baremetal_xparameters_xlnx: Fix KeyError exception
    01ae242 openamp: xlnx: Update RPMsg-kernel mailbox information
    fbc4329 lopper: assists: petalinuxconfig_xlnx: Fix indentation and width params
    5c3074b lopper: assists: petalinuxconfig_xlnx: Add support for additional meta-data
    cc3de25 lopper: assists: breametallinker: fix race condition in memory node handling
    7723fed lopper: lops: a72 linux: remove axi intc node
    743432e openamp: xlnx: remove TCM compat strings
    53746be lopper: lops: lop-domain-linux-a53-prune: remove amba_pl pruning
    0d56f35 lopper: lops: lop-domain-linux-a72: move prune operations to separate lop
    fdbbe7b openamp: xlnx: add support for Versal platform
    1839bdb openamp: xlnx: add 'power-domain' prop for Xilinx R5 remoteproc driver SRAMs
    14d1caf lopper: lops: lop-domain-linux-a53: move prune operations to separate lop
    7169df0 openamp: xlnx: remove dead code
    ec9fdce openamp: xlnx: remove definitions node
    07f48d0 openamp: xlnx: Add text file for OpenAMP Channel information
    637863f openamp: xlnx: update IPI for mappings for ZU+ platform
    1b41e52 openamp: xlnx: rpmsg: generate rpmsg device tree nodes
    a643273 openamp: xlnx: remoteproc: generate remoteproc device tree nodes
    a833729 openamp: fix bug for domain-to-domain subnodes for openamp relations.
    ea6d8e1 lops: openamp: describe OpenAMP relation properties as phandles
    40c2070 openamp: translate YAML Remoteproc carveouts to DTS
    fda40d8 openamp: translate YAML RPMsg carveouts to DTS
    9d938f7 openamp: xlnx: parse pre-existing nodes in YAML
    eafb17a lopper: process .dtsi input files the same as .dts
    ce4638a lopper: assists: petalinuxconfig_xlnx: Add assist file for generating petalinux tool required configuration
    cfa0593 fdt: make node prefix lookups more robust
    2f3f2d2 lopper/format: allow tabs to be used when writing dts
    c7b22ce lopper/subsystem: update access to latest specification

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-14 15:17:08 -04:00
Richard Neill
6ed391fdb0 k3s: Add missing IP Virtual Server (ip_vs) feature to the kernel config
K3s (and Kubernetes) supports load balancing via IPVS, and by default reports
errors when IPVS kernel modules cannot be loaded.

This patch adds the missing reported kernel modules to the k3s recipe:

    * ip-vs
    * ip-vs-rr
    * ip-vs-wrr
    * ip-vs-sh

The modules are configured by including the ip_vs kernel feature.

Signed-off-by: Richard Neill <richard.neill@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:12:03 -04:00
Bruce Ashfield
5d30327332 lopper: update to 1.0.2
Bumping lopper to latest, which comprises the following commits:

    c7b22ce lopper/subsystem: update access to latest specification
    716fe89 lopper/init: pass permissive to dt_compile if specified on the command line
    2575d66 dt_compile: allow duplicate label errors to be skipped with --permissive
    22b2515 lopper: drop duplicate labels due to node merging
    f70eb86 lopper: bump version to 1.0.2
    9b72de5 lopper: only execute main() when __main__ is called directly
    b0b19a1 lopper: improve label round trip handling
    d4b7706 docs: clarify lop versioning an compatible strings
    e44204b README: add phandle-desc-v1 description
    17350a7 version: bump to 1.0.1
    0a4fcac tree: fix tree export and reload
    520dea8 lopper/base: add secure-address-map description
    6e660c5 lopper/lops: resolve tree when copying
    8d46634 lopper: allow select to match labels
    7aac1e3 openamp: add stub for OpenAMP Domain processing landing function
    82986bb lopper: add the ability to extend phandle meta-data table
    914c7e2 yaml: add alias/anchor based node naming
    d9f1abb spec: update remoteproc example per latest spec
    40cc05d lop-load: add back CDO
    d5d23ab xlnx: subsystem: rename lopper_tree to lopper.tree in imports
    7d23ba6 lop-load: update for latest master
    4caa022 openamp: add stubs for picking up domain to domain YAML property
    d8dae9d openamp_xlnx: rename fily openamp_xlnx.py to allow includes from this file
    0358879 yaml-xlate: add stub for domain-to-domain property
    903b16a spec: remove resource-groups
    1dd1e67 README: update to add mailing list information
    5da82a1 lopper/yaml: add lopper processing for "<<+" extension marker
    3d05302 assists: domain_access: Fix update_mem_node handling for higher address
    3c81fcc fdt: handle large integers

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-21 17:31:29 -04:00
Ross Burton
26017da9d8 python3-dtc: fix missing files in sysroot
There is a bug in SWIG/setuptools where 'pip install' doesn't build
libfdt.py unless the build tree is already dirty, which makes using
the library impossible.

Bump the SRCREV to incorporate the upstream workaround for this issue.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-02 15:46:04 -05:00
Tim Orling
0f3da01452 lopper: fix wheel build
The wheel that is built is:
lopper-1.0-py3-none-any.whl

Set BASEVERSION to 1.0 and use this to set PV and the value for PYPA_WHEEL
(the path to the wheel filename).

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-02 15:44:59 -05:00
Tim Orling
35f34844ff python3-dtc: fix wheel build
The wheel that is built is ${S}/dist/libfdt-1.6.2.dev39+g4048aed.d20220103-cp310-cp310-linux_x86_64.whl
Set PYPA_WHEEL to match this.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-02 15:44:58 -05:00
Bruce Ashfield
108e089f7e global: update licence values to SPDX values
These changes are the result of running the convert-spdx-licenses.py
oe-core script.

There's no impact to the build, but we will avoid issues when
interacting with core QA by the alignment.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-18 13:07:10 -05:00
Bruce Ashfield
198eb61ae3 python3-dtc: add SRCPV and fix missing symbol
We need some of the latest dtc functionality for lopper, but that
puts us out of sync with the main dtc recipe in oe-core master.

To show that we are running ahead, bumping the PV to include SRCPV.

To fix the following missing symbol:

| ImportError: qemuarm64-poky-linux/xen-image-minimal/1.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/_libfdt.cpython-310-x86_64-linux-gnu.so: undefined symbol: fdt_overlay_target_offset

We revert the commit that introduces it (since we don't need that
functionality), and will drop our revert when oe-core updates to
a similar version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-19 13:18:15 -05:00
Bruce Ashfield
cb0884d16e python3-dtc: update to version v1.6.1-39-g4048aed
As part of this update:

  - we drop our backported patches
  - simplify the recipe to use setuptools-scm
  - remove the need to generate version_gen.h
  - adapt to setup.py at ${S}
  - and include following commits:

    4048aed setup.py: fix out of tree build
    ff5afb9 Handle integer overflow in check_property_phandle_args()
    ca72944 README: Explain how to add a new API function
    c0c2e11 Fix a UB when fdt_get_string return null
    cd5f69c tests: setprop_inplace: use xstrdup instead of unchecked strdup
    a04f690 pylibfdt: add Property.as_*int*_array()
    8310271 pylibfdt: add Property.as_stringlist()
    d152126 Fix Python crash on getprop deallocation
    17739b7 Support 'r' format for printing raw bytes with fdtget
    45f3d1a libfdt: overlay: make overlay_get_target() public
    c19a4ba libfdt: fix an incorrect integer promotion
    1cc41b1 pylibfdt: Add packaging metadata
    db72398 README: Update pylibfdt install instructions
    383e148 pylibfdt: fix with Python 3.10
    23b56cb pylibfdt: Move setup.py to the top level
    69a7607 pylibfdt: Split setup.py author name and email
    0b106a7 pylibfdt: Use setuptools_scm for the version
    c691776 pylibfdt: Use setuptools instead of distutils
    5216f3f libfdt: Add static lib to meson build
    4eda259 CI: Cirrus: bump used FreeBSD from 12.1 to 13.0
    0a3a9d3 checks: Add an interrupt-map check
    8fd2474 checks: Ensure '#interrupt-cells' only exists in interrupt providers
    d8d1a9a checks: Drop interrupt provider '#address-cells' check
    52a16fd checks: Make interrupt_provider check dependent on interrupts_extended_is_cell
    37fd700 treesource: Maintain phandle label/path on output
    e33ce1d flattree: Use '\n', not ';' to separate asm pseudo-ops
    d24cc18 asm: Use assembler macros instead of cpp macros
    ff3a30c asm: Use .asciz and .ascii instead of .string
    5eb5927 fdtdump: fix -Werror=int-to-pointer-cast
    0869f82 libfdt: Add ALIGNMENT error string
    69595a1 checks: Fix bus-range check
    72d09e2 Makefile: add -Wsign-compare to warning options
    b587787 checks: Fix signedness comparisons warnings
    69bed6c dtc: Wrap phandle validity check
    9102211 fdtget: Fix signedness comparisons warnings
    d966f08 tests: Fix signedness comparisons warnings
    ecfb438 dtc: Fix signedness comparisons warnings: pointer diff
    5bec74a dtc: Fix signedness comparisons warnings: reservednum
    24e7f51 fdtdump: Fix signedness comparisons warnings
    b6910be Bump version to v1.6.1

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-18 08:36:55 -05:00
Ross Burton
34c2f32ec1 python3-dtc: fix packaging by using setuptools
Inheriting setuptools3-base doesn't actually define any tasks, so commit
1ef6050 to drop distutils3 had the side-effect of not building any code.

Backport a commit from upstream to switch to setuptools, inherit
setuptool3, and change DISTUTILS_SETUP_PATH to SETUPTOOLS_SETUP_PATH.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-01-17 13:05:06 -05:00
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