Skip to contentSkip to conversation

package/uhd: bump to version 4.3.0.0

PATCH Applied Fabrice Fontaine 2 participants 2 messages Sep 25, 2022 – Sep 26, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/uhd: bump to version 4.3.0.0

- boost regex is not needed since
https://github.com/EttusResearch/uhd/commit/f773cf9fb96e25d064f43cffdc893ac905d91f15
- Drop all patches (already in version) except first one which has been reverted by upstream:
https://github.com/EttusResearch/uhd/commit/1a00949b19eaecb84af0f27c370400dc71a9fd84
- Add LGPL-3.0+ for fpga/usrp3:
https://github.com/EttusResearch/uhd/commit/bafa9d95453387814ef25e6b6256ba8db2df612f
- N230 is not supported since
https://github.com/EttusResearch/uhd/commit/d94140a4129d6b2153b15860eeb2406672ebb414
- RFNoC is not supported since
https://github.com/EttusResearch/uhd/commit/7d69dcdcc318ccdf87038b732acbf2bf7c087b60

https://github.com/EttusResearch/uhd/blob/v4.3.0.0/CHANGELOG

---
 Config.in.legacy                              |  14 +
 ...add-boost-unit_test_framework-requir.patch |  12 +-
 .../uhd/0002-host-fix-build-boost-173.patch   | 577 ------------------
 .../0003-add-RISC-V-endian-detection.patch    | 113 ----
 ...-lib-Fix-missing-includes-in-rpc-hpp.patch |  28 -
 ...ove-boost-math-in-favor-of-std-cmath.patch | 105 ----
 ...ost-math-iround-math-sign-with-std-l.patch |  57 --
 ...explicit-template-type-for-std-min-T.patch |  28 -
 package/uhd/Config.in                         |  11 -
 package/uhd/uhd.hash                          |   5 +-
 package/uhd/uhd.mk                            |  18 +-
 11 files changed, 26 insertions(+), 942 deletions(-)
 delete mode 100644 package/uhd/0002-host-fix-build-boost-173.patch
 delete mode 100644 package/uhd/0003-add-RISC-V-endian-detection.patch
 delete mode 100644 package/uhd/0004-lib-Fix-missing-includes-in-rpc-hpp.patch
 delete mode 100644 package/uhd/0005-core-remove-boost-math-in-favor-of-std-cmath.patch
 delete mode 100644 package/uhd/0006-usrp2-Replace-boost-math-iround-math-sign-with-std-l.patch
 delete mode 100644 package/uhd/0007-usrp2-Use-explicit-template-type-for-std-min-T.patch
Config.in.legacy +14 -0
index 5f7274e84b..db34a2c26c 100644
@@ -146,6 +146,20 @@ endif
 
 comment "Legacy options removed in 2022.11"
 
+config BR2_PACKAGE_UHD_N230
+	bool "uhd N230 support removed"
+	select BR2_LEGACY
+	help
+	  uhd N230 support has been dropped by upstream since version
+	  4.0.0.0.
+
+config BR2_PACKAGE_UHD_RFNOC
+	bool "uhd RFNoC support removed"
+	select BR2_LEGACY
+	help
+	  uhd RFNoC support has been dropped by upstream since version
+	  4.0.0.0.
+
 config BR2_PACKAGE_GPSD_OLDSTYLE
 	bool "gpsd oldstyle removed"
 	select BR2_LEGACY
package/uhd/0001-host-CMakeLists-add-boost-unit_test_framework-requir.patch +6 -6
index a79b650bed..4c455d28fc 100644
@@ -9,8 +9,10 @@ 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
 
-[backported from https://github.com/EttusResearch/uhd/pull/341]
 Signed-off-by: Gwenhael Goavec-Merou <[email protected]>
+[Fabrice: updated for 4.3.0.0]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: reverted (https://github.com/EttusResearch/uhd/commit/1a00949b19eaecb84af0f27c370400dc71a9fd84)]
 ---
  host/CMakeLists.txt | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
@@ -19,15 +21,13 @@ diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
 index 8f72ece76..a7731ffbd 100644
 --- a/host/CMakeLists.txt
 +++ b/host/CMakeLists.txt
-@@ -291,10 +291,14 @@ set(UHD_BOOST_REQUIRED_COMPONENTS
-     filesystem
-     program_options
+@@ -291,9 +291,12 @@ set(UHD_BOOST_REQUIRED_COMPONENTS
      system
--    unit_test_framework
      serialization
      thread
+-    unit_test_framework
  )
-+
+
 +if(ENABLE_TESTS)
 +    list(APPEND UHD_BOOST_REQUIRED_COMPONENTS unit_test_framework)
 +endif(ENABLE_TESTS)
package/uhd/0002-host-fix-build-boost-173.patch deleted +0 -577

577 lines not on this page · raw message

package/uhd/0003-add-RISC-V-endian-detection.patch deleted +0 -113

113 lines not on this page · raw message

package/uhd/0004-lib-Fix-missing-includes-in-rpc-hpp.patch deleted +0 -28
deleted file mode 100644
index b287beec71..0000000000
@@ -1,28 +0,0 @@
-From 9c4d9d826a6f40f199c526afd5ec168d5d088591 Mon Sep 17 00:00:00 2001
-From: Martin Braun <[email protected]>
-Date: Fri, 29 Jan 2021 12:23:50 +0100
-Subject: [PATCH] lib: Fix missing includes in rpc.hpp
-
-[Retrieved from:
-https://github.com/EttusResearch/uhd/commit/9c4d9d826a6f40f199c526afd5ec168d5d088591]
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- host/lib/include/uhdlib/utils/rpc.hpp | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/host/lib/include/uhdlib/utils/rpc.hpp b/host/lib/include/uhdlib/utils/rpc.hpp
-index e87a2ee324..ca89c10547 100644
---- a/host/lib/include/uhdlib/utils/rpc.hpp
-+++ b/host/lib/include/uhdlib/utils/rpc.hpp
-@@ -12,7 +12,11 @@
- #include <rpc/client.h>
- #include <rpc/rpc_error.h>
- #include <boost/format.hpp>
-+#include <chrono>
- #include <memory>
-+#include <mutex>
-+#include <string>
-+#include <thread>
- 
- namespace {
- 
package/uhd/0005-core-remove-boost-math-in-favor-of-std-cmath.patch deleted +0 -105

105 lines not on this page · raw message

package/uhd/0006-usrp2-Replace-boost-math-iround-math-sign-with-std-l.patch deleted +0 -57

57 lines not on this page · raw message

package/uhd/0007-usrp2-Use-explicit-template-type-for-std-min-T.patch deleted +0 -28
deleted file mode 100644
index c5d303cd0a..0000000000
@@ -1,28 +0,0 @@
-From d1c6290fe9c8b01068abfca6f272e2a1e031b9de Mon Sep 17 00:00:00 2001
-From: StefanBruens <[email protected]>
-Date: Wed, 5 May 2021 18:49:40 +0200
-Subject: [PATCH] usrp2: Use explicit template type for std::min<T>
-
-Signed-off-by: Aaron Rossetto <[email protected]>
-[[email protected]: backport from upstream]
-Signed-off-by: Gwenhael Goavec-Merou <[email protected]>
----
- host/lib/usrp/usrp2/usrp2_impl.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
-index 59fd9849c..e82a9fa71 100644
---- a/host/lib/usrp/usrp2/usrp2_impl.cpp
-+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
-@@ -845,7 +845,7 @@ double usrp2_impl::set_tx_dsp_freq(
-         _tree->access<double>("/mboards/"+mb+"/tick_rate").get();
- 
-     //calculate the DAC shift (multiples of rate)
--    const int zone         = std::max(std::min(std::lround(new_freq / tick_rate), 2), -2);
-+    const int zone         = std::max(std::min<int>(std::lround(new_freq / tick_rate), 2), -2);
-     const double dac_shift = zone * tick_rate;
-     new_freq -= dac_shift; //update FPGA DSP target freq
-     UHD_LOG_TRACE("USRP2",
--- 
-2.32.0
-
package/uhd/Config.in +0 -11
index 248e309dd5..75554259d0 100644
@@ -23,7 +23,6 @@ config BR2_PACKAGE_UHD
 	select BR2_PACKAGE_BOOST_FILESYSTEM
 	select BR2_PACKAGE_BOOST_MATH
 	select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
-	select BR2_PACKAGE_BOOST_REGEX
 	select BR2_PACKAGE_BOOST_SERIALIZATION
 	select BR2_PACKAGE_BOOST_SYSTEM
 	select BR2_PACKAGE_BOOST_THREAD
@@ -76,11 +75,6 @@ config BR2_PACKAGE_UHD_MPMD
 	help
 	  enable MPMD support
 
-config BR2_PACKAGE_UHD_N230
-	bool "N230 support"
-	help
-	  enable N230 support
-
 config BR2_PACKAGE_UHD_N300
 	bool "N300 support"
 	select BR2_PACKAGE_UHD_MPMD
@@ -113,11 +107,6 @@ config BR2_PACKAGE_UHD_PYTHON
 	help
 	  enable python API support
 
-config BR2_PACKAGE_UHD_RFNOC
-	bool "RFNoC support"
-	help
-	  enable RFNoC support
-
 config BR2_PACKAGE_UHD_USB
 	bool "USB support"
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
package/uhd/uhd.hash +3 -2
index cfd1f3f641..3af1bc9251 100644
@@ -1,4 +1,5 @@
 # Locally calculated:
-sha256  eed4a77d75faafff56be78985950039f8d9d1eb9fcbd58b8862e481dd49825cd  uhd-3.15.0.0.tar.gz
-sha256  8fc99820c2419d0de6bbbd319ff935d54960b37b716d0b4bb1c75de493f3e1fd  LICENSE.md
+sha256  8695800d593c58b557cbf9905b02bbf65a74ca68674e8c8c8c28bb6e203635ad  uhd-4.3.0.0.tar.gz
+sha256  94cc36ada2641d037980bf6c2418a750ac10a115ae11de5a5cda6177769dbd4c  LICENSE.md
 sha256  70bf7e79c8cd73a81f97ce81745ea0719a617eebe299a61868165daeae71fff2  host/LICENSE
+sha256  206adc03412b6c5b71b9c9df9c1f2e60e11833e89393877d5031fd11d332b1d4  fpga/usrp3/LICENSE.md
package/uhd/uhd.mk +3 -15
index 2a5b69cefb..a9d711acd4 100644
@@ -4,10 +4,10 @@
 #
 ################################################################################
 
-UHD_VERSION = 3.15.0.0
+UHD_VERSION = 4.3.0.0
 UHD_SITE = $(call github,EttusResearch,uhd,v$(UHD_VERSION))
-UHD_LICENSE = GPL-3.0+
-UHD_LICENSE_FILES = LICENSE.md host/LICENSE
+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
@@ -79,12 +79,6 @@ else
 UHD_CONF_OPTS += -DENABLE_MPMD=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_UHD_N230),y)
-UHD_CONF_OPTS += -DENABLE_N230=ON
-else
-UHD_CONF_OPTS += -DENABLE_N230=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_UHD_N300),y)
 UHD_CONF_OPTS += -DENABLE_N300=ON
 else
@@ -103,12 +97,6 @@ else
 UHD_CONF_OPTS += -DENABLE_OCTOCLOCK=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_UHD_RFNOC),y)
-UHD_CONF_OPTS += -DENABLE_RFNOC=ON
-else
-UHD_CONF_OPTS += -DENABLE_RFNOC=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_UHD_PYTHON),y)
 UHD_DEPENDENCIES += host-python-numpy host-python-requests \
 	python-numpy python-requests
