mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
lpac: Add support for MBIM backend
Signed-off-by: Ryan Press <ryan@presslab.us>
This commit is contained in:
@@ -19,4 +19,9 @@ config LPAC_WITH_UQMI
|
|||||||
help
|
help
|
||||||
Compile LPAC with APDU uqmi Backend support.
|
Compile LPAC with APDU uqmi Backend support.
|
||||||
|
|
||||||
|
config LPAC_WITH_MBIM
|
||||||
|
bool "Include APDU MBIM Backend support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Compile LPAC with APDU MBIM Backend support.
|
||||||
endmenu
|
endmenu
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=lpac
|
PKG_NAME:=lpac
|
||||||
PKG_VERSION:=2.2.1
|
PKG_VERSION:=2.2.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/estkme-group/lpac/tar.gz/refs/tags/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/estkme-group/lpac/tar.gz/refs/tags/v$(PKG_VERSION)?
|
||||||
@@ -25,6 +25,7 @@ define Package/lpac
|
|||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+LPAC_WITH_PCSC:libpcsclite \
|
+LPAC_WITH_PCSC:libpcsclite \
|
||||||
+LPAC_WITH_PCSC:pcscd \
|
+LPAC_WITH_PCSC:pcscd \
|
||||||
|
+LPAC_WITH_MBIM:libmbim \
|
||||||
+libcurl
|
+libcurl
|
||||||
URL:=https://github.com/estkme-group/lpac
|
URL:=https://github.com/estkme-group/lpac
|
||||||
endef
|
endef
|
||||||
@@ -50,6 +51,7 @@ CMAKE_OPTIONS += \
|
|||||||
-DLPAC_WITH_APDU_PCSC=$(if $(CONFIG_LPAC_WITH_PCSC),ON,OFF) \
|
-DLPAC_WITH_APDU_PCSC=$(if $(CONFIG_LPAC_WITH_PCSC),ON,OFF) \
|
||||||
-DLPAC_WITH_APDU_AT=$(if $(CONFIG_LPAC_WITH_AT),ON,OFF) \
|
-DLPAC_WITH_APDU_AT=$(if $(CONFIG_LPAC_WITH_AT),ON,OFF) \
|
||||||
-DLPAC_WITH_APDU_UQMI=$(if $(CONFIG_LPAC_WITH_UQMI),ON,OFF) \
|
-DLPAC_WITH_APDU_UQMI=$(if $(CONFIG_LPAC_WITH_UQMI),ON,OFF) \
|
||||||
|
-DLPAC_WITH_APDU_MBIM=$(if $(CONFIG_LPAC_WITH_MBIM),ON,OFF) \
|
||||||
-DLPAC_WITH_APDU_QMI_QRTR=OFF
|
-DLPAC_WITH_APDU_QMI_QRTR=OFF
|
||||||
|
|
||||||
define Package/lpac/install
|
define Package/lpac/install
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ elif [ "$APDU_BACKEND" = "uqmi" ]; then
|
|||||||
UQMI_DEBUG="$(uci_get lpac uqmi debug 0)"
|
UQMI_DEBUG="$(uci_get lpac uqmi debug 0)"
|
||||||
export LPAC_QMI_DEV="$UQMI_DEV"
|
export LPAC_QMI_DEV="$UQMI_DEV"
|
||||||
export LPAC_QMI_DEBUG="$UQMI_DEBUG"
|
export LPAC_QMI_DEBUG="$UQMI_DEBUG"
|
||||||
|
elif [ "$APDU_BACKEND" = "mbim" ]; then
|
||||||
|
MBIM_DEVICE="$(uci_get lpac mbim device /dev/cdc-wdm0)"
|
||||||
|
MBIM_PROXY="$(uci_get lpac mbim proxy 1)"
|
||||||
|
export MBIM_DEVICE="$MBIM_DEVICE"
|
||||||
|
export MBIM_USE_PROXY="$MBIM_PROXY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export LPAC_CUSTOM_ISD_R_AID="$CUSTOM_ISD_R_AID"
|
export LPAC_CUSTOM_ISD_R_AID="$CUSTOM_ISD_R_AID"
|
||||||
|
|||||||
@@ -12,3 +12,7 @@ config at at
|
|||||||
config uqmi uqmi
|
config uqmi uqmi
|
||||||
option device '/dev/cdc-wdm0'
|
option device '/dev/cdc-wdm0'
|
||||||
option debug '0'
|
option debug '0'
|
||||||
|
|
||||||
|
config mbim mbim
|
||||||
|
option device '/dev/cdc-wdm0'
|
||||||
|
option proxy '1'
|
||||||
|
|||||||
Reference in New Issue
Block a user