mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Enrico Jorns <ejo@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Enrico Jorns <ejo@pengutronix.de>
Subject: [ptxdist] [PATCH 4/6] rauc: allow to optionally disable SERVICE mode
Date: Fri, 11 Jan 2019 09:58:23 +0100	[thread overview]
Message-ID: <20190111085825.29335-5-ejo@pengutronix.de> (raw)
In-Reply-To: <20190111085825.29335-1-ejo@pengutronix.de>

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

diff --git a/rules/rauc.in b/rules/rauc.in
index 96afc9092..653939a8b 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -15,6 +15,16 @@ menuconfig RAUC
 
 if RAUC
 
+config RAUC_SERVICE
+	bool
+	prompt "Enable service (D-Bus) support"
+	depends on DBUS
+	default y
+	help
+	  Compiles RAUC to act as a separate daemon and comand line interface
+	  that communicate with each other via D-Bus interface.
+	  Only deactivate this if you have a system that does not provide D-Bus!
+
 config RAUC_NETWORK
 	bool
 	prompt "Enable network support"
diff --git a/rules/rauc.make b/rules/rauc.make
index 116fd512b..772cc0082 100644
--- a/rules/rauc.make
+++ b/rules/rauc.make
@@ -41,7 +41,7 @@ RAUC_CONF_OPT	:= \
 	$(GLOBAL_LARGE_FILE_OPTION) \
 	--disable-code-coverage \
 	--disable-valgrind \
-	--enable-service \
+	--$(call ptx/endis,PTXCONF_RAUC_SERVICE)-service \
 	--$(call ptx/endis,PTXCONF_RAUC_NETWORK)-network \
 	--$(call ptx/endis,PTXCONF_RAUC_JSON)-json \
 	--with-systemdunitdir=/usr/lib/systemd/system \
@@ -71,10 +71,12 @@ ifdef PTXCONF_RAUC_CONFIGURATION
 	@$(call install_alternative, rauc, 0, 0, 0644, /etc/rauc/ca.cert.pem)
 endif
 
+ifdef PTXCONF_RAUC_SERVICE
 	@$(call install_copy, rauc, 0, 0, 0644, -, \
 		/usr/share/dbus-1/system-services/de.pengutronix.rauc.service)
 	@$(call install_copy, rauc, 0, 0, 0644, -, \
 		/usr/share/dbus-1/system.d/de.pengutronix.rauc.conf)
+endif
 
 ifdef PTXCONF_INITMETHOD_SYSTEMD
 	@$(call install_alternative, rauc, 0, 0, 0644, \
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2019-01-11  8:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-11  8:58 [ptxdist] [PATCH 0/6] rauc: some recipe polishing and a version bump to 1.0 Enrico Jorns
2019-01-11  8:58 ` [ptxdist] [PATCH 1/6] rauc: needs to depend on host-glib package Enrico Jorns
2019-01-11  8:58 ` [ptxdist] [PATCH 2/6] rauc: align if statements in selects statements Enrico Jorns
2019-01-11  8:58 ` [ptxdist] [PATCH 3/6] rauc: provide and improve help texts on config options Enrico Jorns
2019-01-11  8:58 ` Enrico Jorns [this message]
2019-01-11  8:58 ` [ptxdist] [PATCH 5/6] rauc: version bump 0.4 -> 1.0 Enrico Jorns
2019-01-11  8:58 ` [ptxdist] [PATCH 6/6] rauc: force busybox tar to have long options enabled Enrico Jorns

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=20190111085825.29335-5-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