summaryrefslogtreecommitdiff
path: root/packages/alsa
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-09-17 11:35:01 +0000
committerKoen Kooi <koen@openembedded.org>2007-09-17 11:35:01 +0000
commit496aea4722ae98806904e2ada55a779ee956ec51 (patch)
treee59b20b55ee3bdb6504d635ead84fea8c607e37c /packages/alsa
parent1bd2a31ce5b056524a7d249fb44616a485f2f0f2 (diff)
alsa: enable fixed-point PCM conversion for TARGET_FPU=soft
Diffstat (limited to 'packages/alsa')
-rw-r--r--packages/alsa/alsa-fpu.inc6
-rw-r--r--packages/alsa/alsa-lib_1.0.14.bb5
2 files changed, 10 insertions, 1 deletions
diff --git a/packages/alsa/alsa-fpu.inc b/packages/alsa/alsa-fpu.inc
new file mode 100644
index 0000000000..ebd3493e6c
--- /dev/null
+++ b/packages/alsa/alsa-fpu.inc
@@ -0,0 +1,6 @@
+
+def get_alsa_fpu_setting(bb, d):
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ return "--with-softfloat"
+ return ""
+
diff --git a/packages/alsa/alsa-lib_1.0.14.bb b/packages/alsa/alsa-lib_1.0.14.bb
index de805b9a4b..ba46342ae7 100644
--- a/packages/alsa/alsa-lib_1.0.14.bb
+++ b/packages/alsa/alsa-lib_1.0.14.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.alsa-project.org"
SECTION = "libs/multimedia"
LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
# configure.in sets -D__arm__ on the command line for any arm system
# (not just those with the ARM instruction set), this should be removed,
@@ -17,6 +17,9 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2 \
inherit autotools pkgconfig
+require alsa-fpu.inc
+EXTRA_OECONF += "${@get_alsa_fpu_setting(bb, d)} "
+
EXTRA_OECONF = "--with-cards=pdaudiocf --with-oss=yes"
do_stage () {