Filters are implemented in
kernelci.config.base
and all have a match()
method to determine whether a set of configuration
options are compatible with the filter definition. It will basically return
True
if the options match the filter or False
otherwise.
There are several types of filters:
- passlist: {defconfig: ['bcm2835_defconfig']}
In this example, the filter will return True
if bcm2835_defconfig
is in the
defconfig
name.
- blocklist: {lab: ['lab-baylibre']}
In this example, the filter will return False
if lab-baylibre
is in the
lab
name.
- combination: &arch_defconfig_filter
keys: ['arch', 'defconfig']
values:
- ['arm', 'multi_v7_defconfig']
- ['arm64', 'defconfig']
- ['x86', 'x86_64_defconfig']
In this example, the filter will return True
only if the provided arch
and
defconfig
pair exactly matches one of the 3 defined combinations defined in
values
.