mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-01 01:13:29 +08:00
af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# librtlsdr
|
|
#
|
|
################################################################################
|
|
|
|
LIBRTLSDR_VERSION = v0.5.3
|
|
LIBRTLSDR_SITE = $(call github,steve-m,librtlsdr,$(LIBRTLSDR_VERSION))
|
|
LIBRTLSDR_LICENSE = GPL-2.0+
|
|
LIBRTLSDR_LICENSE_FILES = COPYING
|
|
LIBRTLSDR_INSTALL_STAGING = YES
|
|
LIBRTLSDR_DEPENDENCIES = libusb
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBRTLSDR_CONF_OPTS += -DINSTALL_UDEV_RULES=ON
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRTLSDR_DETACH_DRIVER),y)
|
|
LIBRTLSDR_CONF_OPTS += -DDETACH_KERNEL_DRIVER=1
|
|
endif
|
|
|
|
# In case of static-lib-only builds, CMake's FindThreads.cmake code tries to
|
|
# get the right flags, checking first for -lpthreads, then -lpthread, and lastly
|
|
# for -pthread.
|
|
# The 2 first link checks fail because of undefined symbols: __libc_setup_tls.
|
|
# In the later check, CMake successfully compiles and links the test program,
|
|
# but it also tries to run it, which is wrong when cross-compiling.
|
|
#
|
|
# The following CMake variable only disables the TRY_RUN call in the -pthread
|
|
# test.
|
|
LIBRTLSDR_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
|
|
|
$(eval $(cmake-package))
|