Commit ec13c098 authored by Jason Pruitt's avatar Jason Pruitt Committed by Peter Korsgaard
Browse files

librtlsdr: new package



librtlsdr is a library and software for using a Realtek RTL2832U based
DVB-T dongle as a cheap SDR.

[Thomas: change license to GPLv2+, reword help text for the detach
driver option.]

Signed-off-by: default avatarJason Pruitt <jrspruitt@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 953ebbef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -649,6 +649,7 @@ menu "Hardware handling"
	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"
+24 −0
Original line number Diff line number Diff line
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 kernel driver"
	default y
	help
	  Enable this option if you would like librtlsdr to
	  automatically detach any kernel driver associated to the
	  RTL2832U USB device on startup if one is loaded.

endif

comment "librtlsdr needs a toolchain w/ threads"
	depends on !BR2_TOOLCHAIN_HAS_THREADS
+22 −0
Original line number Diff line number Diff line
##########################################################################
#
# 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))