Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uqmi
  3. PKG_RELEASE:=7
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/uqmi.git
  6. PKG_SOURCE_DATE:=2019-06-27
  7. PKG_SOURCE_VERSION:=1965c713937495a5cb029165c16acdb6572c3f87
  8. PKG_MIRROR_HASH:=3c39b1c1f20b7d523b0891d08b3d10233331ada8e11d0b55cfd4882816308951
  9. PKG_MAINTAINER:=Matti Laakso <malaakso@elisanet.fi>
  10. PKG_LICENSE:=GPL-2.0
  11. PKG_LICENSE_FILES:=
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_FLAGS:=nonshared
  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 -ffunction-sections -fdata-sections
  29. TARGET_LDFLAGS += -Wl,--gc-sections
  30. CMAKE_OPTIONS += \
  31. -DDEBUG=1
  32. define Package/uqmi/install
  33. $(INSTALL_DIR) $(1)/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/
  35. $(CP) ./files/* $(1)/
  36. endef
  37. $(eval $(call BuildPackage,uqmi))