umbim: add netifd proto handler for mbim style lte modems
[openwrt/svn-archive/archive.git] / package / network / utils / umbim / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=umbim
4 PKG_VERSION:=2014-08-22
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://git.openwrt.org/project/umbim.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=b82f187ab204a56f5ed7cd6d4de64bfdc07a1a74
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
13
14 PKG_LICENSE:=GPLv2
15 PKG_LICENSE_FILES:=
16
17 PKG_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 define Package/umbim
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim
26 TITLE:=Control utility for mobile broadband modems
27 endef
28
29 define Package/umbim/description
30 umbim is a command line tool for controlling mobile broadband modems using
31 the MBIM-protocol.
32 endef
33
34 TARGET_CFLAGS += \
35 -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
36
37 TARGET_LDFLAGS += -Wl,--gc-sections
38
39 define Package/umbim/install
40 $(INSTALL_DIR) $(1)/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/umbim $(1)/sbin/
42 $(CP) ./files/* $(1)/
43 endef
44
45 $(eval $(call BuildPackage,umbim))