Browse Source

libqmi: make QMI-over-MBIM support optional

There is no need to force every user of libqmi to require libmbim and
build with QMI-over-MBIM support, if they know they're not going to
use it. Just make it optional and enabled by default.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
lilik-openwrt-22.03
Aleksander Morgado 4 years ago
parent
commit
540c8f63a3
2 changed files with 18 additions and 3 deletions
  1. +9
    -0
      libs/libqmi/Config.in
  2. +9
    -3
      libs/libqmi/Makefile

+ 9
- 0
libs/libqmi/Config.in View File

@ -0,0 +1,9 @@
menu "Configuration"
depends on PACKAGE_libqmi
config LIBQMI_WITH_MBIM_QMUX
bool "Include MBIM QMUX service support"
default y
help
Compile libqmi with QMI-over-MBIM support
endmenu

+ 9
- 3
libs/libqmi/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libqmi PKG_NAME:=libqmi
PKG_VERSION:=1.26.6 PKG_VERSION:=1.26.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi
@ -23,10 +23,16 @@ PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/nls.mk
define Package/libqmi/config
source "$(SOURCE)/Config.in"
endef
define Package/libqmi define Package/libqmi
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
DEPENDS:=+libmbim
DEPENDS:= \
+glib2 \
+LIBQMI_WITH_MBIM_QMUX:libmbim
TITLE:=Helper library to talk to QMI enabled modems TITLE:=Helper library to talk to QMI enabled modems
URL:=https://www.freedesktop.org/wiki/Software/libqmi URL:=https://www.freedesktop.org/wiki/Software/libqmi
LICENSE:=LGPL-2.0-or-later LICENSE:=LGPL-2.0-or-later
@ -59,7 +65,7 @@ CONFIGURE_ARGS += \
--disable-gtk-doc-pdf \ --disable-gtk-doc-pdf \
--disable-silent-rules \ --disable-silent-rules \
--enable-firmware-update \ --enable-firmware-update \
--enable-mbim-qmux \
--$(if $(LIBQMI_WITH_MBIM_QMUX),en,dis)able-mbim-qmux \
--enable-more-warnings=yes \ --enable-more-warnings=yes \
--without-udev \ --without-udev \
--without-udev-base-dir --without-udev-base-dir


Loading…
Cancel
Save