Signature · 7 lines
2.35.1


_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 26 lines · On Sun, 25 Sep 2022 14:51:09 +0200 Fabrice Fontaine…

- boost regex is not needed since
https://github.com/EttusResearch/uhd/commit/f773cf9fb96e25d064f43cffdc893ac905d91f15
- Drop all patches (already in version) except first one which has been reverted by upstream:
https://github.com/EttusResearch/uhd/commit/1a00949b19eaecb84af0f27c370400dc71a9fd84
- Add LGPL-3.0+ for fpga/usrp3:
https://github.com/EttusResearch/uhd/commit/bafa9d95453387814ef25e6b6256ba8db2df612f
- N230 is not supported since
https://github.com/EttusResearch/uhd/commit/d94140a4129d6b2153b15860eeb2406672ebb414
- RFNoC is not supported since
https://github.com/EttusResearch/uhd/commit/7d69dcdcc318ccdf87038b732acbf2bf7c087b60

https://github.com/EttusResearch/uhd/blob/v4.3.0.0/CHANGELOG

---
 Config.in.legacy                              |  14 +
 ...add-boost-unit_test_framework-requir.patch |  12 +-
 .../uhd/0002-host-fix-build-boost-173.patch   | 577 ------------------
 .../0003-add-RISC-V-endian-detection.patch    | 113 ----
 ...-lib-Fix-missing-includes-in-rpc-hpp.patch |  28 -
 ...ove-boost-math-in-favor-of-std-cmath.patch | 105 ----
 ...ost-math-iround-math-sign-with-std-l.patch |  57 --
 ...explicit-template-type-for-std-min-T.patch |  28 -
 package/uhd/Config.in                         |  11 -
 package/uhd/uhd.hash                          |   5 +-
Quoted 8 lines
 package/uhd/uhd.mk                            |  18 +-
 11 files changed, 26 insertions(+), 942 deletions(-)
 delete mode 100644 package/uhd/0002-host-fix-build-boost-173.patch
 delete mode 100644 package/uhd/0003-add-RISC-V-endian-detection.patch
 delete mode 100644 package/uhd/0004-lib-Fix-missing-includes-in-rpc-hpp.patch
 delete mode 100644 package/uhd/0005-core-remove-boost-math-in-favor-of-std-cmath.patch
 delete mode 100644 package/uhd/0006-usrp2-Replace-boost-math-iround-math-sign-with-std-l.patch
 delete mode 100644 package/uhd/0007-usrp2-Use-explicit-template-type-for-std-min-T.patch

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot