2014-08-22 19:02:30 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=umbim
|
2015-04-09 10:32:01 +00:00
|
|
|
PKG_VERSION:=2015-04-09
|
2014-08-22 19:02:30 +00:00
|
|
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-06-06 19:16:47 +00:00
|
|
|
PKG_SOURCE_URL=$(LEDE_GIT)/project/umbim.git
|
2014-08-22 19:02:30 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2015-04-09 10:32:01 +00:00
|
|
|
PKG_SOURCE_VERSION:=af9c293c1f1d8a97fbd8adf9c6070ead4920ca84
|
2014-08-22 19:02:30 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2014-08-22 19:02:30 +00:00
|
|
|
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2014-08-22 19:02:30 +00:00
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/umbim
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2015-03-09 14:07:06 +00:00
|
|
|
DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim +wwan
|
2014-08-22 19:02:30 +00:00
|
|
|
TITLE:=Control utility for mobile broadband modems
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/umbim/description
|
|
|
|
umbim is a command line tool for controlling mobile broadband modems using
|
|
|
|
the MBIM-protocol.
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
|
|
|
|
define Package/umbim/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/umbim $(1)/sbin/
|
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,umbim))
|