浏览代码

package/signal-estimator: add new package

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@bootlin.com>
[yann.morin.1998@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@free.fr>
Théo Lebrun 3 年之前
父节点
当前提交
e3b2bc21d5

+ 1 - 0
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"

+ 17 - 0
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

+ 3 - 0
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

+ 19 - 0
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))