Skip to contentSkip to conversation

package/modem-manager: enable qcom-soc if libqrtr-glib enabled

PATCH In review Petr Vorel 3 participants 10 messages Apr 4, 2021 – Jul 25, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/modem-manager/modem-manager.mk +6 -0
index 2cc45d266b..d62d13cf45 100644
@@ -34,6 +34,12 @@ else
 MODEM_MANAGER_CONF_OPTS += --without-mbim
 endif
 
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc
+else
+MODEM_MANAGER_CONF_OPTS += --disable-plugin-qcom-soc
+endif
+
 define MODEM_MANAGER_INSTALL_INIT_SYSV
 	$(INSTALL) -m 0755 -D package/modem-manager/S44modem-manager \
 		$(TARGET_DIR)/etc/init.d/S44modem-manager
Signature · 1 line
2.31.0
#1 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Quoted 14 lines · On Sun, 4 Apr 2021 20:41:26 +0200 Petr Vorel <[email protected]> wrote:

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/modem-manager/modem-manager.mk +0 -0
index 2cc45d266b..d62d13cf45 100644

package/modem-manager/modem-manager.mk else · line 38

Quoted 5 lines
package/modem-manager/modem-manager.mk +2 -0
@@ -34,6 +34,12 @@ else
 MODEM_MANAGER_CONF_OPTS += --without-mbim
 endif
 
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Quoted 20 lines
Quoted 16 lines · On Sun, 4 Apr 2021 20:41:26 +0200 Petr Vorel <[email protected]> wrote:

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/modem-manager/modem-manager.mk +0 -0
index 2cc45d266b..d62d13cf45 100644
@@ -34,6 +34,12 @@ else
 MODEM_MANAGER_CONF_OPTS += --without-mbim
 endif
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

error: Couldn't find libqmi-glib >= 1.29.3
when building locally.
=> you're right it probably requires MODEM_MANAGER_DEPENDENCIES += libqrtr-glib I'll test it and probably sent v2.
Thanks for catching error!

Kind regards,
Petr

Quoted 1 line

Thomas

author
#3 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

In reply to Thomas Petazzoni
Quoted 20 lines
Quoted 16 lines · On Sun, 4 Apr 2021 20:41:26 +0200 Petr Vorel <[email protected]> wrote:

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/modem-manager/modem-manager.mk +0 -0
index 2cc45d266b..d62d13cf45 100644
@@ -34,6 +34,12 @@ else
 MODEM_MANAGER_CONF_OPTS += --without-mbim
 endif
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Actually verified locally on buildroot, it works as is. (no need for MODEM_MANAGER_DEPENDENCIES += libqrtr-glib).

Thus I've updated patchwork status to NEW.

Kind regards,
Petr

Quoted 1 line

Thomas

#4 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Quoted 9 lines · On Mon, 5 Apr 2021 15:44:13 +0200 Petr Vorel <[email protected]> wrote:
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc  

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Actually verified locally on buildroot, it works as is. (no need for MODEM_MANAGER_DEPENDENCIES += libqrtr-glib).

Thus I've updated patchwork status to NEW.

How can this work? Does it dlopen() the libqrtr-glib library at runtime? This deserves some explanation as we would normally imagine that to be a build-time dependency.

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Quoted 8 lines · On Mon, 5 Apr 2021, 16:36 Thomas Petazzoni, <[email protected]>…
Quoted 5 lines · On Mon, 5 Apr 2021 15:44:13 +0200 Petr Vorel <[email protected]> wrote:
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Quoted 9 lines
Quoted 4 lines

Actually verified locally on buildroot, it works as is. (no need for MODEM_MANAGER_DEPENDENCIES += libqrtr-glib).

Thus I've updated patchwork status to NEW.

How can this work? Does it dlopen() the libqrtr-glib library at runtime? This deserves some explanation as we would normally imagine that to be a build-time dependency.

It's probably too soon to add libqrtr-glib as a dependency of MM, the QRTR support is not even in MM git master yet (likely this week).

libqrtr-glib is right now only a dependency of libqmi, I think we should focus on that. Let's add the MM build-time dependency once there is a MM release with QRTR support.

Quoted 1 line

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210405/9651a2ae/attachment.html>

author
#6 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Hi Thomas, Aleksander,

Quoted 22 lines
Quoted 8 lines · On Mon, 5 Apr 2021, 16:36 Thomas Petazzoni, <[email protected]>…
Quoted 5 lines · On Mon, 5 Apr 2021 15:44:13 +0200 Petr Vorel <[email protected]> wrote:
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Quoted 8 lines
Quoted 4 lines

Actually verified locally on buildroot, it works as is. (no need for MODEM_MANAGER_DEPENDENCIES += libqrtr-glib).

