Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/lpac: new package
@ 2025-04-30  5:59 yegorslists--- via buildroot
  2025-05-17 15:03 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: yegorslists--- via buildroot @ 2025-04-30  5:59 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes v1 -> v2:
  - add libqmi dependency for qrtr case

 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/lpac/Config.in | 16 ++++++++++++++++
 package/lpac/lpac.hash |  5 +++++
 package/lpac/lpac.mk   | 41 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 100644 package/lpac/Config.in
 create mode 100644 package/lpac/lpac.hash
 create mode 100644 package/lpac/lpac.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 15389d530b..01ba341522 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3490,6 +3490,7 @@ F:	package/libuci/
 F:	package/libxmlb/
 F:	package/linux-firmware/
 F:	package/linux-serial-test/
+F:	package/lpac/
 F:	package/modem-manager/
 F:	package/ncftp/
 F:	package/nftables/
diff --git a/package/Config.in b/package/Config.in
index 167965d64b..44030c09f5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2553,6 +2553,7 @@ endif
 	source "package/linux-zigbee/Config.in"
 	source "package/linuxptp/Config.in"
 	source "package/lldpd/Config.in"
+	source "package/lpac/Config.in"
 	source "package/lrzsz/Config.in"
 	source "package/lynx/Config.in"
 	source "package/macchanger/Config.in"
diff --git a/package/lpac/Config.in b/package/lpac/Config.in
new file mode 100644
index 0000000000..6cfe11cc67
--- /dev/null
+++ b/package/lpac/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_LPAC
+	bool "lpac"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # pcsc-lite
+	depends on BR2_USE_MMU # pcsc-lite
+	depends on !BR2_STATIC_LIBS # pcsc-lite
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pcsc-lite
+	select BR2_PACKAGE_PCSC_LITE
+	help
+	  C-based eUICC LPA.
+
+	  https://github.com/estkme-group/lpac
+
+comment "lpac needs a toolchain w/ threads, dynamic library, gcc >= 4.9"
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
diff --git a/package/lpac/lpac.hash b/package/lpac/lpac.hash
new file mode 100644
index 0000000000..bf93ef245f
--- /dev/null
+++ b/package/lpac/lpac.hash
@@ -0,0 +1,5 @@
+# Locally computed:
+sha256  3d87080a625b10430eebb82f89e2d24e16a84a8435a9c40b3718fd88c82028ba  lpac-2.2.1.tar.gz
+sha256  8486a10c4393cee1c25392769ddd3b2d6c242d6ec7928e1414efff7dfb2f07ef  src/LICENSE
+sha256  b673293d21e887eaa9b971696b33f0f9141839900c65c83e560afa469d291ba6  euicc/LICENSE
+sha256  163766832b15cc9c90d593216360c67af579b8b36932b297fca2aeb61544de2f  cjson/LICENSE
diff --git a/package/lpac/lpac.mk b/package/lpac/lpac.mk
new file mode 100644
index 0000000000..3b0efc7c3a
--- /dev/null
+++ b/package/lpac/lpac.mk
@@ -0,0 +1,41 @@
+################################################################################
+#
+# lpac
+#
+################################################################################
+
+LPAC_VERSION = 2.2.1
+LPAC_SITE = $(call github,estkme-group,lpac,v$(LPAC_VERSION))
+LPAC_LICENSE = LGPL-2.0+ (library), AGPL-3.0 (programs), MIT (cjson)
+LPAC_LICENSE_FILES = src/LICENSE euicc/LICENSE cjson/LICENSE
+LPAC_DEPENDENCIES = pcsc-lite
+
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+LPAC_DEPENDENCIES += libcurl
+LPAC_CONF_OPTS += -DLPAC_WITH_HTTP_CURL=ON
+else
+LPAC_CONF_OPTS += -DLPAC_WITH_HTTP_CURL=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBQMI),y)
+LPAC_DEPENDENCIES += libqmi
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_QMI=ON
+else
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_QMI=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+LPAC_DEPENDENCIES += libqmi libqrtr-glib
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_QMI_QRTR=ON
+else
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_QMI_QRTR=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBMBIM),y)
+LPAC_DEPENDENCIES += libmbim
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_MBIM=ON
+else
+LPAC_CONF_OPTS += -DLPAC_WITH_APDU_MBIM=OFF
+endif
+
+$(eval $(cmake-package))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/lpac: new package
  2025-04-30  5:59 [Buildroot] [PATCH v2] package/lpac: new package yegorslists--- via buildroot
