From: Aleksander Jan Bajkowski Date: Sun, 7 May 2023 09:08:03 +0000 (+0200) Subject: kernel: other: limit mhi-pci-generic to devices with PCI support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f34887170004fd4503ca992baf1f6321baa74059;p=openwrt%2Fstaging%2Fnbd.git kernel: other: limit mhi-pci-generic to devices with PCI support 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 --- diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 75e978085b..e8b4ea54fe 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -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)