From patchwork Wed May 29 23:18:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 1107440 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sedsystems.ca Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Dmpz5dnzz9s00 for ; Thu, 30 May 2019 09:18:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E514D85608; Wed, 29 May 2019 23:18:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8QqJeSflEJ1W; Wed, 29 May 2019 23:18:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D7D19853D3; Wed, 29 May 2019 23:18:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 487F51BF2C6 for ; Wed, 29 May 2019 23:18:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 43B3820337 for ; Wed, 29 May 2019 23:18:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fYZ20XLZ4g3e for ; Wed, 29 May 2019 23:18:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sed198n136.sedsystems.ca (sed198n136.SEDSystems.ca [198.169.180.136]) by silver.osuosl.org (Postfix) with ESMTPS id 6B4BB20336 for ; Wed, 29 May 2019 23:18:14 +0000 (UTC) Received: from barney.sedsystems.ca (barney [198.169.180.121]) by sed198n136.sedsystems.ca with ESMTP id x4TNIDAA022376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 May 2019 17:18:13 -0600 (CST) Received: from SED.RFC1918.192.168.sedsystems.ca (eng1n65.eng.sedsystems.ca [172.21.1.65]) by barney.sedsystems.ca (8.14.7/8.14.4) with ESMTP id x4TNIDhm007117 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 May 2019 17:18:13 -0600 From: Robert Hancock To: buildroot@buildroot.org Date: Wed, 29 May 2019 17:18:06 -0600 Message-Id: <1559171886-14446-1-git-send-email-hancock@sedsystems.ca> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Scanned-By: MIMEDefang 2.64 on 198.169.180.136 Subject: [Buildroot] [PATCH v2] package/chrony: add option for debug logging X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Hancock MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add a BR2_PACKAGE_CHRONY_DEBUG_LOGGING config option to allow enabling compiled-in support for debug logging in Chrony. Enable by default as this makes it much easier to debug Chrony issues and should only be disabled by those very sensitive to binary size. Signed-off-by: Robert Hancock --- package/chrony/Config.in | 10 ++++++++++ package/chrony/chrony.mk | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package/chrony/Config.in b/package/chrony/Config.in index 05d6fc1..7d401627 100644 --- a/package/chrony/Config.in +++ b/package/chrony/Config.in @@ -6,3 +6,13 @@ config BR2_PACKAGE_CHRONY accuracy of the system clock. http://chrony.tuxfamily.org/ + +config BR2_PACKAGE_CHRONY_DEBUG_LOGGING + bool "enable debug logging support" + default y + depends on BR2_PACKAGE_CHRONY + help + Enable support for debug logging output from Chrony when enabled at + runtime. If disabled, code for debug logging will not be compiled in. + Enabling this option increases the installed Chrony binary size by + approximately 15%. diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk index b5821b2..2d03fce 100644 --- a/package/chrony/chrony.mk +++ b/package/chrony/chrony.mk @@ -13,7 +13,8 @@ CHRONY_CONF_OPTS = \ --host-system=Linux \ --host-machine=$(BR2_ARCH) \ --prefix=/usr \ - --without-tomcrypt + --without-tomcrypt \ + $(if $(BR2_PACKAGE_CHRONY_DEBUG_LOGGING),--enable-debug,--disable-debug) ifeq ($(BR2_PACKAGE_LIBCAP),y) CHRONY_DEPENDENCIES += libcap