mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Enrico Jorns <ejo@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: ejo@pengutronix.de
Subject: [ptxdist] [PATCH] networkmanager: add option for introspection support
Date: Fri, 17 Jun 2022 14:19:15 +0200	[thread overview]
Message-ID: <20220617121915.3660205-1-ejo@pengutronix.de> (raw)

This allows to enable networkmanager gobject introspection support (or
automatically enables it if introspection support is already enabled in
BSP).

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
---
 rules/networkmanager.in   | 6 ++++++
 rules/networkmanager.make | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index dae60a0c8..5d9be26f0 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -3,6 +3,7 @@
 menuconfig NETWORKMANAGER
 	tristate
 	# intltool is unconditionally requested by configure
+	select GOBJECT_INTROSPECTION            if NETWORKMANAGER_INTROSPECTION
 	select HOST_GLIB
 	select HOST_INTLTOOL
 	select HOST_LIBXSLT
@@ -110,6 +111,11 @@ config NETWORKMANAGER_MORE_LOGGING
 	help
 	  Allows debug log level in NetworkManager.conf
 
+config NETWORKMANAGER_INTROSPECTION
+       bool
+       prompt "introspection support"
+       default GOBJECT_INTROSPECTION_HELPER
+
 endif
 
 menu "networkmanager plugins        "
diff --git a/rules/networkmanager.make b/rules/networkmanager.make
index 022ed7178..9b47fadad 100644
--- a/rules/networkmanager.make
+++ b/rules/networkmanager.make
@@ -54,7 +54,7 @@ NETWORKMANAGER_CONF_OPT = \
 	-Dhostname_persist=default \
 	-Difcfg_rh=false \
 	-Difupdown=true \
-	-Dintrospection=false \
+	-Dintrospection=$(call ptx/truefalse,PTXCONF_NETWORKMANAGER_INTROSPECTION) \
 	-Diptables=/usr/sbin/iptables \
 	-Diwd=false \
 	-Dkernel_firmware_dir=/lib/firmware \
@@ -214,6 +214,10 @@ ifdef PTXCONF_NETWORKMANAGER_EXAMPLES
 	@$(call install_glob, networkmanager, 0, 0, -, /usr/bin, */nm-*-*)
 endif
 
+ifdef PTXCONF_NETWORKMANAGER_INTROSPECTION
+	@$(call install_tree, networkmanager, 0, 0, -, /usr/lib/girepository-1.0)
+endif
+
 	@$(call install_finish, networkmanager)
 
 	@$(call touch)
-- 
2.30.2




             reply	other threads:[~2022-06-17 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17 12:19 Enrico Jorns [this message]
2022-06-20  6:20 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220617121915.3660205-1-ejo@pengutronix.de \
    --to=ejo@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox