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=$(LEDE_GIT)/project/umbim.git
  6. PKG_SOURCE_DATE:=2015-07-04
  7. PKG_SOURCE_VERSION:=29aaf43b097ee57f7aa1bb24341db6cc4148cbf3
  8. PKG_MIRROR_HASH:=56e612d9da1ac26de96c4929fbabd047862d725a13ceb904807a9d3d7db43a30
  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))