diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2020-07-31 17:24:04 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2020-07-31 17:45:39 +0200 |
commit | c460659520a7cd971d6b4afcc4e29520305f5dac (patch) | |
tree | e64d57f4587c6a02ccf86265192079e467f0d39a | |
parent | 620aaa107eec6579401ad508c0aa3c12032c2db4 (diff) | |
download | DistroKit-c460659520a7cd971d6b4afcc4e29520305f5dac.tar.gz DistroKit-c460659520a7cd971d6b4afcc4e29520305f5dac.tar.xz |
bsp.ref: use variants instead of redefining an existing assertion
ptxdist_debug_pci is defined in reference/ptxdist_debug.ref and
available for all platforms. We only want to get different results for
this assertion depending on the platform.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
-rw-r--r-- | configs/bsp.ref | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/configs/bsp.ref b/configs/bsp.ref index bb8b017..0d25300 100644 --- a/configs/bsp.ref +++ b/configs/bsp.ref @@ -1,14 +1,15 @@ +includes: + - file: ptxdist.ref + ptxdist_debug_pci: description: | - In DistroKit, we have platforms with and without PCI. As long as we - don't actively use PCI, disable check for lspci on platforms with - PCI. - type: bool - analyzer: | - True - value: True + In DistroKit, we have platforms with and without PCI. + For x86_64, we don't want to have lspci, although PCI is available in the + kernel. + variants: + - condition: kconfig.PTXPlatformConfig()['ARCH_X86'] + value: False + - value: True -includes: - - file: ptxdist.ref # vim: filetype=yaml shiftwidth=2 expandtab |