Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=umbim
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/umbim.git
  6. PKG_SOURCE_DATE:=2019-03-11
  7. PKG_SOURCE_VERSION:=24f9dc71a624cecd67c181cec77b4101038a39d9
  8. PKG_MIRROR_HASH:=452bd6f1019ce53fd02119b12a8d6b13e946b73de02642e20e9fd85c482c452d
  9. PKG_MAINTAINER:=John Crispin <john@phrozen.org>
  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/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))