mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v2 3/3] gpsd: make GPSD_SYSTEMD promptless and fix dependency
Date: Wed, 22 Jul 2020 11:53:43 +0200	[thread overview]
Message-ID: <20200722095343.16640-3-rhi@pengutronix.de> (raw)
In-Reply-To: <20200722095343.16640-1-rhi@pengutronix.de>

The systemd support code is only a few lines of code and can be compiled
unconditionally if systemd is available anyway. For that to work,
systemd must obviously have been installed first.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 * v1 -> v2: rework after feedback from mol
---
 rules/gpsd.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/rules/gpsd.in b/rules/gpsd.in
index 6d1db1495f3f..b69570af0f49 100644
--- a/rules/gpsd.in
+++ b/rules/gpsd.in
@@ -14,6 +14,7 @@ menuconfig GPSD
 	select DBUS_GLIB		if GPSD_DBUS
 	select PYTHON3			if GPSD_PYTHON
 	select PYSERIAL3		if GPSD_PYSERIAL
+	select SYSTEMD			if GPSD_SYSTEMD
 	prompt "gpsd                          "
 	help
 	  gpsd is a daemon that listens to a GPS or Loran receiver
@@ -31,6 +32,10 @@ config GPSD_NCURSES
 config GPSD_PYSERIAL
 	bool
 
+config GPSD_SYSTEMD
+	bool
+	default INITMETHOD_SYSTEMD
+
 comment "time service     ---"
 
 config GPSD_OSCILLATOR
@@ -63,11 +68,6 @@ config GPSD_USB
 
 comment "Other options    ---"
 
-config GPSD_SYSTEMD
-	bool
-	depends on SYSTEMD
-	prompt "systemd"
-
 config GPSD_RECONFIGURE
 	bool
 	prompt "enable reconfigure"
-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  parent reply	other threads:[~2020-07-22  9:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-20 11:51 [ptxdist] [PATCH 1/3] gpsd: merge GPSD_SYSTEMD and GPSD_SYSTEMD_UNIT options Roland Hieber
2020-07-20 11:51 ` [ptxdist] [PATCH 2/3] gpsd: make 'ublox' driver option more recognizable Roland Hieber
2020-07-20 11:51 ` [ptxdist] [PATCH 3/3] gpsd: fix usage of GPSD_DRIVER_NTRIP option Roland Hieber
2020-07-20 12:59 ` [ptxdist] [PATCH 1/3] gpsd: merge GPSD_SYSTEMD and GPSD_SYSTEMD_UNIT options Michael Olbrich
2020-07-20 21:14   ` ladis
2020-07-22  9:51     ` Roland Hieber
2020-07-22  9:53       ` [ptxdist] [PATCH v2 1/3] gpsd: make 'ublox' driver option more recognizable Roland Hieber
2020-07-22  9:53         ` [ptxdist] [PATCH v2 2/3] gpsd: fix usage of GPSD_DRIVER_NTRIP option Roland Hieber
2020-08-03  6:29           ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-22  9:53         ` Roland Hieber [this message]
2020-08-03  6:29           ` [ptxdist] [APPLIED] gpsd: make GPSD_SYSTEMD promptless and fix dependency Michael Olbrich
2020-08-03  6:29         ` [ptxdist] [APPLIED] gpsd: make 'ublox' driver option more recognizable Michael Olbrich
2020-08-02 14:43       ` [ptxdist] [PATCH 1/3] gpsd: merge GPSD_SYSTEMD and GPSD_SYSTEMD_UNIT options ladis

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=20200722095343.16640-3-rhi@pengutronix.de \
    --to=rhi@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