Initial Commit
- initial default booting image
This commit is contained in:
52
package/gr-osmosdr/Config.in
Normal file
52
package/gr-osmosdr/Config.in
Normal file
@@ -0,0 +1,52 @@
|
||||
config BR2_PACKAGE_GR_OSMOSDR
|
||||
bool "gr-osmosdr"
|
||||
depends on BR2_PACKAGE_GNURADIO
|
||||
select BR2_PACKAGE_GNURADIO_BLOCKS
|
||||
select BR2_PACKAGE_GNURADIO_FFT
|
||||
select BR2_PACKAGE_GNURADIO_FILTER
|
||||
help
|
||||
GNU Radio block for interfacing with various radio hardware
|
||||
|
||||
http://osmocom.org/projects/osmosdr
|
||||
|
||||
if BR2_PACKAGE_GR_OSMOSDR
|
||||
|
||||
config BR2_PACKAGE_GR_OSMOSDR_IQFILE
|
||||
bool "IQ File Source support"
|
||||
help
|
||||
Enable IQ File Source support
|
||||
|
||||
config BR2_PACKAGE_GR_OSMOSDR_RTLSDR
|
||||
bool "Osmocom RTLSDR support"
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # librtlsdr -> libusb
|
||||
select BR2_PACKAGE_LIBRTLSDR
|
||||
help
|
||||
Enable Osmocom RTLSDR support
|
||||
|
||||
comment "Osmocom RTLSDR support needs a toolchain w/ gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP
|
||||
bool "RTLSDR TCP Client support"
|
||||
help
|
||||
Enable RTLSDR TCP client support
|
||||
|
||||
config BR2_PACKAGE_GR_OSMOSDR_RFSPACE
|
||||
bool "RFSPACE Receivers support"
|
||||
help
|
||||
Enable RFSPACE Receivers support
|
||||
|
||||
config BR2_PACKAGE_GR_OSMOSDR_HACKRF
|
||||
bool "Osmocom HACKRF support"
|
||||
depends on !BR2_STATIC_LIBS # hackrf
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # hackrf
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hackrf
|
||||
select BR2_PACKAGE_HACKRF
|
||||
help
|
||||
Enable Osmocom HACKRF support
|
||||
|
||||
comment "hackrf support needs a toolchain w/ threads, dynamic library, gcc >= 4.9"
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
endif
|
||||
3
package/gr-osmosdr/gr-osmosdr.hash
Normal file
3
package/gr-osmosdr/gr-osmosdr.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated:
|
||||
sha256 c50514d42be5a56a5b6b26fc12a8539ea9a433c28a3b96506084bd646879f91f gr-osmosdr-0.2.6.tar.gz
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
|
||||
66
package/gr-osmosdr/gr-osmosdr.mk
Normal file
66
package/gr-osmosdr/gr-osmosdr.mk
Normal file
@@ -0,0 +1,66 @@
|
||||
################################################################################
|
||||
#
|
||||
# gr-osmosdr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GR_OSMOSDR_VERSION = 0.2.6
|
||||
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,v$(GR_OSMOSDR_VERSION))
|
||||
GR_OSMOSDR_LICENSE = GPL-3.0+
|
||||
GR_OSMOSDR_LICENSE_FILES = COPYING
|
||||
|
||||
# gr-osmosdr prevents doing an in-source-tree build
|
||||
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
|
||||
GR_OSMOSDR_DEPENDENCIES = gnuradio host-python3
|
||||
|
||||
GR_OSMOSDR_CONF_OPTS = \
|
||||
-DENABLE_DEFAULT=OFF \
|
||||
-DENABLE_DOXYGEN=OFF
|
||||
|
||||
# For third-party blocks, the gr-osmosdr libraries are mandatory at
|
||||
# compile time.
|
||||
GR_OSMOSDR_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
||||
GR_OSMOSDR_CONF_OPTS += \
|
||||
-DENABLE_PYTHON=ON \
|
||||
-DPYTHON_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
||||
GR_OSMOSDR_DEPENDENCIES += python3 host-python-six
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE),y)
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=ON
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR),y)
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=ON
|
||||
GR_OSMOSDR_DEPENDENCIES += librtlsdr
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP),y)
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=ON
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE),y)
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=ON
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_HACKRF),y)
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=ON
|
||||
GR_OSMOSDR_DEPENDENCIES += hackrf
|
||||
else
|
||||
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user