Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] alsa-lib: Add option to allow calculations in float for soft float targets
@ 2016-05-07  6:45 Jörg Krause
  2016-05-07  7:16 ` Thomas Petazzoni
  2016-07-04 19:48 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Jörg Krause @ 2016-05-07  6:45 UTC (permalink / raw)
  To: buildroot

The `--with-softfloat` config option is a little bit misleading as it actually
means: "avoid calculations in float" [1].

Add a menu config option to allow floating point emulation for soft float
targets. This option is enabled by default for soft float targets.

[1]
http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=configure.ac;h=c265ec9e159bdf76a6829ab8f7d625ac72b25501;#l226

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
 package/alsa-lib/Config.in   | 6 ++++++
 package/alsa-lib/alsa-lib.mk | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/alsa-lib/Config.in b/package/alsa-lib/Config.in
index 97e8489..8c50e4f 100644
--- a/package/alsa-lib/Config.in
+++ b/package/alsa-lib/Config.in
@@ -33,6 +33,12 @@ config BR2_PACKAGE_ALSA_LIB_DEVDIR
 	string "directory with ALSA device files"
 	default "/dev/snd"
 
+config BR2_PACKAGE_ALSA_LIB_NO_FLOAT
+	bool "Avoid calculation in float"
+	default y if BR2_SOFT_FLOAT
+	help
+	  Disables all calculations requiring floating point routines.
+
 config BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS
 	string "built PCM plugins"
 	default "all" if BR2_USE_MMU
diff --git a/package/alsa-lib/alsa-lib.mk b/package/alsa-lib/alsa-lib.mk
index ae0377d..b065a54 100644
--- a/package/alsa-lib/alsa-lib.mk
+++ b/package/alsa-lib/alsa-lib.mk
@@ -62,7 +62,7 @@ else
 ALSA_LIB_CONF_OPTS += --disable-python
 endif
 
-ifeq ($(BR2_SOFT_FLOAT),y)
+ifeq ($(BR2_PACKAGE_ALSA_LIB_NO_FLOAT),y)
 ALSA_LIB_CONF_OPTS += --with-softfloat
 endif
 
-- 
2.8.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-04 19:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-07  6:45 [Buildroot] [PATCH] alsa-lib: Add option to allow calculations in float for soft float targets Jörg Krause
2016-05-07  7:16 ` Thomas Petazzoni
2016-05-08 12:33   ` Jörg Krause
2016-05-08 19:53     ` Arnout Vandecappelle
2016-05-09  7:38       ` Jörg Krause
2016-07-04 19:48 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox