[Buildroot] [git commit] package/signal-estimator: add new package

Yann E. MORIN yann.morin.1998 at free.fr
Sun Sep 11 08:48:40 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=e3b2bc21d52fc949ac62964bc4c628c5143e4954
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

We need to use the git download mechanism, as the package depends on a
submodule (an old version of cxxopt), and this is not included in the
archive autogenerated by Github.

Signed-off-by: Théo Lebrun <theo.lebrun at bootlin.com>
[yann.morin.1998 at free.fr:
  - bump to 0.0.4
  - reword commit log ad help text
  - other eye-candy reformatting
]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/Config.in                              |  1 +
 package/signal-estimator/Config.in             | 17 +++++++++++++++++
 package/signal-estimator/signal-estimator.hash |  3 +++
 package/signal-estimator/signal-estimator.mk   | 19 +++++++++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/package/Config.in b/package/Config.in
index d1c098c48f..2c2752b412 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -142,6 +142,7 @@ menu "Debugging, profiling and benchmark"
 	source "package/rt-tests/Config.in"
 	source "package/rwmem/Config.in"
 	source "package/sentry-native/Config.in"
+	source "package/signal-estimator/Config.in"
 	source "package/spidev_test/Config.in"
 	source "package/strace/Config.in"
 	source "package/stress/Config.in"
diff --git a/package/signal-estimator/Config.in b/package/signal-estimator/Config.in
new file mode 100644
index 0000000000..30c6e966ab
--- /dev/null
+++ b/package/signal-estimator/Config.in
@@ -0,0 +1,17 @@
+comment "signal-estimator needs a toochain w/ C++, threads, gcc >= 7"
+	depends on !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
+		|| !BR2_TOOLCHAIN_HAS_THREADS
+
+config BR2_PACKAGE_SIGNAL_ESTIMATOR
+	bool "signal-estimator"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
+	depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+	select BR2_PACKAGE_ALSA_LIB
+	help
+	  signal-estimator is a small command-line and GUI tool allowing
+	  to measure different characteristics of the signal looped back
+	  from audio output to audio input.
+
+	  https://github.com/gavv/signal-estimator
diff --git a/package/signal-estimator/signal-estimator.hash b/package/signal-estimator/signal-estimator.hash
new file mode 100644
index 0000000000..c10aa16d50
--- /dev/null
+++ b/package/signal-estimator/signal-estimator.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  6256b881bd9285fdcf133628cf6dd6b0e2758c08bada231e44b2684a3cf7898f  signal-estimator-v0.0.4-br1.tar.gz
+sha256  e836fc784cb6ed2d160f1c1ecdf1303ed57436a86f66f97e5406a1b79e6db55e  LICENSE
diff --git a/package/signal-estimator/signal-estimator.mk b/package/signal-estimator/signal-estimator.mk
new file mode 100644
index 0000000000..cb1594b58d
--- /dev/null
+++ b/package/signal-estimator/signal-estimator.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# signal-estimator
+#
+################################################################################
+
+SIGNAL_ESTIMATOR_VERSION = v0.0.4
+SIGNAL_ESTIMATOR_SITE = https://github.com/gavv/signal-estimator
+SIGNAL_ESTIMATOR_SITE_METHOD = git
+SIGNAL_ESTIMATOR_GIT_SUBMODULES = YES
+
+SIGNAL_ESTIMATOR_LICENSE = MIT
+SIGNAL_ESTIMATOR_LICENSE_FILES = LICENSE
+
+SIGNAL_ESTIMATOR_DEPENDENCIES = alsa-lib
+
+SIGNAL_ESTIMATOR_CONF_OPTS += -DBUILD_GUI=OFF
+
+$(eval $(cmake-package))



More information about the buildroot mailing list