@ 2025-05-17 15:03 ` Thomas Petazzoni via buildroot
  2025-05-17 21:00   ` Yegor Yefremov
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-05-17 15:03 UTC (permalink / raw)
  To: yegorslists--- via buildroot

Hello Yegor,

On Wed, 30 Apr 2025 07:59:56 +0200
yegorslists--- via buildroot <buildroot@buildroot.org> wrote:

> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Thanks for your patch, which I have applied, with one small change (see
below).

But out of curiosity, could you explain what LPAC is useful for? I
tried to read a bit on the topic, but it's quite confusing. In what
situation is LPAC needed, on embedded Linux devices?

> +LPAC_VERSION = 2.2.1
> +LPAC_SITE = $(call github,estkme-group,lpac,v$(LPAC_VERSION))
> +LPAC_LICENSE = LGPL-2.0+ (library), AGPL-3.0 (programs), MIT (cjson)

The library license is LGPL-2.1+, so I fixed that up.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/lpac: new package
  2025-05-17 15:03 ` Thomas Petazzoni via buildroot
@ 2025-05-17 21:00   ` Yegor Yefremov
  2025-05-18  7:06     ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Yegor Yefremov @ 2025-05-17 21:00 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: yegorslists--- via buildroot

Hi Thomas,

On Sat, May 17, 2025 at 5:03 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello Yegor,
>
> On Wed, 30 Apr 2025 07:59:56 +0200
> yegorslists--- via buildroot <buildroot@buildroot.org> wrote:
>
> > From: Yegor Yefremov <yegorslists@googlemail.com>
> >
> > Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
>
> Thanks for your patch, which I have applied, with one small change (see
> below).

Thanks.

> But out of curiosity, could you explain what LPAC is useful for? I
> tried to read a bit on the topic, but it's quite confusing. In what
> situation is LPAC needed, on embedded Linux devices?

You need this tool to manage eSIM profiles. See these blog posts [1],
[2] for details.

[1] https://techship.com/blog/how-to-use-an-esim-in-linux-7/
[2] https://techship.com/blog/esim-euicc-and-sgp-standards-enabling-iot-connectivity-2/

Yegor

> > +LPAC_VERSION = 2.2.1
> > +LPAC_SITE = $(call github,estkme-group,lpac,v$(LPAC_VERSION))
> > +LPAC_LICENSE = LGPL-2.0+ (library), AGPL-3.0 (programs), MIT (cjson)
>
> The library license is LGPL-2.1+, so I fixed that up.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/lpac: new package
  2025-05-17 21:00   ` Yegor Yefremov
@ 2025-05-18  7:06     ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-05-18  7:06 UTC (permalink / raw)
  To: Yegor Yefremov; +Cc: yegorslists--- via buildroot

Hello Yegor,

On Sat, 17 May 2025 23:00:29 +0200
Yegor Yefremov <yegorslists@googlemail.com> wrote:

> You need this tool to manage eSIM profiles. See these blog posts [1],
> [2] for details.
> 
> [1] https://techship.com/blog/how-to-use-an-esim-in-linux-7/
> [2] https://techship.com/blog/esim-euicc-and-sgp-standards-enabling-iot-connectivity-2/

Thanks for the references, very useful!

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-18  7:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30  5:59 [Buildroot] [PATCH v2] package/lpac: new package yegorslists--- via buildroot
2025-05-17 15:03 ` Thomas Petazzoni via buildroot
2025-05-17 21:00   ` Yegor Yefremov
2025-05-18  7:06     ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox