From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 25 Oct 2021 15:09:49 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mezjZ-0007yA-LV for lore@lore.pengutronix.de; Mon, 25 Oct 2021 15:09:49 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mezjZ-0008Ft-9B; Mon, 25 Oct 2021 15:09:49 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mezj0-0008Fj-V3 for ptxdist@pengutronix.de; Mon, 25 Oct 2021 15:09:16 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id BFEAB1A21 for ; Mon, 25 Oct 2021 15:09:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iqNbHX8BqgW7 for ; Mon, 25 Oct 2021 15:09:13 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 9CF8F1C60; Mon, 25 Oct 2021 15:09:13 +0200 (CEST) Received: from adahl by ada.ifak-system.com with local (Exim 4.92) (envelope-from ) id 1meziw-0001ty-Pw; Mon, 25 Oct 2021 15:09:10 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Date: Mon, 25 Oct 2021 15:09:10 +0200 Message-Id: <20211025130910.7257-3-ada@thorsis.com> In-Reply-To: <20211025130910.7257-1-ada@thorsis.com> References: <20211025130910.7257-1-ada@thorsis.com> X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 2/2] gpsd: Make more prepare options configurable X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false With squelch=no gpsd produces no logging output at all, not even when using -D3 or higher as parameter. Signed-off-by: Alexander Dahl --- 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