From patchwork Sun Apr 20 23:21:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Pruitt X-Patchwork-Id: 340547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 1919514008D for ; Mon, 21 Apr 2014 09:22:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0C3DF993F5; Sun, 20 Apr 2014 23:22:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ADDPyGFNRx44; Sun, 20 Apr 2014 23:22:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1E1DE9594A; Sun, 20 Apr 2014 23:22:34 +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 5A7541BF859 for ; Sun, 20 Apr 2014 23:22:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 550BF8C6A9 for ; Sun, 20 Apr 2014 23:22:33 +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 ovx9HlJfXJkB for ; Sun, 20 Apr 2014 23:22:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id 388908C666 for ; Sun, 20 Apr 2014 23:22:32 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id v10so3099544pde.15 for ; Sun, 20 Apr 2014 16:22:32 -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=stH/pp3fZRTEELpq+hToAvqD5XlsYi5E9VdbQE9bVCY=; b=LAieTkKHC9CWx6/2OhodtsEHv1tY44fUTXMm1nnIx1Y1lGvKEmuKhLILH+69nMlIdT 9NU1fpvBKSL4OxHcNpCwdov+3MsG+maNTTnGxjrSJ+0gFaHPtTHl5Ja6zP8dHadmSB10 kIVJNxVngbVVN/7uDwGdFkiyYzAxxCZDNb+UMy8qh5hum7yTCxvDllP6nnHPoZS2SH9W IH20NyWJNrqn23itnE8Sye9hC7GHS/kBtSIMmvRRzLgiXol3UQu1t/myOo9YJSiUSLfE xgOtu1h4LiJcMN/PnNh2ymdkP1jtIbTFOSmkU1nwvMKg1beeTxDKfGVrqzwieEHDxUVV ufGw== X-Received: by 10.68.93.3 with SMTP id cq3mr55529pbb.145.1398036151933; Sun, 20 Apr 2014 16:22:31 -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 wd2sm177165496pab.0.2014.04.20.16.22.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Apr 2014 16:22:31 -0700 (PDT) From: Jason Pruitt To: buildroot@busybox.net Date: Sun, 20 Apr 2014 16:21:58 -0700 Message-Id: <1398036119-7335-1-git-send-email-jrspruitt@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH 1/1] 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 From: Jason librtlsdr is a library and software for using a Realtek RTL2832U based DVB-T dongle as a cheap SDR. Signed-off-by: Jason --- package/Config.in | 1 + package/librtlsdr/Config.in | 25 +++++++++++++++++++++++++ package/librtlsdr/librtlsdr.mk | 21 +++++++++++++++++++++ 3 files changed, 47 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 1361e9f..3690f7f 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..9df632d --- /dev/null +++ b/package/librtlsdr/Config.in @@ -0,0 +1,25 @@ +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 + +if BR2_PACKAGE_HAS_UDEV +config BR2_PACKAGE_LIBRTLSDR_UDEV_RULES + bool "Install udev rules" + default y +endif +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..595b3ba --- /dev/null +++ b/package/librtlsdr/librtlsdr.mk @@ -0,0 +1,21 @@ +########################################################################## +# +# librtlsdr +# +########################################################################## + +LIBRTLSDR_VERSION = v0.5.3 +LIBRTLSDR_SITE = $(call github,steve-m,librtlsdr,$(LIBRTLSDR_VERSION)) +LIBRTLSDR_LICENSE = GPLv2 +LIBRTLSDR_INSTALL_STAGING = YES +LIBRTLSDR_DEPENDENCIES = libusb + +ifeq ($(BR2_PACKAGE_LIBRTLSDR_UDEV_RULES),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))