2020-08-24 14:02:46 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# uhd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-09-25 14:51:09 +02:00
|
|
|
UHD_VERSION = 4.3.0.0
|
2020-08-24 14:02:46 +02:00
|
|
|
UHD_SITE = $(call github,EttusResearch,uhd,v$(UHD_VERSION))
|
2022-09-25 14:51:09 +02:00
|
|
|
UHD_LICENSE = GPL-3.0+, LGPL-3.0+ (fpga/usrp3)
|
|
|
|
UHD_LICENSE_FILES = LICENSE.md host/LICENSE fpga/usrp3/LICENSE.md
|
2020-08-24 14:02:46 +02:00
|
|
|
|
|
|
|
UHD_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
UHD_SUBDIR = host
|
|
|
|
UHD_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
UHD_DEPENDENCIES = \
|
|
|
|
boost \
|
2021-10-26 23:47:03 +02:00
|
|
|
host-python3 \
|
2020-08-24 14:02:46 +02:00
|
|
|
host-python-mako
|
|
|
|
|
|
|
|
UHD_CONF_OPTS = \
|
2021-11-29 16:53:18 +01:00
|
|
|
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 \
|
2020-08-24 14:02:46 +02:00
|
|
|
-DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python \
|
|
|
|
-DENABLE_C_API=ON \
|
|
|
|
-DENABLE_DOXYGEN=OFF \
|
2020-11-17 21:19:41 +01:00
|
|
|
-DENABLE_DPDK=OFF \
|
2020-08-24 14:02:46 +02:00
|
|
|
-DENABLE_LIBUHD=ON \
|
|
|
|
-DENABLE_MANUAL=OFF \
|
|
|
|
-DENABLE_MAN_PAGES=OFF \
|
2021-02-08 16:19:14 +01:00
|
|
|
-DENABLE_TESTS=OFF
|
2020-08-24 14:02:46 +02:00
|
|
|
|
2020-10-30 15:29:45 +01:00
|
|
|
# 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
|
|
|
|
|
2020-08-24 14:02:46 +02:00
|
|
|
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
|
|
|
|
|
2021-02-08 16:19:14 +01:00
|
|
|
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)
|
2021-10-25 04:42:33 +02:00
|
|
|
UHD_DEPENDENCIES += host-python-numpy host-python-requests \
|
2021-02-08 16:19:14 +01:00
|
|
|
python-numpy python-requests
|
|
|
|
UHD_CONF_OPTS += -DENABLE_PYTHON_API=ON
|
|
|
|
else
|
|
|
|
UHD_CONF_OPTS += -DENABLE_PYTHON_API=OFF
|
|
|
|
endif
|
|
|
|
|
2020-08-24 14:02:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_UHD_USB),y)
|
|
|
|
UHD_DEPENDENCIES += libusb
|
|
|
|
UHD_CONF_OPTS += -DENABLE_USB=ON
|
|
|
|
else
|
|
|
|
UHD_CONF_OPTS += -DENABLE_USB=OFF
|
|
|
|
endif
|
|
|
|
|
2021-02-08 16:19:14 +01:00
|
|
|
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
|
|
|
|
|
2020-08-24 14:02:46 +02:00
|
|
|
$(eval $(cmake-package))
|