Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uqmi
  3. PKG_VERSION:=2015-09-17
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL=$(OPENWRT_GIT)/project/uqmi.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=8a97586e9445a60e355dea13aa87885ab3dcb277
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MAINTAINER:=Matti Laakso <malaakso@elisanet.fi>
  11. # PKG_MIRROR_MD5SUM:=
  12. # CMAKE_INSTALL:=1
  13. PKG_LICENSE:=GPL-2.0
  14. PKG_LICENSE_FILES:=
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/uqmi
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libubox +libblobmsg-json +kmod-usb-net +kmod-usb-net-qmi-wwan +wwan
  22. TITLE:=Control utility for mobile broadband modems
  23. endef
  24. define Package/uqmi/description
  25. uqmi is a command line tool for controlling mobile broadband modems using
  26. the QMI-protocol.
  27. endef
  28. TARGET_CFLAGS += \
  29. -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
  30. TARGET_LDFLAGS += -Wl,--gc-sections
  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))