Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From 881705ec581ab7cd61c8e4fe134db8854a83ec4e Mon Sep 17 00:00:00 2001
|
||||
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
||||
Date: Tue, 28 Apr 2020 16:56:29 +0200
|
||||
Subject: [PATCH] host: CMakeLists: add boost unit_test_framework required only
|
||||
when ENABLE_TESTS=ON
|
||||
|
||||
By default, boost unit_test_framework is always required, but only use
|
||||
when ENABLE_TESTS=ON.
|
||||
This PR suppress unit_test_framework to the default list and append
|
||||
UHD_BOOST_REQUIRED_COMPONENTS when this library is needed
|
||||
|
||||
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
||||
[Fabrice: updated for 4.3.0.0]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: reverted (https://github.com/EttusResearch/uhd/commit/1a00949b19eaecb84af0f27c370400dc71a9fd84)]
|
||||
[Bernd: rebased for version 4.9.0.1]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
host/CMakeLists.txt | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
|
||||
index 8f72ece76..a7731ffbd 100644
|
||||
--- a/host/CMakeLists.txt
|
||||
+++ b/host/CMakeLists.txt
|
||||
@@ -323,9 +323,12 @@ set(UHD_BOOST_REQUIRED_COMPONENTS
|
||||
serialization
|
||||
#system Boost.System is used, but explicitly listing it causes errors on some systems.
|
||||
thread
|
||||
- unit_test_framework
|
||||
)
|
||||
|
||||
+if(ENABLE_TESTS)
|
||||
+ list(APPEND UHD_BOOST_REQUIRED_COMPONENTS unit_test_framework)
|
||||
+endif(ENABLE_TESTS)
|
||||
+
|
||||
include(UHDBoost)
|
||||
|
||||
# Include boost headers as system headers to avoid compiler warnings from them.
|
||||
--
|
||||
2.26.2
|
||||
|
||||
140
package/uhd/Config.in
Normal file
140
package/uhd/Config.in
Normal file
@@ -0,0 +1,140 @@
|
||||
comment "uhd needs a toolchain w/ C++, NPTL, wchar, dynamic library, gcc >= 7"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
|
||||
comment "uhd needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
config BR2_PACKAGE_UHD
|
||||
bool "uhd"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic, boost-filesystem
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_USE_MMU # use fork()
|
||||
depends on BR2_USE_WCHAR # boost
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
select BR2_PACKAGE_BOOST
|
||||
select BR2_PACKAGE_BOOST_ATOMIC
|
||||
select BR2_PACKAGE_BOOST_CHRONO
|
||||
select BR2_PACKAGE_BOOST_DATE_TIME
|
||||
select BR2_PACKAGE_BOOST_FILESYSTEM
|
||||
select BR2_PACKAGE_BOOST_MATH
|
||||
select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
|
||||
select BR2_PACKAGE_BOOST_SERIALIZATION
|
||||
select BR2_PACKAGE_BOOST_SYSTEM
|
||||
select BR2_PACKAGE_BOOST_THREAD
|
||||
help
|
||||
Universal Software Radio Peripheral (USRP) Hardware Driver
|
||||
|
||||
https://kb.etthus.com
|
||||
|
||||
if BR2_PACKAGE_UHD
|
||||
|
||||
config BR2_PACKAGE_UHD_B100
|
||||
bool "b100 support"
|
||||
select BR2_PACKAGE_UHD_USB
|
||||
help
|
||||
enable B100 support
|
||||
|
||||
config BR2_PACKAGE_UHD_B200
|
||||
bool "b200 support"
|
||||
select BR2_PACKAGE_UHD_USB
|
||||
help
|
||||
enable B200 support
|
||||
|
||||
config BR2_PACKAGE_UHD_E300
|
||||
bool "E300 support"
|
||||
select BR2_PACKAGE_UHD_MPMD
|
||||
help
|
||||
enable E300 support
|
||||
|
||||
config BR2_PACKAGE_UHD_E320
|
||||
bool "E320 support"
|
||||
select BR2_PACKAGE_UHD_MPMD
|
||||
help
|
||||
enable E320 support
|
||||
|
||||
config BR2_PACKAGE_UHD_EXAMPLES
|
||||
bool "uhd-examples"
|
||||
help
|
||||
Examples
|
||||
|
||||
config BR2_PACKAGE_UHD_MPMD
|
||||
bool "MPMD support"
|
||||
help
|
||||
enable MPMD support
|
||||
|
||||
config BR2_PACKAGE_UHD_N300
|
||||
bool "N300 support"
|
||||
select BR2_PACKAGE_UHD_MPMD
|
||||
help
|
||||
enable N300 support
|
||||
|
||||
config BR2_PACKAGE_UHD_N320
|
||||
bool "N320 support"
|
||||
select BR2_PACKAGE_UHD_MPMD
|
||||
help
|
||||
enable N320 support
|
||||
|
||||
config BR2_PACKAGE_UHD_OCTOCLOCK
|
||||
bool "OctoClock support"
|
||||
help
|
||||
enable OctoClock support
|
||||
|
||||
comment "uhd python API needs python3 and a glibc or musl toolchain w/ gcc >= 9, host gcc >= 9"
|
||||
depends on !BR2_PACKAGE_PYTHON3
|
||||
depends on !BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
||||
depends on !BR2_HOST_GCC_AT_LEAST_9 || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
|
||||
!(BR2_TOOLCHAIN_USES_GLIBC && BR2_TOOLCHAIN_USES_MUSL) # python-numpy
|
||||
|
||||
config BR2_PACKAGE_UHD_PYTHON
|
||||
bool "python API support"
|
||||
depends on BR2_PACKAGE_PYTHON3
|
||||
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
|
||||
depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
|
||||
select BR2_PACKAGE_PYTHON_NUMPY
|
||||
select BR2_PACKAGE_PYTHON_REQUESTS
|
||||
help
|
||||
enable python API support
|
||||
|
||||
config BR2_PACKAGE_UHD_USB
|
||||
bool "USB support"
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
enable UHD USB support
|
||||
|
||||
config BR2_PACKAGE_UHD_USRP1
|
||||
bool "USRP1 support"
|
||||
select BR2_PACKAGE_UHD_USB
|
||||
help
|
||||
enable USRP1 support
|
||||
|
||||
config BR2_PACKAGE_UHD_USRP2
|
||||
bool "USRP2 support"
|
||||
help
|
||||
enable USRP2 support
|
||||
|
||||
comment "uhd utils depends on python API support"
|
||||
depends on !BR2_PACKAGE_UHD_PYTHON
|
||||
|
||||
config BR2_PACKAGE_UHD_UTILS
|
||||
bool "uhd-utils"
|
||||
depends on BR2_PACKAGE_UHD_PYTHON
|
||||
select BR2_PACKAGE_PYTHON_SIX
|
||||
help
|
||||
uhd-utils
|
||||
|
||||
config BR2_PACKAGE_UHD_X300
|
||||
bool "X300 support"
|
||||
help
|
||||
enable X300 support
|
||||
|
||||
endif
|
||||
5
package/uhd/uhd.hash
Normal file
5
package/uhd/uhd.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated:
|
||||
sha256 0be26a139f23041c1fb6e9666d84cba839460e3c756057dc48dc067cc356a7bc uhd-4.9.0.1.tar.gz
|
||||
sha256 94cc36ada2641d037980bf6c2418a750ac10a115ae11de5a5cda6177769dbd4c LICENSE.md
|
||||
sha256 70bf7e79c8cd73a81f97ce81745ea0719a617eebe299a61868165daeae71fff2 host/LICENSE
|
||||
sha256 206adc03412b6c5b71b9c9df9c1f2e60e11833e89393877d5031fd11d332b1d4 fpga/usrp3/LICENSE.md
|
||||
140
package/uhd/uhd.mk
Normal file
140
package/uhd/uhd.mk
Normal file
@@ -0,0 +1,140 @@
|
||||
################################################################################
|
||||
#
|
||||
# uhd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UHD_VERSION = 4.9.0.1
|
||||
UHD_SITE = $(call github,EttusResearch,uhd,v$(UHD_VERSION))
|
||||
UHD_LICENSE = GPL-3.0+, LGPL-3.0+ (fpga/usrp3)
|
||||
UHD_LICENSE_FILES = LICENSE.md host/LICENSE fpga/usrp3/LICENSE.md
|
||||
|
||||
UHD_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
UHD_SUBDIR = host
|
||||
UHD_INSTALL_STAGING = YES
|
||||
|
||||
UHD_DEPENDENCIES = \
|
||||
boost \
|
||||
host-python3 \
|
||||
host-python-mako
|
||||
|
||||
UHD_CONF_OPTS = \
|
||||
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 \
|
||||
-DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python \
|
||||
-DENABLE_C_API=ON \
|
||||
-DENABLE_DOXYGEN=OFF \
|
||||
-DENABLE_DPDK=OFF \
|
||||
-DENABLE_LIBUHD=ON \
|
||||
-DENABLE_MANUAL=OFF \
|
||||
-DENABLE_MAN_PAGES=OFF \
|
||||
-DENABLE_TESTS=OFF
|
||||
|
||||
# As soon as architecture is ARM, uhd will try to use NEON.
|
||||
# But not all ARM cores have NEON support.
|
||||
# When CPU support NEON -mfpu=neon must be added to CXX_FLAGS
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
UHD_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -mfpu=neon"
|
||||
UHD_CONF_OPTS += -DNEON_SIMD_ENABLE=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DNEON_SIMD_ENABLE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ORC),y)
|
||||
UHD_DEPENDENCIES += orc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_B100),y)
|
||||
UHD_CONF_OPTS += -DENABLE_B100=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_B100=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_B200),y)
|
||||
UHD_CONF_OPTS += -DENABLE_B200=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_B200=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_E300),y)
|
||||
UHD_CONF_OPTS += -DENABLE_E300=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_E300=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_E320),y)
|
||||
UHD_CONF_OPTS += -DENABLE_E320=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_E320=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_EXAMPLES),y)
|
||||
UHD_CONF_OPTS += -DENABLE_EXAMPLES=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_EXAMPLES=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_MPMD),y)
|
||||
UHD_CONF_OPTS += -DENABLE_MPMD=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_MPMD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_N300),y)
|
||||
UHD_CONF_OPTS += -DENABLE_N300=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_N300=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_N320),y)
|
||||
UHD_CONF_OPTS += -DENABLE_N320=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_N320=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_OCTOCLOCK),y)
|
||||
UHD_CONF_OPTS += -DENABLE_OCTOCLOCK=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_OCTOCLOCK=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_PYTHON),y)
|
||||
UHD_DEPENDENCIES += host-python-numpy host-python-requests \
|
||||
python-numpy python-requests
|
||||
UHD_CONF_OPTS += -DENABLE_PYTHON_API=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_PYTHON_API=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_USB),y)
|
||||
UHD_DEPENDENCIES += libusb
|
||||
UHD_CONF_OPTS += -DENABLE_USB=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_USB=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_USRP1),y)
|
||||
UHD_CONF_OPTS += -DENABLE_USRP1=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_USRP1=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_USRP2),y)
|
||||
UHD_CONF_OPTS += -DENABLE_USRP2=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_USRP2=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_UTILS),y)
|
||||
UHD_DEPENDENCIES += python-six
|
||||
UHD_CONF_OPTS += -DENABLE_UTILS=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_UTILS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHD_X300),y)
|
||||
UHD_CONF_OPTS += -DENABLE_X300=ON
|
||||
else
|
||||
UHD_CONF_OPTS += -DENABLE_X300=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user