Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions utils/lpac/Config.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
menu "Configuration"
depends on PACKAGE_lpac

config LPAC_WITH_PCSC
bool "Include APDU PCSC Backend support"
default n
default y
help
Compile LPAC with APDU PCSC Backend support.

Expand Down
9 changes: 5 additions & 4 deletions utils/lpac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=lpac
PKG_VERSION:=2.2.1
PKG_RELEASE:=2
PKG_VERSION:=2.3.0
PKG_RELEASE:=1

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_HASH:=3d87080a625b10430eebb82f89e2d24e16a84a8435a9c40b3718fd88c82028ba
PKG_HASH:=661dffbd1e9e5732dab4a0bb0a9837d4906c8c66bd748bda262fe3e8d3e420f6

PKG_MAINTAINER:=David Bauer <david.bauer@uniberg.com>
PKG_LICENSE:=AGPL-3.0-only LGPL-2.0-only
Expand All @@ -23,10 +23,11 @@ define Package/lpac
CATEGORY:=Utilities
TITLE:=eUICC eSIM LPA written in C
DEPENDS:= \
+libcurl \
+LPAC_WITH_PCSC:libpcsclite \
+LPAC_WITH_PCSC:pcscd \
+LPAC_WITH_MBIM:libmbim \
+libcurl
+LPAC_WITH_UQMI:uqmi
URL:=https://github.com/estkme-group/lpac
endef

Expand Down
12 changes: 6 additions & 6 deletions utils/lpac/files/lpac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ fi
if [ "$APDU_BACKEND" = "at" ]; then
AT_DEVICE="$(uci_get lpac at device /dev/ttyUSB2)"
AT_DEBUG="$(uci_get lpac at debug 0)"
export AT_DEVICE="$AT_DEVICE"
export AT_DEBUG="$AT_DEBUG"
export LPAC_APDU_AT_DEVICE="$AT_DEVICE"
export LPAC_APDU_AT_DEBUG="$AT_DEBUG"
elif [ "$APDU_BACKEND" = "uqmi" ]; then
UQMI_DEV="$(uci_get lpac uqmi device /dev/cdc-wdm0)"
UQMI_DEBUG="$(uci_get lpac uqmi debug 0)"
export LPAC_QMI_DEV="$UQMI_DEV"
export LPAC_QMI_DEBUG="$UQMI_DEBUG"
export LPAC_APDU_QMI_DEVICE="$UQMI_DEV"
export LPAC_APDU_UQMI_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"
export LPAC_APDU_MBIM_DEVICE="$MBIM_DEVICE"
export LPAC_APDU_MBIM_USE_PROXY="$MBIM_PROXY"
fi

export LPAC_CUSTOM_ISD_R_AID="$CUSTOM_ISD_R_AID"
Expand Down
16 changes: 8 additions & 8 deletions utils/lpac/patches/0001-driver-add-uqmi-backend.patch
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Signed-off-by: David Bauer <david.bauer@uniberg.com>

--- a/driver/CMakeLists.txt
+++ b/driver/CMakeLists.txt
@@ -52,6 +52,9 @@ if(LPAC_WITH_APDU_AT)
target_sources(euicc-drivers PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/apdu/at.c)
@@ -62,6 +62,9 @@ if(LPAC_WITH_APDU_AT_WIN32)
)
endif()

+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLPAC_WITH_APDU_UQMI")
Expand Down Expand Up @@ -325,19 +325,19 @@ Signed-off-by: David Bauer <david.bauer@uniberg.com>
+extern const struct euicc_driver driver_apdu_uqmi;
--- a/driver/driver.c
+++ b/driver/driver.c
@@ -26,6 +26,9 @@
@@ -28,6 +28,9 @@
#ifdef LPAC_WITH_APDU_AT
#include "driver/apdu/at.h"
# include "driver/apdu/at.h"
#endif
+#ifdef LPAC_WITH_APDU_UQMI
+#include "driver/apdu/uqmi.h"
+#endif
#ifdef LPAC_WITH_HTTP_CURL
#include "driver/http/curl.h"
# include "driver/http/curl.h"
#endif
@@ -51,6 +54,9 @@ static const struct euicc_driver *driver
#ifdef LPAC_WITH_APDU_AT
&driver_apdu_at,
@@ -59,6 +62,9 @@ static const struct euicc_driver *driver
#ifdef LPAC_WITH_APDU_AT_WIN32
&driver_apdu_at_win32,
#endif
+#ifdef LPAC_WITH_APDU_UQMI
+ &driver_apdu_uqmi,
Expand Down
Loading