lpac: Add support for MBIM backend

Signed-off-by: Ryan Press <ryan@presslab.us>
This commit is contained in:
Ryan Press
2025-03-31 06:59:54 -07:00
committed by David Bauer
parent f17c283cda
commit 864d80aaeb
4 changed files with 17 additions and 1 deletions

View File

@@ -19,4 +19,9 @@ config LPAC_WITH_UQMI
help
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

View File

@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lpac
PKG_VERSION:=2.2.1
PKG_RELEASE:=1
PKG_RELEASE:=2
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)?
@@ -25,6 +25,7 @@ define Package/lpac
DEPENDS:= \
+LPAC_WITH_PCSC:libpcsclite \
+LPAC_WITH_PCSC:pcscd \
+LPAC_WITH_MBIM:libmbim \
+libcurl
URL:=https://github.com/estkme-group/lpac
endef
@@ -50,6 +51,7 @@ CMAKE_OPTIONS += \
-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_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
define Package/lpac/install

View File

@@ -30,6 +30,11 @@ elif [ "$APDU_BACKEND" = "uqmi" ]; then
UQMI_DEBUG="$(uci_get lpac uqmi debug 0)"
export LPAC_QMI_DEV="$UQMI_DEV"
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
export LPAC_CUSTOM_ISD_R_AID="$CUSTOM_ISD_R_AID"

View File

@@ -12,3 +12,7 @@ config at at
config uqmi uqmi
option device '/dev/cdc-wdm0'
option debug '0'
config mbim mbim
option device '/dev/cdc-wdm0'
option proxy '1'