Skip to contentSkip to conversation

hackrf-host: new package

PATCH New Alexey Brodkin 1 participant 1 message Sep 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hackrf-host: new package

From: Jason Pruitt <[email protected]>

This patch adds hackrf/host tools for HackRF,
a low cost, open source Software Defined Radio platform.

Sources of host tools are available on GitHub here:
https://github.com/mossmann/hackrf/tree/master/host

---
 package/Config.in                    |  1 +
 package/hackrf-host/Config.in        | 18 ++++++++++++++++++
 package/hackrf-host/hackrf-host.hash |  2 ++
 package/hackrf-host/hackrf-host.mk   | 23 +++++++++++++++++++++++
 4 files changed, 44 insertions(+)
 create mode 100644 package/hackrf-host/Config.in
 create mode 100644 package/hackrf-host/hackrf-host.hash
 create mode 100644 package/hackrf-host/hackrf-host.mk
package/Config.in +1 -0
index 48d1381921..413be508bf 100644
@@ -1137,6 +1137,7 @@ menu "Hardware handling"
 	source "package/ccid/Config.in"
 	source "package/dtc/Config.in"
 	source "package/gnu-efi/Config.in"
+	source "package/hackrf-host/Config.in"
 	source "package/hidapi/Config.in"
 	source "package/lcdapi/Config.in"
 	source "package/let-me-create/Config.in"
package/hackrf-host/Config.in new file +18 -0
new file mode 100644
index 0000000000..0b103fcfdb
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_HACKRF_HOST
+	bool "hackrf-host"
+	select BR2_PACKAGE_LIBUSB
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE
+	help
+	  Library and tools for accessing HackRF SDR boards.
+
+	  https://github.com/mossmann/hackrf/tree/master/host
+
+comment "hackrf-host needs a toolchain w/ C++, threads, dynamic library and fftw3f"
+	depends on BR2_STATIC_LIBS
+	depends on !BR2_INSTALL_LIBSTDCPP
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_PACKAGE_FFTW_PRECISION_SINGLE
+
package/hackrf-host/hackrf-host.hash new file +2 -0
new file mode 100644
index 0000000000..7bbaff2a5d
@@ -0,0 +1,2 @@
+# Locally calculated (fetched from Github)
+sha512  d027a005fd2c179d9ebdf7a30ef6c50930c6db826c6ac9277da3373db2450990daf102501addc5d437cc304f67dc6a353d23da13ed1647d674e8aae13399ebcc  hackrf-host-v2017.02.1.tar.gz
package/hackrf-host/hackrf-host.mk new file +23 -0
new file mode 100644
index 0000000000..88f04f6a4b
@@ -0,0 +1,23 @@
+################################################################################
+#
+# HACKRF_HOST
+#
+################################################################################
+
+HACKRF_HOST_VERSION = v2017.02.1
+HACKRF_HOST_SITE = $(call github,mossmann,hackrf,$(HACKRF_HOST_VERSION))
+HACKRF_HOST_LICENSE = GPLv2 GPLv2+ BSD-3c
+HACKRF_HOST_LICENSE_FILES = COPYING
+HACKRF_HOST_DEPENDENCIES = fftw libusb
+HACKRF_HOST_SUBDIR = host
+HACKRF_HOST_INSTALL_STAGING = YES
+
+HACKRF_HOST_CONF_OPTS += -DBUILD_HACKRF_TOOLS=ON
+
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+HACKRF_HOST_CONF_OPTS += -DINSTALL_UDEV_RULES=ON
+else
+HACKRF_HOST_CONF_OPTS += -DINSTALL_UDEV_RULES=OFF
+endif
+
+$(eval $(cmake-package))
Signature · 1 line
2.11.0