From patchwork Tue Apr 22 15:49:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Pruitt X-Patchwork-Id: 341396 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 12B5D140120 for ; Wed, 23 Apr 2014 01:50:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 02E3587C33; Tue, 22 Apr 2014 15:50:50 +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 IhM9xys9ftZQ; Tue, 22 Apr 2014 15:50:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CADF287C54; Tue, 22 Apr 2014 15:50:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8B4941C2444 for ; Tue, 22 Apr 2014 15:50:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 855EB8C02C for ; Tue, 22 Apr 2014 15:50:44 +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 nQvxqnE4wn8h for ; Tue, 22 Apr 2014 15:50:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id 331E18C026 for ; Tue, 22 Apr 2014 15:50:39 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id x10so4964566pdj.6 for ; Tue, 22 Apr 2014 08:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=JsGtHOGqKw8X9wM7fKtuvu5mU5uNZuwrXPNQ9hw9c1I=; b=rGr8ozKr+7pe4oERlFM9y6ADoFFdELi963d6G2vlTEp9Z50Enw+6E6mSfQrkW7JWRc wSQ8KE+V53CcxkkCgHccQmwws/xhEIWJUlQfncA6KCgqnOi1N0S5aMRV1LQ83rWoOqSZ SPlrcTarIi9DR0Rniu+5ezWPewGZsSFVv2LKeqIilsXTG6J3Px7+iOqd5dtvdcp7WYyi hamNQ3o4wqbx/AAw/wS/k6A97wfgS10NjWYlrX03EGRwD6nROKe1WvebMNX3vqi3M1gH qGUX39rkVAjdshRqKC/PJkZOkSJq8rHsHQiUaOADMXqwT9QnJwhX9QMwAT0/LLOLwnTt f0UA== X-Received: by 10.68.194.202 with SMTP id hy10mr45297019pbc.94.1398181838610; Tue, 22 Apr 2014 08:50:38 -0700 (PDT) Received: from server.jasonpruitt.com (c-67-185-27-10.hsd1.wa.comcast.net. [67.185.27.10]) by mx.google.com with ESMTPSA id om6sm85711902pbc.43.2014.04.22.08.50.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Apr 2014 08:50:37 -0700 (PDT) From: Jason Pruitt To: buildroot@buildroot.org Date: Tue, 22 Apr 2014 08:49:55 -0700 Message-Id: <1398181795-11075-1-git-send-email-jrspruitt@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH v2] librtlsdr: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net librtlsdr is a library and software for using a Realtek RTL2832U based DVB-T dongle as a cheap SDR. Signed-off-by: Jason Pruitt --- Changes v1 -> v2: - Added help to option (suggested by Thomas De Schampheleire) - Added _LICENSE_FILE (suggested by Thomas De Schampheleire) - Auto select udev rules (suggested by Thomas Petazzoni) package/Config.in | 1 + package/librtlsdr/Config.in | 22 ++++++++++++++++++++++ package/librtlsdr/librtlsdr.mk | 22 ++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 package/librtlsdr/Config.in create mode 100644 package/librtlsdr/librtlsdr.mk diff --git a/package/Config.in b/package/Config.in index 07fd166..ad3956d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -628,6 +628,7 @@ source "package/libmbim/Config.in" source "package/libnfc/Config.in" source "package/libqmi/Config.in" source "package/libraw1394/Config.in" +source "package/librtlsdr/Config.in" source "package/libserial/Config.in" source "package/libsoc/Config.in" source "package/libusb/Config.in" diff --git a/package/librtlsdr/Config.in b/package/librtlsdr/Config.in new file mode 100644 index 0000000..efe2b9e --- /dev/null +++ b/package/librtlsdr/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_LIBRTLSDR + bool "librtlsdr" + select BR2_PACKAGE_LIBUSB + depends on BR2_TOOLCHAIN_HAS_THREADS + help + Library and command line programs for accessing + RTL2832U SDR dongles. + + http://sdr.osmocom.org/trac/wiki/rtl-sdr/ + +if BR2_PACKAGE_LIBRTLSDR + +config BR2_PACKAGE_LIBRTLSDR_DETACH_DRIVER + bool "Detach driver if loaded" + default y + help + Detach associated kernel driver on startup if + if one is loaded. +endif + +comment "librtlsdr needs a toolchain w/ threads" +depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/librtlsdr/librtlsdr.mk b/package/librtlsdr/librtlsdr.mk new file mode 100644 index 0000000..0b88a34 --- /dev/null +++ b/package/librtlsdr/librtlsdr.mk @@ -0,0 +1,22 @@ +########################################################################## +# +# librtlsdr +# +########################################################################## + +LIBRTLSDR_VERSION = v0.5.3 +LIBRTLSDR_SITE = $(call github,steve-m,librtlsdr,$(LIBRTLSDR_VERSION)) +LIBRTLSDR_LICENSE = GPLv2 +LIBRTLSDR_LICENSE_FILES = COPYING +LIBRTLSDR_INSTALL_STAGING = YES +LIBRTLSDR_DEPENDENCIES = libusb + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +LIBRTLSDR_CONF_OPT += -DINSTALL_UDEV_RULES=ON +endif + +ifeq ($(BR2_PACKAGE_LIBRTLSDR_DETACH_DRIVER),y) +LIBRTLSDR_CONF_OPT += -DDETACH_KERNEL_DRIVER=1 +endif + +$(eval $(cmake-package))