Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] rfkill: new package
@ 2015-10-27 11:05 Viacheslav Volkov
  2015-10-27 12:09 ` Vicente Olivert Riera
  0 siblings, 1 reply; 2+ messages in thread
From: Viacheslav Volkov @ 2015-10-27 11:05 UTC (permalink / raw)
  To: buildroot

Add rfkill utility.

Signed-off-by: Viacheslav Volkov <sv99@inbox.ru>
---
 package/Config.in          |  1 +
 package/rfkill/Config.in   |  6 ++++++
 package/rfkill/rfkill.hash |  2 ++
 package/rfkill/rfkill.mk   | 26 ++++++++++++++++++++++++++
 4 files changed, 35 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..e627a99
--- /dev/null
+++ b/package/rfkill/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_RFKILL
+	bool "rfkill"
+	help
+	  rfkill
+
+	  https://www.kernel.org/pub/software/network/rfkill/
diff --git a/package/rfkill/rfkill.hash b/package/rfkill/rfkill.hash
new file mode 100644
index 0000000..34b35d7
--- /dev/null
+++ b/package/rfkill/rfkill.hash
@@ -0,0 +1,2 @@
+# from https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc:
+sha256	83532027f919f5a3cc185c821a69f16d0efcf7c91aaf6bdc2a0c83fb6bacf2b0  rfkill-0.5.tar.gz
diff --git a/package/rfkill/rfkill.mk b/package/rfkill/rfkill.mk
new file mode 100644
index 0000000..7e8cdf5
--- /dev/null
+++ b/package/rfkill/rfkill.mk
@@ -0,0 +1,26 @@
+#############################################################
+#
+# rfkill
+#
+#############################################################
+
+RFKILL_VERSION = 0.5
+# RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.gz
+RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill
+
+define RFKILL_BUILD_CMDS
+	$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
+		V=1 VERSION_SUFFIX="-br"
+endef
+
+define RFKILL_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/bin
+	cp -a $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill
+endef
+
+define RFKILL_CLEAN_CMDS
+	rm -f $(TARGET_DIR)/usr/bin/rfkill
+endef
+
+
+$(eval $(generic-package))
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-27 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 11:05 [Buildroot] [PATCH 1/1] rfkill: new package Viacheslav Volkov
2015-10-27 12:09 ` Vicente Olivert Riera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox