summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-27 11:50:07 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-28 12:27:49 +0000
commit9fff795f12a2c0b0046e008bf833957b75e94145 (patch)
treee0fbff723f4db470c0f1b263ce286c1083338c81 /meta/recipes-connectivity/bluez
parent7f27de5bdf5610e208a65c88bcd3619c65e175ec (diff)
downloadpoky-9fff795f12a2c0b0046e008bf833957b75e94145.tar.gz
bluez4: Fix build on x86/amd64 with gcc 4.7
gcc figures an impossible asm contraint in inline asm which it is correct about "i" requires the operand to be a compile-time constant but memory location of a multi-dimensional array isn't constant at compile time. (From OE-Core rev: 09dcd878a55b5aec5427288c4faf3c4d64a30a72) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bluez')
-rw-r--r--meta/recipes-connectivity/bluez/bluez4-4.98/sbc_mmx.patch24
-rw-r--r--meta/recipes-connectivity/bluez/bluez4_4.98.bb6
2 files changed, 28 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/bluez/bluez4-4.98/sbc_mmx.patch b/meta/recipes-connectivity/bluez/bluez4-4.98/sbc_mmx.patch
new file mode 100644
index 0000000000..98fab458b0
--- /dev/null
+++ b/meta/recipes-connectivity/bluez/bluez4-4.98/sbc_mmx.patch
@@ -0,0 +1,24 @@
1on x86 and x86_64 gcc 4.7 complains
2
3sbc/sbc_primitives_mmx.c: In function 'sbc_calc_scalefactors_mmx':
4sbc/sbc_primitives_mmx.c:294:4: warning: asm operand 2 probably doesn't match constraints [enabled by default]
5sbc/sbc_primitives_mmx.c:294:4: error: impossible constraint in 'asm'
6
7This patch is taken from https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/911871
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11Upstream-Status: Pending
12Index: bluez-4.98/sbc/sbc_primitives_mmx.c
13===================================================================
14--- bluez-4.98.orig/sbc/sbc_primitives_mmx.c 2011-12-21 14:53:54.000000000 -0800
15+++ bluez-4.98/sbc/sbc_primitives_mmx.c 2012-02-24 10:07:03.422073800 -0800
16@@ -318,7 +318,7 @@
17 "movl %k0, 4(%3)\n"
18 : "+r" (blk)
19 : "r" (&sb_sample_f[0][ch][sb]),
20- "i" ((char *) &sb_sample_f[1][0][0] -
21+ "r" ((char *) &sb_sample_f[1][0][0] -
22 (char *) &sb_sample_f[0][0][0]),
23 "r" (&scale_factor[ch][sb]),
24 "r" (&consts),
diff --git a/meta/recipes-connectivity/bluez/bluez4_4.98.bb b/meta/recipes-connectivity/bluez/bluez4_4.98.bb
index 62de1feb48..2412b1b160 100644
--- a/meta/recipes-connectivity/bluez/bluez4_4.98.bb
+++ b/meta/recipes-connectivity/bluez/bluez4_4.98.bb
@@ -1,8 +1,10 @@
1require bluez4.inc 1require bluez4.inc
2 2
3PR = "r0" 3PR = "r1"
4 4
5SRC_URI += "file://bluetooth.conf" 5SRC_URI += "file://bluetooth.conf \
6 file://sbc_mmx.patch \
7 "
6 8
7SRC_URI[md5sum] = "362864b716950baa04797de735fc237b" 9SRC_URI[md5sum] = "362864b716950baa04797de735fc237b"
8SRC_URI[sha256sum] = "9a5b655bada7c7a1921cb3bac83b8a32bbe49893e4c7a1377cdc1b0d35f7d233" 10SRC_URI[sha256sum] = "9a5b655bada7c7a1921cb3bac83b8a32bbe49893e4c7a1377cdc1b0d35f7d233"