]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
drivers/ukbus/pci: Make PCI ECAM conditional to fdt
authorMichalis Pappas <michalis@unikraft.io>
Mon, 18 Sep 2023 13:23:10 +0000 (15:23 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
The PCI ECAM implementation is tightly coupled to fdt. Given that
the platform bus can now be used on x86_64, make PCI ECAM conditional
to the fdt libraries.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Rares Miculescu <miculescur@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1116

drivers/ukbus/pci/Config.uk

index 77b5f7674b157639770fad952fd5f6c795f30b43..d3b5e80211e4b0cb802a3d96514aa729d6cf614f 100644 (file)
@@ -10,5 +10,6 @@ config LIBUKBUS_PCI
                PCI bus driver for probing and operating PCI devices
 
 config LIBUKBUS_PCI_ECAM
-       default y if (LIBUKBUS_PCI && LIBUKBUS_PLATFORM)
+       select LIBUKBUS_PLATFORM
+       default y if (LIBUKBUS_PCI && LIBFDT && LIBUKOFW)
        bool