Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:=2016-12-19
  7. PKG_SOURCE_VERSION:=8ceeab690d8c6f1e3afbd4bcaee7bc2ba3fbe165
  8. PKG_MIRROR_HASH:=b3637ff04e51769137af1c5e173e73311e11c3c2dcc49eeaca6aa3520f61d247
  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))