[Buildroot] [PATCH] alsa-lib: Add option to allow calculations in float for soft float targets
Jörg Krause
joerg.krause at embedded.rocks
Sun May 8 12:33:22 UTC 2016
On Sa, 2016-05-07 at 09:16 +0200, Thomas Petazzoni wrote:
> Hello,
>
> On Sat, 7 May 2016 08:45:25 +0200, Jörg Krause wrote:
>
> > -ifeq ($(BR2_SOFT_FLOAT),y)
> > +ifeq ($(BR2_PACKAGE_ALSA_LIB_NO_FLOAT),y)
> > ALSA_LIB_CONF_OPTS += --with-softfloat
> > endif
>
> So we were already passing --with-softfloat when BR2_SOFT_FLOAT=y. So
> what your option brings is:
>
> - Ability to use floating point operations when BR2_SOFT_FLOAT=y.
>
> - Ability to not use floating point operations when BR2_SOFT_FLOAT
> is
> disabled.
>
> Do you have any actual use for such possibilities ?
Yes, for the first case.
I want to use a feature from the alsa-lib which is opted-out at compile
time for softfloat targets by #ifndef HAVE_SOFT_FLOAT [1]. This
functionality requires floating point data types and libmath
operations.
I do not see any point in disabling this unconditionally for softfloat
targets, as a software floating point library can emulate this.
[1]
http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=src/pcm/pcm_softvo
l.c;h=802aa4b7cb68e444b8b47e7140870141aad65ffc;hb=HEAD#l785
Best regards
Jörg Krause
More information about the buildroot
mailing list