From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] gpsd: Make more prepare options configurable
Date: Mon, 25 Oct 2021 15:09:10 +0200 [thread overview]
Message-ID: <20211025130910.7257-3-ada@thorsis.com> (raw)
In-Reply-To: <20211025130910.7257-1-ada@thorsis.com>
With squelch=no gpsd produces no logging output at all, not even when
using -D3 or higher as parameter.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
rules/gpsd.in | 13 +++++++++++++
rules/gpsd.make | 10 +++++++---
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/rules/gpsd.in b/rules/gpsd.in
index deebe6bbc..f14fcb7cc 100644
--- a/rules/gpsd.in
+++ b/rules/gpsd.in
@@ -68,6 +68,19 @@ config GPSD_USB
comment "Other options ---"
+config GPSD_DEBUG
+ bool
+ prompt "debug support"
+ help
+ Client debug support, debug information in build, install
+ gpsdebuginfo.
+
+config GPSD_LOGGING
+ bool
+ prompt "log/hexdump"
+ help
+ If unset: squelch gpsd_log/gpsd_hexdump to save cpu.
+
config GPSD_LIBGPSMM
bool
prompt "C++ class wrappers"
diff --git a/rules/gpsd.make b/rules/gpsd.make
index 75c497e63..c804cfebf 100644
--- a/rules/gpsd.make
+++ b/rules/gpsd.make
@@ -61,11 +61,12 @@ GPSD_CONF_OPT = \
aivdm=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_AIVDM) \
ashtech=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_ASHTECH) \
bluez=$(call ptx/yesno, PTXCONF_GPSD_BLUEZ) \
- clientdebug=no \
+ clientdebug=$(call ptx/yesno, PTXCONF_GPSD_DEBUG) \
control_socket=yes \
coveraging=no \
dbus_export=$(call ptx/yesno, PTXCONF_GPSD_DBUS) \
- debug=no \
+ debug=$(call ptx/yesno, PTXCONF_GPSD_DEBUG) \
+ debug_opt=false \
earthmate=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_EARTHMATE) \
evermore=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_EVERMORE) \
force_global=yes \
@@ -111,7 +112,7 @@ GPSD_CONF_OPT = \
sirf=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_SIRF) \
skytraq=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_SKYTRAQ) \
socket_export=$(call ptx/yesno, PTXCONF_GPSD_SOCKET) \
- squelch=yes \
+ squelch=$(call ptx/noyes, PTXCONF_GPSD_LOGGING) \
superstar2=$(call ptx/yesno, PTXCONF_GPSD_DRIVER_SUPERSTAR2) \
sysconfdir=/etc \
systemd=$(call ptx/yesno, PTXCONF_GPSD_SYSTEMD) \
@@ -184,6 +185,9 @@ endif
ifdef PTXCONF_GPSD_PYTHON
@$(call install_glob, gpsd, 0, 0, -, \
/usr/lib/python$(PYTHON3_MAJORMINOR), *.py)
+endif
+ifdef PTXCONF_GPSD_DEBUG
+ @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsdebuginfo)
endif
@$(call install_finish, gpsd)
--
2.30.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2021-10-25 13:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 13:09 [ptxdist] [PATCH 0/2] gpsd: Allow logging Alexander Dahl
2021-10-25 13:09 ` [ptxdist] [PATCH 1/2] Add macro 'noyes' as reverse of 'yesno' Alexander Dahl
2021-11-05 7:55 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-10-25 13:09 ` Alexander Dahl [this message]
2021-11-05 7:55 ` [ptxdist] [APPLIED] gpsd: Make more prepare options configurable 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=20211025130910.7257-3-ada@thorsis.com \
--to=ada@thorsis.com \
--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