From patchwork Fri Sep 15 12:39:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 814259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtw2x0X5Jz9s7c for ; Fri, 15 Sep 2017 22:39:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F10E78AF62; Fri, 15 Sep 2017 12:39:49 +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 UDzOCdkdb68T; Fri, 15 Sep 2017 12:39:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 764858B021; Fri, 15 Sep 2017 12:39:48 +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 02F6F1C3F99 for ; Fri, 15 Sep 2017 12:39:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EF16189F83 for ; Fri, 15 Sep 2017 12:39:46 +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 AczE0T6u2FEK for ; Fri, 15 Sep 2017 12:39:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id C937989F82 for ; Fri, 15 Sep 2017 12:39:45 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 6B6E010C0694; Fri, 15 Sep 2017 05:39:45 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 58257E74; Fri, 15 Sep 2017 05:39:45 -0700 (PDT) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 06716E3B; Fri, 15 Sep 2017 05:39:43 -0700 (PDT) From: Alexey Brodkin To: buildroot@busybox.net Date: Fri, 15 Sep 2017 15:39:40 +0300 Message-Id: <20170915123940.8692-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.11.0 Cc: Thomas Petazzoni , Jason Pruitt , Alexey Brodkin Subject: [Buildroot] [PATCH] hackrf-host: 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" From: Jason Pruitt 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 Signed-off-by: Jason Pruitt Signed-off-by: Alexey Brodkin --- 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 diff --git a/package/Config.in b/package/Config.in index 48d1381921..413be508bf 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/hackrf-host/Config.in b/package/hackrf-host/Config.in new file mode 100644 index 0000000000..0b103fcfdb --- /dev/null +++ b/package/hackrf-host/Config.in @@ -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 + diff --git a/package/hackrf-host/hackrf-host.hash b/package/hackrf-host/hackrf-host.hash new file mode 100644 index 0000000000..7bbaff2a5d --- /dev/null +++ b/package/hackrf-host/hackrf-host.hash @@ -0,0 +1,2 @@ +# Locally calculated (fetched from Github) +sha512 d027a005fd2c179d9ebdf7a30ef6c50930c6db826c6ac9277da3373db2450990daf102501addc5d437cc304f67dc6a353d23da13ed1647d674e8aae13399ebcc hackrf-host-v2017.02.1.tar.gz diff --git a/package/hackrf-host/hackrf-host.mk b/package/hackrf-host/hackrf-host.mk new file mode 100644 index 0000000000..88f04f6a4b --- /dev/null +++ b/package/hackrf-host/hackrf-host.mk @@ -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))