From patchwork Mon May 30 06:36:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Van Dijck X-Patchwork-Id: 627619 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rJ6fy2ps3z9t3V for ; Mon, 30 May 2016 16:49:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BB7E38BEDA; Mon, 30 May 2016 06:49:28 +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 xyXLI+p1jhuH; Mon, 30 May 2016 06:49:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 284AD8B568; Mon, 30 May 2016 06:49:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E09FD1C1536 for ; Mon, 30 May 2016 06:49:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DD61B8B568 for ; Mon, 30 May 2016 06:49:25 +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 j9F7y-QrQ1Ov for ; Mon, 30 May 2016 06:49:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay-b01.edpnet.be (relay-b01.edpnet.be [212.71.1.221]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2CAAC8B52B for ; Mon, 30 May 2016 06:49:24 +0000 (UTC) X-ASG-Debug-ID: 1464590167-0a7ff5043e22777f0001-rUBnyj Received: from zotac.vandijck-laurijssen.be (77.109.117.252.adsl.dyn.edpnet.net [77.109.117.252]) by relay-b01.edpnet.be with ESMTP id yFpMn9hMMccAK0xH for ; Mon, 30 May 2016 08:36:07 +0200 (CEST) X-Barracuda-Envelope-From: dev.kurt@vandijck-laurijssen.be X-Barracuda-Effective-Source-IP: 77.109.117.252.adsl.dyn.edpnet.net[77.109.117.252] X-Barracuda-Apparent-Source-IP: 77.109.117.252 Received: from airbook.vandijck-laurijssen.be (kurt [192.168.0.70]) by zotac.vandijck-laurijssen.be (Postfix) with ESMTPSA id A7D7C127ACA for ; Mon, 30 May 2016 08:36:07 +0200 (CEST) Date: Mon, 30 May 2016 08:36:06 +0200 From: Kurt Van Dijck To: buildroot@buildroot.org Message-ID: <20160530063606.GB31737@airbook.vandijck-laurijssen.be> X-ASG-Orig-Subj: [PATCH] inputevent: add package MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Barracuda-Connect: 77.109.117.252.adsl.dyn.edpnet.net[77.109.117.252] X-Barracuda-Start-Time: 1464590167 X-Barracuda-URL: https://212.71.1.221:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 2828 X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5063 1.0000 0.7500 X-Barracuda-Spam-Score: 0.75 X-Barracuda-Spam-Status: No, SCORE=0.75 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.30021 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [Buildroot] [PATCH] inputevent: add 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Inputevent is an input-device to ascii tranlator. Its output is of the format 'TIME CODE VALUE' and it's easy to pipe it into a shell script. Signed-off-by: Kurt Van Dijck --- package/Config.in | 1 + package/inputevent/Config.in | 6 ++++++ package/inputevent/inputevent.mk | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 package/inputevent/Config.in create mode 100644 package/inputevent/inputevent.mk diff --git a/package/Config.in b/package/Config.in index 529ad33..112e516 100644 --- a/package/Config.in +++ b/package/Config.in @@ -383,6 +383,7 @@ endif source "package/i2c-tools/Config.in" source "package/input-event-daemon/Config.in" source "package/input-tools/Config.in" + source "package/inputevent/Config.in" source "package/intel-microcode/Config.in" source "package/iostat/Config.in" source "package/ipmitool/Config.in" diff --git a/package/inputevent/Config.in b/package/inputevent/Config.in new file mode 100644 index 0000000..44422a3 --- /dev/null +++ b/package/inputevent/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_INPUTEVENT + bool "inputevent" + help + inputevent is a simple program that traces input events. + When piped to a another program or script, you get similar + functionality as input-event-daemon. diff --git a/package/inputevent/inputevent.mk b/package/inputevent/inputevent.mk new file mode 100644 index 0000000..14a8d31 --- /dev/null +++ b/package/inputevent/inputevent.mk @@ -0,0 +1,36 @@ +################################################################################ +# +# inputevent +# +################################################################################ + +INPUTEVENT_VERSION = r8 +INPUTEVENT_SITE = git://github.com/kurt-vd/inputevent.git +INPUTEVENT_LICENSE = GPLv3 +INPUTEVENT_LICENSE_FILES = LICENSE + +define INPUTEVENT_CONFIGURE_CMDS + echo "PREFIX=/" > $(@D)/config.mk + echo "CFLAGS=$(TARGET_CFLAGS)" >> $(@D)/config.mk + echo "CPPFLAGS=-D_GNU_SOURCE $(TARGET_CPPFLAGS)" >> $(@D)/config.mk + echo "CXXFLAGS=$(TARGET_CXXFLAGS)" >> $(@D)/config.mk + echo "LDFLAGS=$(TARGET_LDFLAGS)" >> $(@D)/config.mk + echo "LDLIBS+=$(TARGET_LDLIBS)" >> $(@D)/config.mk + echo "CC=$(TARGET_CC)" >> $(@D)/config.mk + echo "CXX=$(TARGET_CXX)" >> $(@D)/config.mk + echo "LD=$(TARGET_LD)" >> $(@D)/config.mk + echo "AS=$(TARGET_AS)" >> $(@D)/config.mk + + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean +endef + +define INPUTEVENT_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define INPUTEVENT_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" +endef + +$(eval $(generic-package)) +#$(eval $(configmk-package))