@ -11,17 +11,22 @@ PKG_NAME:=libqmi
PKG_VERSION := 1.30.4
PKG_RELEASE := $( AUTORELEASE)
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := https://www.freedesktop.org/software/libqmi
PKG_HASH := 00d7da30a4f8d1185f37cba289cfaf1dfcd04a58f2f76d6acfdf5b85312d6ed6
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
PKG_SOURCE_VERSION := $( PKG_VERSION)
PKG_MIRROR_HASH := 537eae29c36aba9757afd86e48b91c37c3fe3232037ad11fdd426297f6040a6b
PKG_MAINTAINER := Nicholas Smith <nicholas@nbembedded.com>
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := python3/host
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
i n c l u d e $( INCLUDE_DIR ) / m e s o n . m k
TARGET_CFLAGS += -ffunction-sections -fdata-sections -fno-merge-all-constants -fmerge-constants
TARGET_LDFLAGS += -Wl,--gc-sections
d e f i n e P a c k a g e / l i b q m i / c o n f i g
source " $( SOURCE) /Config.in "
@ -59,26 +64,31 @@ define Package/libqmi-utils/description
Utils to talk to QMI enabled modems
e n d e f
CONFIGURE_ARGS += \
--disable-static \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--disable-silent-rules \
--enable-firmware-update \
--without-udev \
--without-udev-base-dir
MESON_ARGS += \
-Dudev= false \
-Dintrospection= false \
-Dman= false \
-Dbash_completion= false \
-Db_lto= true
i f e q ( $( CONFIG_LIBQMI_WITH_MBIM_QMUX ) , y )
CONFIGURE_ARGS += --enable-mbim-qmux
MESON_ARGS += -Dmbim_qmux= true
e l s e
CONFIGURE_ARGS += --disable-mbim-qmux
MESON_ARGS += -Dmbim_qmux= false
e n d i f
i f e q ( $( CONFIG_LIBQMI_WITH_QRTR_GLIB ) , y )
CONFIGURE_ARGS += --enable-qrtr
MESON_ARGS += -Dqrtr= true
e l s e
MESON_ARGS += -Dqrtr= false
e n d i f
i f e q ( $( CONFIG_LIBQMI_COLLECTION_MINIMAL ) , y )
MESON_ARGS += -Dcollection= minimal
e l s e i f e q ( $( CONFIG_LIBQMI_COLLECTION_BASIC ) , y )
MESON_ARGS += -Dcollection= basic
e l s e
CONFIGURE_ARGS += --disable-qrtr
MESON_ARGS += -Dcollection= full
e n d i f
d e f i n e B u i l d / I n s t a l l D e v
@ -99,12 +109,15 @@ define Build/InstallDev
e n d e f
d e f i n e P a c k a g e / l i b q m i / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) \
$( 1) /usr/lib \
$( 1) /usr/libexec
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libqmi*.so.* \
$( 1) /usr/lib/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/lib/qmi-proxy $( 1) /usr/lib/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/libexec /qmi-proxy $( 1) /usr/libexec /
e n d e f
d e f i n e P a c k a g e / q m i - u t i l s / i n s t a l l