libqmi: fix missing CONFIG_ prefix 17337/head
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 14 Dec 2021 07:55:26 +0000 (08:55 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 15 Dec 2021 10:56:08 +0000 (11:56 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
libs/libqmi/Makefile

index a17181959e67e1ab8976646551bc5161952c5dde..ee5b697491e0e8ab34bcc28769121775421af1ef 100644 (file)
@@ -66,12 +66,22 @@ CONFIGURE_ARGS += \
        --disable-gtk-doc-pdf \
        --disable-silent-rules \
        --enable-firmware-update \
-       --$(if $(LIBQMI_WITH_MBIM_QMUX),en,dis)able-mbim-qmux \
-       --$(if $(LIBQMI_WITH_QRTR_GLIB),en,dis)able-qrtr \
        --enable-more-warnings=yes \
        --without-udev \
        --without-udev-base-dir
 
+ifeq ($(CONFIG_LIBQMI_WITH_MBIM_QMUX),y)
+       CONFIGURE_ARGS += --enable-mbim-qmux
+else
+       CONFIGURE_ARGS += --disable-mbim-qmux
+endif
+
+ifeq ($(CONFIG_LIBQMI_WITH_QRTR_GLIB),y)
+       CONFIGURE_ARGS += --enable-qrtr
+else
+       CONFIGURE_ARGS += --disable-qrtr
+endif
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) \