417363f4daf0d52499c38b4d62c0b78a921fba7d
[openwrt/staging/mkresin.git] / package / network / utils / umbim / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=umbim
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_PROTO:=git
7 PKG_SOURCE_URL=$(PROJECT_GIT)/project/umbim.git
8 PKG_SOURCE_DATE:=2019-09-11
9 PKG_SOURCE_VERSION:=184b707ddaa0acee84d02e0ffe599cb8b67782bd
10 PKG_MIRROR_HASH:=482ff69144f81fafed99035840f5a24e772472f2df2f3ac0219d6de791ac5835
11 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
12
13 PKG_LICENSE:=GPL-2.0
14 PKG_LICENSE_FILES:=
15
16 PKG_BUILD_PARALLEL:=1
17
18 PKG_FLAGS:=nonshared
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 define Package/umbim
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim +wwan
27 TITLE:=Control utility for mobile broadband modems
28 endef
29
30 define Package/umbim/description
31 umbim is a command line tool for controlling mobile broadband modems using
32 the MBIM-protocol.
33 endef
34
35 TARGET_CFLAGS += \
36 -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
37
38 TARGET_LDFLAGS += -Wl,--gc-sections
39
40 define Package/umbim/install
41 $(INSTALL_DIR) $(1)/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/umbim $(1)/sbin/
43 $(CP) ./files/* $(1)/
44 endef
45
46 $(eval $(call BuildPackage,umbim))