mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

Add pdptype param, for selecting IPv4, IPv6, or IPv4v6 Fix check for required PIN, only pin1 (SIM pin) matters Get IP config directly from modem, no need for DHCP Fix return value from proto_mbim_setup() Signed-off-by: Howard Chu <hyc@symas.com>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=umbim
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/umbim.git
|
|
PKG_SOURCE_DATE:=2019-09-11
|
|
PKG_SOURCE_VERSION:=184b707ddaa0acee84d02e0ffe599cb8b67782bd
|
|
PKG_MIRROR_HASH:=482ff69144f81fafed99035840f5a24e772472f2df2f3ac0219d6de791ac5835
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/umbim
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=WWAN
|
|
DEPENDS:=+libubox +kmod-usb-net +kmod-usb-net-cdc-mbim +wwan
|
|
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))
|