Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uqmi
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/uqmi.git
  6. PKG_SOURCE_DATE:=2022-10-20
  7. PKG_SOURCE_VERSION:=c8c9f105aa2d03146664fa1cc1bd2c837aa4aadd
  8. PKG_MIRROR_HASH:=5fd1b3c8f5e7c4b52ed81a0c69504fbf39e69c0ecd1f8278969cf22f57fdb2a9
  9. PKG_MAINTAINER:=Matti Laakso <malaakso@elisanet.fi>
  10. PKG_LICENSE:=GPL-2.0
  11. PKG_LICENSE_FILES:=
  12. PKG_FLAGS:=nonshared
  13. PKG_BUILD_FLAGS:=gc-sections
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/uqmi
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=WWAN
  20. DEPENDS:=+libubox +libblobmsg-json +kmod-usb-net +kmod-usb-net-qmi-wwan +wwan
  21. TITLE:=Control utility for mobile broadband modems
  22. endef
  23. define Package/uqmi/description
  24. uqmi is a command line tool for controlling mobile broadband modems using
  25. the QMI-protocol.
  26. endef
  27. TARGET_CFLAGS += \
  28. -I$(STAGING_DIR)/usr/include \
  29. -Wno-error=dangling-pointer \
  30. -Wno-error=maybe-uninitialized
  31. CMAKE_OPTIONS += \
  32. -DDEBUG=1
  33. define Package/uqmi/install
  34. $(INSTALL_DIR) $(1)/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/
  36. $(CP) ./files/* $(1)/
  37. endef
  38. $(eval $(call BuildPackage,uqmi))