From patchwork Tue Oct 27 13:01:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volkov Viacheslav X-Patchwork-Id: 536615 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]) by ozlabs.org (Postfix) with ESMTP id DDE31141369 for ; Wed, 28 Oct 2015 00:04:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=inbox.ru header.i=@inbox.ru header.b=Kg4g5HQg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9603087FBA; Tue, 27 Oct 2015 13:04:03 +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 hnZreqrIzZ3a; Tue, 27 Oct 2015 13:04:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D8EA0879BD; Tue, 27 Oct 2015 13:04:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id C584C1C44B3 for ; Tue, 27 Oct 2015 13:03:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C08968AE56 for ; Tue, 27 Oct 2015 13:03:59 +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 lyAM3ePPQLtM for ; Tue, 27 Oct 2015 13:03:58 +0000 (UTC) X-Greylist: delayed 03:36:40 by SQLgrey-1.7.6 Received: from smtp19.mail.ru (smtp19.mail.ru [94.100.176.156]) by hemlock.osuosl.org (Postfix) with ESMTPS id E45D48AE52 for ; Tue, 27 Oct 2015 13:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=kW4IeIXO1PUBPHf1CjwwEagIKNnC3uv9Opfvwj55sqU=; b=Kg4g5HQgh4fqkCy2Sge8Fl+5RsXUwjOQHT17w/9siwUSF2Vz2EkL/4hJxOCIh+oVgoKNqEZaXNOqd9ZViykodtV9uzIQdalAwXUE0/9qSg4l8Rf/ZiN4fU00Lc9tybMfZARiwIqT8B5HSSKJqApmgBwAlE0P8Ak8tOrTvvxbLnY=; Received: from ip-91-219-66-11.spb.avantel.ru ([91.219.66.11]:60076 helo=br2.rost.lan) by smtp19.mail.ru with esmtpa (envelope-from ) id 1Zr3ur-00047V-Iq; Tue, 27 Oct 2015 16:03:53 +0300 From: Viacheslav Volkov To: buildroot@buildroot.org Date: Tue, 27 Oct 2015 16:01:14 +0300 Message-Id: <1445950874-9848-1-git-send-email-sv99@inbox.ru> X-Mailer: git-send-email 1.9.1 X-Mras: Ok Cc: Viacheslav Volkov Subject: [Buildroot] [PATCH v2] rfkill: 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" Add rfkill package. Signed-off-by: Viacheslav Volkov --- package/Config.in | 1 + package/rfkill/Config.in | 7 +++++++ package/rfkill/rfkill.hash | 2 ++ package/rfkill/rfkill.mk | 20 ++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 package/rfkill/Config.in create mode 100644 package/rfkill/rfkill.hash create mode 100644 package/rfkill/rfkill.mk diff --git a/package/Config.in b/package/Config.in index 10ff94e..9933514 100644 --- a/package/Config.in +++ b/package/Config.in @@ -403,6 +403,7 @@ endif source "package/pps-tools/Config.in" source "package/pulseview/Config.in" source "package/read-edid/Config.in" + source "package/rfkill/Config.in" source "package/rng-tools/Config.in" source "package/rpi-userland/Config.in" source "package/rtl8188eu/Config.in" diff --git a/package/rfkill/Config.in b/package/rfkill/Config.in new file mode 100644 index 0000000..b7a676e --- /dev/null +++ b/package/rfkill/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_RFKILL + bool "rfkill" + help + rfkill is a small userspace tool to query the state of the rfkill + switches. + + https://wireless.wiki.kernel.org/en/users/documentation/rfkill diff --git a/package/rfkill/rfkill.hash b/package/rfkill/rfkill.hash new file mode 100644 index 0000000..21be0a2 --- /dev/null +++ b/package/rfkill/rfkill.hash @@ -0,0 +1,2 @@ +# From: https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc +sha256 e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a rfkill-0.5.tar.xz diff --git a/package/rfkill/rfkill.mk b/package/rfkill/rfkill.mk new file mode 100644 index 0000000..b377c03 --- /dev/null +++ b/package/rfkill/rfkill.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# rfkill +# +################################################################################ + +RFKILL_VERSION = 0.5 +RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.xz +RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill + +define RFKILL_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ + VERSION_SUFFIX="-br" +endef + +define RFKILL_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill +endef + +$(eval $(generic-package))