Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] librtlsdr: new package
Date: Mon, 21 Apr 2014 10:34:07 +0200	[thread overview]
Message-ID: <20140421103407.49ed9fc7@skate> (raw)
In-Reply-To: <1398036119-7335-1-git-send-email-jrspruitt@gmail.com>

Dear Jason Pruitt,

On Sun, 20 Apr 2014 16:21:58 -0700, Jason Pruitt wrote:
> From: Jason <jrspruitt@gmail.com>

We would need this...

> 
> librtlsdr is a library and software for using a Realtek RTL2832U based
> DVB-T dongle as a cheap SDR.
> 
> Signed-off-by: Jason <jrspruitt@gmail.com>

.. and this to use your complete name, Jason Pruitt.


> 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

I believe this option is not really needed. Just automatically enable
the installation of udev rules in the .mk file if BR2_PACKAGE_HAS_UDEV
is enabled.

> +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))

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      parent reply	other threads:[~2014-04-21  8:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20 23:21 [Buildroot] [PATCH 1/1] librtlsdr: new package Jason Pruitt
2014-04-21  7:20 ` Thomas De Schampheleire
2014-04-21  8:34 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140421103407.49ed9fc7@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox