@@ -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"
new file mode 100644
@@ -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
+
new file mode 100644
@@ -0,0 +1,2 @@
+# Locally calculated (fetched from Github)
+sha512 d027a005fd2c179d9ebdf7a30ef6c50930c6db826c6ac9277da3373db2450990daf102501addc5d437cc304f67dc6a353d23da13ed1647d674e8aae13399ebcc hackrf-host-v2017.02.1.tar.gz
new file mode 100644
@@ -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))