• R/O
  • HTTP
  • SSH
  • HTTPS

packages: Commit

Community maintained packages for ImmortalWrt.


Commit MetaInfo

Revision7508755357e80e02c38819a5bc287ee0cbf18951 (tree)
Time2022-12-02 19:39:42
AuthorMaxim Anisimov <maxim.anisimov.ua@gmai...>
CommiterFlorian Eckert

Log Message

libqmi: polish Makefile

PKG_VERSION replaced by PKG_SOURCE_VERSION.
Simplify for collection selection.
Removed unneeded python3/host dep.

Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
(cherry picked from commit ff5837ee8f483bb425d33b18c1185586507d495c)
(cherry picked from commit 94b824423bc0f668a2f607497d26cc00f47e521e)

Change Summary

Incremental Difference

--- a/libs/libqmi/Makefile
+++ b/libs/libqmi/Makefile
@@ -8,18 +8,16 @@
88 include $(TOPDIR)/rules.mk
99
1010 PKG_NAME:=libqmi
11-PKG_VERSION:=1.30.4
11+PKG_SOURCE_VERSION:=1.30.4
1212 PKG_RELEASE:=$(AUTORELEASE)
1313
1414 PKG_SOURCE_PROTO:=git
1515 PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
16-PKG_SOURCE_VERSION:=$(PKG_VERSION)
1716 PKG_MIRROR_HASH:=537eae29c36aba9757afd86e48b91c37c3fe3232037ad11fdd426297f6040a6b
1817
1918 PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com>
2019
2120 PKG_INSTALL:=1
22-PKG_BUILD_DEPENDS:=python3/host
2321
2422 include $(INCLUDE_DIR)/package.mk
2523 include $(INCLUDE_DIR)/nls.mk
@@ -69,27 +67,11 @@ MESON_ARGS += \
6967 -Dintrospection=false \
7068 -Dman=false \
7169 -Dbash_completion=false \
72- -Db_lto=true
73-
74-ifeq ($(CONFIG_LIBQMI_WITH_MBIM_QMUX),y)
75- MESON_ARGS += -Dmbim_qmux=true
76-else
77- MESON_ARGS += -Dmbim_qmux=false
78-endif
79-
80-ifeq ($(CONFIG_LIBQMI_WITH_QRTR_GLIB),y)
81- MESON_ARGS += -Dqrtr=true
82-else
83- MESON_ARGS += -Dqrtr=false
84-endif
85-
86-ifeq ($(CONFIG_LIBQMI_COLLECTION_MINIMAL),y)
87- MESON_ARGS += -Dcollection=minimal
88-else ifeq ($(CONFIG_LIBQMI_COLLECTION_BASIC),y)
89- MESON_ARGS += -Dcollection=basic
90-else
91- MESON_ARGS += -Dcollection=full
92-endif
70+ -Db_lto=true \
71+ -Dmbim_qmux=$(if $(CONFIG_LIBQMI_WITH_MBIM_QMUX),true,false) \
72+ -Dqrtr=$(if $(CONFIG_LIBQMI_WITH_QRTR_GLIB),true,false) \
73+ -Dcollection=$(if $(CONFIG_LIBQMI_COLLECTION_MINIMAL),minimal\
74+ ,$(if $(CONFIG_LIBQMI_COLLECTION_BASIC),basic,full))
9375
9476 define Build/InstallDev
9577 $(INSTALL_DIR) $(1)/usr/include
Show on old repository browser