umbim: move package to 'WWAN' submenu
[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 SUBMENU:=WWAN
27 DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim +wwan
28 TITLE:=Control utility for mobile broadband modems
29 endef
30
31 define Package/umbim/description
32 umbim is a command line tool for controlling mobile broadband modems using
33 the MBIM-protocol.
34 endef
35
36 TARGET_CFLAGS += \
37 -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
38
39 TARGET_LDFLAGS += -Wl,--gc-sections
40
41 define Package/umbim/install
42 $(INSTALL_DIR) $(1)/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/umbim $(1)/sbin/
44 $(CP) ./files/* $(1)/
45 endef
46
47 $(eval $(call BuildPackage,umbim))