From 2ab1af0bf3ccef2abf772bc3abfcb4b6c12f1871 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Mon, 24 Jan 2022 00:19:37 -0800 Subject: [PATCH] [bus][pci] add a virtual module that references all the pci drivers Not sure if this is the right way to go forward, but it at least keeps from having to copy/paste the same module list in a few different places. --- dev/bus/pci/drivers/rules.mk | 5 +++++ platform/pc/rules.mk | 3 +-- platform/qemu-virt-arm/rules.mk | 1 + platform/qemu-virt-riscv/rules.mk | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 dev/bus/pci/drivers/rules.mk diff --git a/dev/bus/pci/drivers/rules.mk b/dev/bus/pci/drivers/rules.mk new file mode 100644 index 00000000..6a3ac16c --- /dev/null +++ b/dev/bus/pci/drivers/rules.mk @@ -0,0 +1,5 @@ +# Fake module that just declares deps on all the PCI drivers in the system. +# +MODULES += dev/bus/pci + +MODULES += dev/net/e1000 diff --git a/platform/pc/rules.mk b/platform/pc/rules.mk index d4dc0ef5..9b62107d 100644 --- a/platform/pc/rules.mk +++ b/platform/pc/rules.mk @@ -12,8 +12,7 @@ MODULE_DEPS += \ lib/cbuf ifneq ($(CPU),legacy) -MODULE_DEPS += dev/bus/pci -MODULE_DEPS += dev/net/e1000 +MODULE_DEPS += dev/bus/pci/drivers endif MODULE_SRCS += \ diff --git a/platform/qemu-virt-arm/rules.mk b/platform/qemu-virt-arm/rules.mk index 81af65f6..ac5e779f 100644 --- a/platform/qemu-virt-arm/rules.mk +++ b/platform/qemu-virt-arm/rules.mk @@ -29,6 +29,7 @@ MODULE_DEPS += \ lib/cbuf \ lib/fdtwalk \ dev/bus/pci \ + dev/bus/pci/drivers \ dev/interrupt/arm_gic \ dev/timer/arm_generic \ dev/virtio/block \ diff --git a/platform/qemu-virt-riscv/rules.mk b/platform/qemu-virt-riscv/rules.mk index 8fce959d..30ae35ba 100644 --- a/platform/qemu-virt-riscv/rules.mk +++ b/platform/qemu-virt-riscv/rules.mk @@ -22,6 +22,7 @@ MODULE_DEPS += lib/cbuf MODULE_DEPS += lib/fdt MODULE_DEPS += lib/fdtwalk MODULE_DEPS += dev/bus/pci +MODULE_DEPS += dev/bus/pci/drivers MODULE_DEPS += dev/virtio/block MODULE_DEPS += dev/virtio/gpu MODULE_DEPS += dev/virtio/net