alsa-utils_1.0.24.2.bb: Fix build for uclibc targets
uclibc does not have exp10() implemented so we obtain same behaviour using pow() (From OE-Core rev: 199e76cd3d3bafef189d5a82e65796fb4a0c6536) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
6e0cede2fd
commit
c09c603f5f
|
@ -0,0 +1,21 @@
|
|||
uclibc does not have exp10 function which is glibc extension.
|
||||
Bur we can get the same behavior by using pow()
|
||||
|
||||
Upstream-status: Pending
|
||||
|
||||
Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Index: alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
|
||||
===================================================================
|
||||
--- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c
|
||||
+++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
|
||||
@@ -36,6 +36,9 @@
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
#include "volume_mapping.h"
|
||||
+#ifdef __UCLIBC__
|
||||
+#define exp10(x) (pow(10, (x)))
|
||||
+#endif /* __UCLIBC__ */
|
||||
|
||||
#define MAX_LINEAR_DB_SCALE 24
|
||||
|
|
@ -9,7 +9,9 @@ DEPENDS = "alsa-lib ncurses"
|
|||
PR = "r0"
|
||||
|
||||
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
|
||||
file://ncursesfix.patch"
|
||||
file://ncursesfix.patch \
|
||||
file://uclibc-exp10-replacement.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "8238cd57cb301d1c36bcf0ecb59ce6b2"
|
||||
SRC_URI[sha256sum] = "95127f740291086486c06c28118cabca0814bde48fd14dac041a9812a5ac1be2"
|
||||
|
|
Loading…
Reference in New Issue