From patchwork Thu Oct 16 16:44:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 400326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 26BF51400D6 for ; Fri, 17 Oct 2014 03:45:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6D6E225DF5; Thu, 16 Oct 2014 16:45:05 +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 CRUBW6wYLJIO; Thu, 16 Oct 2014 16:45:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9BB7D306ED; Thu, 16 Oct 2014 16:44:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8BC241C29A1 for ; Thu, 16 Oct 2014 16:44:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A82C8A461 for ; Thu, 16 Oct 2014 16:44:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VjhBrOQ1QRlz for ; Thu, 16 Oct 2014 16:44:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs02.rockwellcollins.com (ch3vs02.rockwellcollins.com [205.175.226.29]) by whitealder.osuosl.org (Postfix) with ESMTPS id C1FAF8B0DF for ; Thu, 16 Oct 2014 16:44:54 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO crulimr01.rockwellcollins.com) ([205.175.226.14]) by ch3vs02.rockwellcollins.com with ESMTP; 16 Oct 2014 11:44:54 -0500 X-Received: from largo.rockwellcollins.com (srcnat-vips-vlan26.rockwellcollins.com [131.198.26.18]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id 5785B6174B; Thu, 16 Oct 2014 11:44:53 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Thu, 16 Oct 2014 11:44:48 -0500 Message-Id: <1413477888-58099-2-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413477888-58099-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1413477888-58099-1-git-send-email-matthew.weber@rockwellcollins.com> Subject: [Buildroot] [PATCH v2 2/2] ntp: Adding pps support to ntpd X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Bryan Brinsko Added an option for the ntpd application to support pps inputs. Signed-off-by: Bryan Brinsko Signed-off-by: Matt Weber Acked-by: Thomas Petazzoni --- Changes v1 -> v2 - Updated Config.in option description (Suggested Thomas P) - Added conf opts to disable PPS when not selected (Suggested Thomas P) package/ntp/Config.in | 7 +++++++ package/ntp/ntp.mk | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package/ntp/Config.in b/package/ntp/Config.in index 858a9ad..c92ae93 100644 --- a/package/ntp/Config.in +++ b/package/ntp/Config.in @@ -34,6 +34,13 @@ config BR2_PACKAGE_NTP_NTPD system date and time in sync and optionally serving time and date information on the network via the NTP protocol. +config BR2_PACKAGE_NTP_NTPD_ATOM_PPS + bool "PPS support" + depends on BR2_PACKAGE_NTP_NTPD + select BR2_PACKAGE_PPS_TOOLS + help + Compile ntpd with the ability to use an ATOM PPS source. + config BR2_PACKAGE_NTP_NTPDATE bool "ntpdate" help diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk index 7c2cb8e..bb950a1 100644 --- a/package/ntp/ntp.mk +++ b/package/ntp/ntp.mk @@ -34,6 +34,13 @@ else NTP_CONF_OPTS += --without-ntpsnmpd endif +ifeq ($(BR2_PACKAGE_NTP_NTPD_ATOM_PPS),y) + NTP_CONF_OPTS += --enable-ATOM + NTP_DEPENDENCIES += pps-tools +else + NTP_CONF_OPTS += --disable-ATOM +endif + define NTP_PATCH_FIXUPS $(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c $(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c