Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=umbim
  3. PKG_VERSION:=2015-07-04
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL=$(OPENWRT_GIT)/project/umbim.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=29aaf43b097ee57f7aa1bb24341db6cc4148cbf3
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/umbim
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim +wwan
  20. TITLE:=Control utility for mobile broadband modems
  21. endef
  22. define Package/umbim/description
  23. umbim is a command line tool for controlling mobile broadband modems using
  24. the MBIM-protocol.
  25. endef
  26. TARGET_CFLAGS += \
  27. -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
  28. TARGET_LDFLAGS += -Wl,--gc-sections
  29. define Package/umbim/install
  30. $(INSTALL_DIR) $(1)/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/umbim $(1)/sbin/
  32. $(CP) ./files/* $(1)/
  33. endef
  34. $(eval $(call BuildPackage,umbim))