Thus I've updated patchwork status to NEW.

How can this work? Does it dlopen() the libqrtr-glib library at runtime? This deserves some explanation as we would normally imagine that to be a build-time dependency.

Quoted 6 lines

It's probably too soon to add libqrtr-glib as a dependency of MM, the QRTR support is not even in MM git master yet (likely this week).

libqrtr-glib is right now only a dependency of libqmi, I think we should focus on that. Let's add the MM build-time dependency once there is a MM release with QRTR support.

Thomas, sorry for confusion. Aleksander, please correct me if I'm wrong. Looking at ModemManager sources (8fc60754 "qcom-soc: new plugin for Qualcomm SoCs") it currently does not depend on libqrtr-glib at all (not sure if you want use libqrtr-glib dependency later only for qcom-soc for for something else in ModemManager).

I based decision for --enable-plugin-qcom-soc on BR2_PACKAGE_LIBQRTR_GLIB, because if one wants Qualcomm IPC Router protocol helper library, he probably wants also qcom-soc plugin. And even nobody is now using Buildroot for Qualcomm phones, it can change in the future.

Kind regards,
Petr

#7 lore raw

PATCH 1/1 package/modem-manager: enable qcom-soc if libqrtr-glib enabled

Hey,

Quoted 23 lines
Quoted 16 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

package/modem-manager/modem-manager.mk else · line 38

Quoted 2 lines
package/modem-manager/modem-manager.mk +2 -0
+ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
+MODEM_MANAGER_CONF_OPTS += --enable-plugin-qcom-soc

Isn't that missing a MODEM_MANAGER_DEPENDENCIES += libqrtr-glib line ? Or is it really a runtime dependency ?

Quoted 8 lines
Quoted 4 lines

Actually verified locally on buildroot, it works as is. (no need for MODEM_MANAGER_DEPENDENCIES += libqrtr-glib).

Thus I've updated patchwork status to NEW.

How can this work? Does it dlopen() the libqrtr-glib library at runtime? This deserves some explanation as we would normally imagine that to be a build-time dependency.

Quoted 6 lines

It's probably too soon to add libqrtr-glib as a dependency of MM, the QRTR support is not even in MM git master yet (likely this week).

libqrtr-glib is right now only a dependency of libqmi, I think we should focus on that. Let's add the MM build-time dependency once there is a MM release with QRTR support.

Quoted 6 lines

Thomas, sorry for confusion. Aleksander, please correct me if I'm wrong. Looking at ModemManager sources (8fc60754 "qcom-soc: new plugin for Qualcomm SoCs") it currently does not depend on libqrtr-glib at all (not sure if you want use libqrtr-glib dependency later only for qcom-soc for for something else in ModemManager).

Yes, that's exactly what will happen. Once the QRTR support is integrated, it will only be used in the qcom-soc plugin. If you don't plan to build the qcom-soc plugin, you could build ModemManager configuring --without-qrtr and/or disabling the QRTR support also in libqmi.

Quoted 4 lines

I based decision for --enable-plugin-qcom-soc on BR2_PACKAGE_LIBQRTR_GLIB, because if one wants Qualcomm IPC Router protocol helper library, he probably wants also qcom-soc plugin. And even nobody is now using Buildroot for Qualcomm phones, it can change in the future.

It isn't strictly necessary though, you could use the qcom-soc plugin without QRTR, using RPMSG instead (as it is the case right now in MM 1.16). It really depends on the SoC you're targeting to use.

Signature · 2 lines
Aleksander
https://aleksander.es
#8 lore raw
In reply to Petr Vorel
Quoted 8 lines · On Sun, 4 Apr 2021 20:41:26 +0200 Petr Vorel <[email protected]> wrote:

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Peter, Alexander, based on your feedback, I have marked this patch as Rejected. If that is an incorrect assessment of the situation from me, do not hesitate to let me know.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
author
#9 lore raw

Hi Thomas,

Quoted 7 lines
Quoted 3 lines · On Sun, 4 Apr 2021 20:41:26 +0200 Petr Vorel <[email protected]> wrote:

This plugin makes sense only for Qualcomm MSM phone. Although there is currently no such device defconfig in Buildroot yet, it makes sense to prepare modem-manager for it.

Quoted 8 lines
Quoted 4 lines
---
 package/modem-manager/modem-manager.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Peter, Alexander, based on your feedback, I have marked this patch as Rejected. If that is an incorrect assessment of the situation from me, do not hesitate to let me know.

OK for me, I should have done it before myself.
I expect package/libqrtr-glib/ will be used in future for more than just this driver (now is this package IMHO useless, but that should change in the future).

Kind regards,
Petr

Quoted 3 lines

Thanks!

Thomas

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot