From patchwork Wed Oct 15 20:37:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 400083 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 7B04F14010F for ; Thu, 16 Oct 2014 07:38:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B1EA095051; Wed, 15 Oct 2014 20:38:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QtIjGvldbZMT; Wed, 15 Oct 2014 20:38:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E98B95024; Wed, 15 Oct 2014 20:38:01 +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 9F6091C2444 for ; Wed, 15 Oct 2014 20:37:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9934D91C4C for ; Wed, 15 Oct 2014 20:37:59 +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 DZG1bOpiT8Uu for ; Wed, 15 Oct 2014 20:37:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs01.rockwellcollins.com (ch3vs01.rockwellcollins.com [205.175.226.27]) by whitealder.osuosl.org (Postfix) with ESMTPS id B488491D8E for ; Wed, 15 Oct 2014 20:37:58 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO crulimr01.rockwellcollins.com) ([205.175.226.14]) by ch3vs01.rockwellcollins.com with ESMTP; 15 Oct 2014 15:37:57 -0500 X-Received: from largo.rockwellcollins.com (srcnat-vips-vlan26.rockwellcollins.com [131.198.26.18]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id 96C506020D; Wed, 15 Oct 2014 15:37:57 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Wed, 15 Oct 2014 15:37:54 -0500 Message-Id: <1413405475-5179-1-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH 1/2] pps-tools: new package 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 pps-tools package to add support to the ntpd for a pps source (requires timepps.h from pps-tools as part of ntpd build). Signed-off-by: Bryan Brinsko Signed-off-by: Matt Weber --- package/Config.in | 1 + package/pps-tools/Config.in | 6 ++++++ package/pps-tools/pps-tools.mk | 28 ++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 package/pps-tools/Config.in create mode 100644 package/pps-tools/pps-tools.mk diff --git a/package/Config.in b/package/Config.in index 93e148d..8c109a5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -351,6 +351,7 @@ endif source "package/parted/Config.in" source "package/pciutils/Config.in" source "package/picocom/Config.in" + source "package/pps-tools/Config.in" source "package/pifmrds/Config.in" source "package/read-edid/Config.in" source "package/rng-tools/Config.in" diff --git a/package/pps-tools/Config.in b/package/pps-tools/Config.in new file mode 100644 index 0000000..83308f4 --- /dev/null +++ b/package/pps-tools/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PPS_TOOLS + bool "pps-tools" + help + Pulse per second tools. Provides timepps.h and other PPS utilities. + + https://github.com/ago/pps-tools/ diff --git a/package/pps-tools/pps-tools.mk b/package/pps-tools/pps-tools.mk new file mode 100644 index 0000000..4ebfb1e --- /dev/null +++ b/package/pps-tools/pps-tools.mk @@ -0,0 +1,28 @@ +################################################################################ +# +# pps-tools +# +################################################################################ +PPS_TOOLS_VERSION = 0deb9c7e135e9380a6d09e9d2e938a146bb698c8 +PPS_TOOLS_SITE = https://github.com/ago/pps-tools.git +PPS_TOOLS_SITE_METHOD = git +PPS_TOOLS_INSTALL_STAGING = YES +PPS_TOOLS_LICENSE = GPLv2 +PPS_TOOLS_LICENSE_FILES = COPYING + +define PPS_TOOLS_BUILD_CMDS + $(MAKE) CC=$(TARGET_CC) -C $(@D) all +endef + +define PPS_TOOLS_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0644 $(@D)/timepps.h $(STAGING_DIR)/usr/include/timepps.h +endef + +define PPS_TOOLS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/ppsctl $(TARGET_DIR)/usr/bin/ppsctl + $(INSTALL) -D -m 0755 $(@D)/ppsfind $(TARGET_DIR)/usr/bin/ppsfind + $(INSTALL) -D -m 0755 $(@D)/ppstest $(TARGET_DIR)/usr/bin/ppstest + $(INSTALL) -D -m 0755 $(@D)/ppswatch $(TARGET_DIR)/usr/bin/ppswatch +endef + +$(eval $(generic-package))