kernel: other: limit mhi-pci-generic to devices with PCI support
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sun, 7 May 2023 09:08:03 +0000 (11:08 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 9 May 2023 09:40:59 +0000 (11:40 +0200)
Kmod-mhi-pci-generic supports Qualcomm modems over PCIe bus. On targets
without PCI support, this package is empty. Symbol CONFIG_MHI_BUS_PCI_GENERIC
depends on CONFIG_PCI.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
package/kernel/linux/modules/other.mk

index 75e978085b4b77d031f9d2eb8e81f7fc2a99e4e6..e8b4ea54feaf788e14f64eed3a6a8b43f8e1acd3 100644 (file)
@@ -1352,7 +1352,7 @@ $(eval $(call KernelPackage,mhi-bus))
 define KernelPackage/mhi-pci-generic
   SUBMENU:=$(OTHER_MENU)
   TITLE:=MHI PCI controller driver
-  DEPENDS:=@LINUX_5_15 +kmod-mhi-bus
+  DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus
   KCONFIG:=CONFIG_MHI_BUS_PCI_GENERIC
   FILES:=$(LINUX_DIR)/drivers/bus/mhi/mhi_pci_generic.ko
   AUTOLOAD:=$(call AutoProbe,mhi_pci_generic)