Message ID | 20211024194209.521400-2-janusz.dziedzic@gmail.com |
---|---|
State | New |
Headers | show |
Series | [RFC,1/3] kernel: allow to choose QCOM_QMI_HELPERS | expand |
On Sun, 24 Oct 2021 at 21:43, Janusz Dziedzic <janusz.dziedzic@gmail.com> wrote: > > When build ath11k from backports we need enable > such packages: > - mhi-bus > - qrtr > - qrtr-mhi > - michael-mic > - qcom-qmi-helpers > > Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> > --- > package/kernel/linux/modules/lib.mk | 14 ++++++++ > package/kernel/linux/modules/mhi.mk | 21 +++++++++++ > package/kernel/linux/modules/other.mk | 14 ++++++++ > package/kernel/linux/modules/qrtr.mk | 51 +++++++++++++++++++++++++++ > 4 files changed, 100 insertions(+) > create mode 100644 package/kernel/linux/modules/mhi.mk > create mode 100644 package/kernel/linux/modules/qrtr.mk > > diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk > index 9a341932bd..51a8c6a753 100644 > --- a/package/kernel/linux/modules/lib.mk > +++ b/package/kernel/linux/modules/lib.mk > @@ -121,6 +121,20 @@ endef > $(eval $(call KernelPackage,lib-lzo)) > > > +define KernelPackage/lib-michael-mic Hi Janusz, thanks for working on the kernel modules that ath11k depends on. I have had ath11k packaged for a while, but didn't work on the dependencies to be packaged as kmods as well. That being said, there is an existing kmod-crypto-michael-mic package in the crypto modules, so no need for it. Regards, Robert > + SUBMENU:=$(LIB_MENU) > + TITLE:=MICHAEL_MIC support > + KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC > + FILES:= $(LINUX_DIR)/crypto/michael_mic.ko > + AUTOLOAD:=$(call AutoProbe,michael_mic) > +endef > + > +define KernelPackage/lib-michael-mic/description > + Kernel module for MICHAEL_MIC support > +endef > + > +$(eval $(call KernelPackage,lib-michael-mic)) > + > define KernelPackage/lib-zstd > SUBMENU:=$(LIB_MENU) > TITLE:=ZSTD support > diff --git a/package/kernel/linux/modules/mhi.mk b/package/kernel/linux/modules/mhi.mk > new file mode 100644 > index 0000000000..a247b37efe > --- /dev/null > +++ b/package/kernel/linux/modules/mhi.mk > @@ -0,0 +1,21 @@ > +# > +# Copyright (C) 2021 OpenWrt.org > +# > +# This is free software, licensed under the GNU General Public License v2. > +# See /LICENSE for more information. > +# > + > +MHI_MENU:=MHI support > + > +define KernelPackage/mhi-bus > + SUBMENU:=$(MHI_MENU) > + TITLE:=Support for Modem Host Interface (MHI) bus > + KCONFIG:=CONFIG_MHI_BUS CONFIG_MHI_BUS_DEBUG=n > + FILES:=$(LINUX_DIR)/drivers/bus/mhi/core/mhi.ko > +endef > + > +define KernelPackage/mhi-bus/description > + Kernel support for Modem Host Interface (MHI) > +endef > + > +$(eval $(call KernelPackage,mhi-bus)) > diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk > index fdcc089025..555a94c442 100644 > --- a/package/kernel/linux/modules/other.mk > +++ b/package/kernel/linux/modules/other.mk > @@ -1256,3 +1256,17 @@ define KernelPackage/f71808e-wdt/description > endef > > $(eval $(call KernelPackage,f71808e-wdt)) > + > +define KernelPackage/qcom-qmi-helpers > + SUBMENU:=$(OTHER_MENU) > + TITLE:=Qualcomm QMI helpers > + KCONFIG:=CONFIG_QCOM_QMI_HELPERS > + FILES:=$(LINUX_DIR)/drivers/soc/qcom/qmi_helpers.ko > + AUTOLOAD:=$(call AutoProbe,qmi_helpers,1) > +endef > + > +define KernelPackage/qcom-qmi-helpers/description > + Kernel module qcom_qmi_helpers > +endef > + > +$(eval $(call KernelPackage,qcom-qmi-helpers)) > diff --git a/package/kernel/linux/modules/qrtr.mk b/package/kernel/linux/modules/qrtr.mk > new file mode 100644 > index 0000000000..eea95bfd54 > --- /dev/null > +++ b/package/kernel/linux/modules/qrtr.mk > @@ -0,0 +1,51 @@ > +# > +# Copyright (C) 2021 OpenWrt.org > +# > +# This is free software, licensed under the GNU General Public License v2. > +# See /LICENSE for more information. > +# > + > +QRTR_MENU:=Qualcomm IPC Router support > + > +define KernelPackage/qrtr > + SUBMENU:=$(QRTR_MENU) > + TITLE:=Qualcomm IPC Router support > + KCONFIG:=CONFIG_QRTR > + FILES:= \ > + $(LINUX_DIR)/net/qrtr/qrtr.ko \ > + $(LINUX_DIR)/net/qrtr/ns.ko > +endef > + > +define KernelPackage/qrtr/description > + Kernel support for Qualcomm IPC Router > +endef > + > +$(eval $(call KernelPackage,qrtr)) > + > +define KernelPackage/qrtr-mhi > + SUBMENU:=$(QRTR_MENU) > + TITLE:=MHI IPC Router channels > + KCONFIG:=CONFIG_QRTR_MHI > + DEPENDS:=+kmod-mhi-bus +kmod-qrtr > + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-mhi.ko > +endef > + > +define KernelPackage/qrtr-mhi/description > + Kernel support for MHI IPC Router channels > +endef > + > +$(eval $(call KernelPackage,qrtr-mhi)) > + > +define KernelPackage/qrtr-tun > + SUBMENU:=$(QRTR_MENU) > + TITLE:=TUN device for Qualcomm IPC Router > + KCONFIG:=CONFIG_QRTR_TUN > + DEPENDS:=+kmod-qrtr > + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-tun.ko > +endef > + > +define KernelPackage/qrtr-tun/description > + Kernel support for TUN device for Qualcomm IPC Router > +endef > + > +$(eval $(call KernelPackage,qrtr-tun)) > -- > 2.25.1 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
niedz., 24 paź 2021 o 21:55 Robert Marko <robimarko@gmail.com> napisał(a): > > On Sun, 24 Oct 2021 at 21:43, Janusz Dziedzic <janusz.dziedzic@gmail.com> wrote: > > > > When build ath11k from backports we need enable > > such packages: > > - mhi-bus > > - qrtr > > - qrtr-mhi > > - michael-mic > > - qcom-qmi-helpers > > > > Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> > > --- > > package/kernel/linux/modules/lib.mk | 14 ++++++++ > > package/kernel/linux/modules/mhi.mk | 21 +++++++++++ > > package/kernel/linux/modules/other.mk | 14 ++++++++ > > package/kernel/linux/modules/qrtr.mk | 51 +++++++++++++++++++++++++++ > > 4 files changed, 100 insertions(+) > > create mode 100644 package/kernel/linux/modules/mhi.mk > > create mode 100644 package/kernel/linux/modules/qrtr.mk > > > > diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk > > index 9a341932bd..51a8c6a753 100644 > > --- a/package/kernel/linux/modules/lib.mk > > +++ b/package/kernel/linux/modules/lib.mk > > @@ -121,6 +121,20 @@ endef > > $(eval $(call KernelPackage,lib-lzo)) > > > > > > +define KernelPackage/lib-michael-mic > > Hi Janusz, > thanks for working on the kernel modules that ath11k depends on. > I have had ath11k packaged for a while, but didn't work on the > dependencies to be > packaged as kmods as well. > > That being said, there is an existing kmod-crypto-michael-mic package > in the crypto modules, > so no need for it. > Thanks! Seems I missed it :) BR Janusz > Regards, > Robert > > + SUBMENU:=$(LIB_MENU) > > + TITLE:=MICHAEL_MIC support > > + KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC > > + FILES:= $(LINUX_DIR)/crypto/michael_mic.ko > > + AUTOLOAD:=$(call AutoProbe,michael_mic) > > +endef > > + > > +define KernelPackage/lib-michael-mic/description > > + Kernel module for MICHAEL_MIC support > > +endef > > + > > +$(eval $(call KernelPackage,lib-michael-mic)) > > + > > define KernelPackage/lib-zstd > > SUBMENU:=$(LIB_MENU) > > TITLE:=ZSTD support > > diff --git a/package/kernel/linux/modules/mhi.mk b/package/kernel/linux/modules/mhi.mk > > new file mode 100644 > > index 0000000000..a247b37efe > > --- /dev/null > > +++ b/package/kernel/linux/modules/mhi.mk > > @@ -0,0 +1,21 @@ > > +# > > +# Copyright (C) 2021 OpenWrt.org > > +# > > +# This is free software, licensed under the GNU General Public License v2. > > +# See /LICENSE for more information. > > +# > > + > > +MHI_MENU:=MHI support > > + > > +define KernelPackage/mhi-bus > > + SUBMENU:=$(MHI_MENU) > > + TITLE:=Support for Modem Host Interface (MHI) bus > > + KCONFIG:=CONFIG_MHI_BUS CONFIG_MHI_BUS_DEBUG=n > > + FILES:=$(LINUX_DIR)/drivers/bus/mhi/core/mhi.ko > > +endef > > + > > +define KernelPackage/mhi-bus/description > > + Kernel support for Modem Host Interface (MHI) > > +endef > > + > > +$(eval $(call KernelPackage,mhi-bus)) > > diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk > > index fdcc089025..555a94c442 100644 > > --- a/package/kernel/linux/modules/other.mk > > +++ b/package/kernel/linux/modules/other.mk > > @@ -1256,3 +1256,17 @@ define KernelPackage/f71808e-wdt/description > > endef > > > > $(eval $(call KernelPackage,f71808e-wdt)) > > + > > +define KernelPackage/qcom-qmi-helpers > > + SUBMENU:=$(OTHER_MENU) > > + TITLE:=Qualcomm QMI helpers > > + KCONFIG:=CONFIG_QCOM_QMI_HELPERS > > + FILES:=$(LINUX_DIR)/drivers/soc/qcom/qmi_helpers.ko > > + AUTOLOAD:=$(call AutoProbe,qmi_helpers,1) > > +endef > > + > > +define KernelPackage/qcom-qmi-helpers/description > > + Kernel module qcom_qmi_helpers > > +endef > > + > > +$(eval $(call KernelPackage,qcom-qmi-helpers)) > > diff --git a/package/kernel/linux/modules/qrtr.mk b/package/kernel/linux/modules/qrtr.mk > > new file mode 100644 > > index 0000000000..eea95bfd54 > > --- /dev/null > > +++ b/package/kernel/linux/modules/qrtr.mk > > @@ -0,0 +1,51 @@ > > +# > > +# Copyright (C) 2021 OpenWrt.org > > +# > > +# This is free software, licensed under the GNU General Public License v2. > > +# See /LICENSE for more information. > > +# > > + > > +QRTR_MENU:=Qualcomm IPC Router support > > + > > +define KernelPackage/qrtr > > + SUBMENU:=$(QRTR_MENU) > > + TITLE:=Qualcomm IPC Router support > > + KCONFIG:=CONFIG_QRTR > > + FILES:= \ > > + $(LINUX_DIR)/net/qrtr/qrtr.ko \ > > + $(LINUX_DIR)/net/qrtr/ns.ko > > +endef > > + > > +define KernelPackage/qrtr/description > > + Kernel support for Qualcomm IPC Router > > +endef > > + > > +$(eval $(call KernelPackage,qrtr)) > > + > > +define KernelPackage/qrtr-mhi > > + SUBMENU:=$(QRTR_MENU) > > + TITLE:=MHI IPC Router channels > > + KCONFIG:=CONFIG_QRTR_MHI > > + DEPENDS:=+kmod-mhi-bus +kmod-qrtr > > + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-mhi.ko > > +endef > > + > > +define KernelPackage/qrtr-mhi/description > > + Kernel support for MHI IPC Router channels > > +endef > > + > > +$(eval $(call KernelPackage,qrtr-mhi)) > > + > > +define KernelPackage/qrtr-tun > > + SUBMENU:=$(QRTR_MENU) > > + TITLE:=TUN device for Qualcomm IPC Router > > + KCONFIG:=CONFIG_QRTR_TUN > > + DEPENDS:=+kmod-qrtr > > + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-tun.ko > > +endef > > + > > +define KernelPackage/qrtr-tun/description > > + Kernel support for TUN device for Qualcomm IPC Router > > +endef > > + > > +$(eval $(call KernelPackage,qrtr-tun)) > > -- > > 2.25.1 > > > > > > _______________________________________________ > > openwrt-devel mailing list > > openwrt-devel@lists.openwrt.org > > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk index 9a341932bd..51a8c6a753 100644 --- a/package/kernel/linux/modules/lib.mk +++ b/package/kernel/linux/modules/lib.mk @@ -121,6 +121,20 @@ endef $(eval $(call KernelPackage,lib-lzo)) +define KernelPackage/lib-michael-mic + SUBMENU:=$(LIB_MENU) + TITLE:=MICHAEL_MIC support + KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC + FILES:= $(LINUX_DIR)/crypto/michael_mic.ko + AUTOLOAD:=$(call AutoProbe,michael_mic) +endef + +define KernelPackage/lib-michael-mic/description + Kernel module for MICHAEL_MIC support +endef + +$(eval $(call KernelPackage,lib-michael-mic)) + define KernelPackage/lib-zstd SUBMENU:=$(LIB_MENU) TITLE:=ZSTD support diff --git a/package/kernel/linux/modules/mhi.mk b/package/kernel/linux/modules/mhi.mk new file mode 100644 index 0000000000..a247b37efe --- /dev/null +++ b/package/kernel/linux/modules/mhi.mk @@ -0,0 +1,21 @@ +# +# Copyright (C) 2021 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +MHI_MENU:=MHI support + +define KernelPackage/mhi-bus + SUBMENU:=$(MHI_MENU) + TITLE:=Support for Modem Host Interface (MHI) bus + KCONFIG:=CONFIG_MHI_BUS CONFIG_MHI_BUS_DEBUG=n + FILES:=$(LINUX_DIR)/drivers/bus/mhi/core/mhi.ko +endef + +define KernelPackage/mhi-bus/description + Kernel support for Modem Host Interface (MHI) +endef + +$(eval $(call KernelPackage,mhi-bus)) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index fdcc089025..555a94c442 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1256,3 +1256,17 @@ define KernelPackage/f71808e-wdt/description endef $(eval $(call KernelPackage,f71808e-wdt)) + +define KernelPackage/qcom-qmi-helpers + SUBMENU:=$(OTHER_MENU) + TITLE:=Qualcomm QMI helpers + KCONFIG:=CONFIG_QCOM_QMI_HELPERS + FILES:=$(LINUX_DIR)/drivers/soc/qcom/qmi_helpers.ko + AUTOLOAD:=$(call AutoProbe,qmi_helpers,1) +endef + +define KernelPackage/qcom-qmi-helpers/description + Kernel module qcom_qmi_helpers +endef + +$(eval $(call KernelPackage,qcom-qmi-helpers)) diff --git a/package/kernel/linux/modules/qrtr.mk b/package/kernel/linux/modules/qrtr.mk new file mode 100644 index 0000000000..eea95bfd54 --- /dev/null +++ b/package/kernel/linux/modules/qrtr.mk @@ -0,0 +1,51 @@ +# +# Copyright (C) 2021 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +QRTR_MENU:=Qualcomm IPC Router support + +define KernelPackage/qrtr + SUBMENU:=$(QRTR_MENU) + TITLE:=Qualcomm IPC Router support + KCONFIG:=CONFIG_QRTR + FILES:= \ + $(LINUX_DIR)/net/qrtr/qrtr.ko \ + $(LINUX_DIR)/net/qrtr/ns.ko +endef + +define KernelPackage/qrtr/description + Kernel support for Qualcomm IPC Router +endef + +$(eval $(call KernelPackage,qrtr)) + +define KernelPackage/qrtr-mhi + SUBMENU:=$(QRTR_MENU) + TITLE:=MHI IPC Router channels + KCONFIG:=CONFIG_QRTR_MHI + DEPENDS:=+kmod-mhi-bus +kmod-qrtr + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-mhi.ko +endef + +define KernelPackage/qrtr-mhi/description + Kernel support for MHI IPC Router channels +endef + +$(eval $(call KernelPackage,qrtr-mhi)) + +define KernelPackage/qrtr-tun + SUBMENU:=$(QRTR_MENU) + TITLE:=TUN device for Qualcomm IPC Router + KCONFIG:=CONFIG_QRTR_TUN + DEPENDS:=+kmod-qrtr + FILES:= $(LINUX_DIR)/net/qrtr/qrtr-tun.ko +endef + +define KernelPackage/qrtr-tun/description + Kernel support for TUN device for Qualcomm IPC Router +endef + +$(eval $(call KernelPackage,qrtr-tun))
When build ath11k from backports we need enable such packages: - mhi-bus - qrtr - qrtr-mhi - michael-mic - qcom-qmi-helpers Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> --- package/kernel/linux/modules/lib.mk | 14 ++++++++ package/kernel/linux/modules/mhi.mk | 21 +++++++++++ package/kernel/linux/modules/other.mk | 14 ++++++++ package/kernel/linux/modules/qrtr.mk | 51 +++++++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 package/kernel/linux/modules/mhi.mk create mode 100644 package/kernel/linux/modules/qrtr.mk