diff options
author | wangmy <wangmy@fujitsu.com> | 2022-06-22 15:48:48 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-22 22:40:28 +0100 |
commit | dd003a5c28ff0d26fec9e600323fe0f7fe303289 (patch) | |
tree | 7cb9b7823787d23698689d2c2b24eeb6c3707823 /meta/recipes-multimedia | |
parent | cd0da00b7c45c52eb0f170750736065e48ceb5f2 (diff) | |
download | poky-dd003a5c28ff0d26fec9e600323fe0f7fe303289.tar.gz |
sbc: upgrade 1.5 -> 2.0
0001-sbc_primitives-Fix-build-on-non-x86.patch
revmoed since it's included in 2.0
(From OE-Core rev: 3151d39eed451a313963adc1c0c49b88acf3b790)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r-- | meta/recipes-multimedia/sbc/sbc/0001-sbc_primitives-Fix-build-on-non-x86.patch | 45 | ||||
-rw-r--r-- | meta/recipes-multimedia/sbc/sbc_2.0.bb (renamed from meta/recipes-multimedia/sbc/sbc_1.5.bb) | 6 |
2 files changed, 2 insertions, 49 deletions
diff --git a/meta/recipes-multimedia/sbc/sbc/0001-sbc_primitives-Fix-build-on-non-x86.patch b/meta/recipes-multimedia/sbc/sbc/0001-sbc_primitives-Fix-build-on-non-x86.patch deleted file mode 100644 index 11cec74fbb..0000000000 --- a/meta/recipes-multimedia/sbc/sbc/0001-sbc_primitives-Fix-build-on-non-x86.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From f4a1224323e386090a44bf70ee0ac9877ba7fb0d Mon Sep 17 00:00:00 2001 | ||
2 | From: Marius Bakke <marius@gnu.org> | ||
3 | Date: Tue, 22 Dec 2020 11:04:26 +0000 | ||
4 | Subject: [PATCH] sbc_primitives: Fix build on non-x86. | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Don't call __builtin_cpu_init unless targeting i386 or x86_64. | ||
10 | Otherwise we get an error at link time: | ||
11 | |||
12 | CC sbc/sbc_primitives.lo | ||
13 | sbc/sbc_primitives.c: In function ‘sbc_init_primitives_x86’: | ||
14 | sbc/sbc_primitives.c:596:2: warning: implicit declaration of function ‘__builtin_cpu_init’; did you mean ‘__builtin_irint’? [-Wimplicit-function-declaration] | ||
15 | [...] | ||
16 | CCLD src/sbcdec | ||
17 | ld: sbc/.libs/libsbc-private.a(sbc_primitives.o): in function `sbc_init_primitives': | ||
18 | sbc_primitives.c:(.text+0x3a30): undefined reference to `__builtin_cpu_init' | ||
19 | |||
20 | Upstream-Status: Backport | ||
21 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
22 | --- | ||
23 | sbc/sbc_primitives.c | 2 ++ | ||
24 | 1 file changed, 2 insertions(+) | ||
25 | |||
26 | diff --git a/sbc/sbc_primitives.c b/sbc/sbc_primitives.c | ||
27 | index 97a75be..09c214a 100644 | ||
28 | --- a/sbc/sbc_primitives.c | ||
29 | +++ b/sbc/sbc_primitives.c | ||
30 | @@ -593,6 +593,7 @@ static int sbc_calc_scalefactors_j( | ||
31 | |||
32 | static void sbc_init_primitives_x86(struct sbc_encoder_state *state) | ||
33 | { | ||
34 | +#if defined(__x86_64__) || defined(__i386__) | ||
35 | __builtin_cpu_init(); | ||
36 | |||
37 | #ifdef SBC_BUILD_WITH_MMX_SUPPORT | ||
38 | @@ -604,6 +605,7 @@ static void sbc_init_primitives_x86(struct sbc_encoder_state *state) | ||
39 | if (__builtin_cpu_supports("sse4.2")) | ||
40 | sbc_init_primitives_sse(state); | ||
41 | #endif | ||
42 | +#endif | ||
43 | } | ||
44 | |||
45 | /* | ||
diff --git a/meta/recipes-multimedia/sbc/sbc_1.5.bb b/meta/recipes-multimedia/sbc/sbc_2.0.bb index e5c72ec0b4..d25be9e80c 100644 --- a/meta/recipes-multimedia/sbc/sbc_1.5.bb +++ b/meta/recipes-multimedia/sbc/sbc_2.0.bb | |||
@@ -12,11 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | |||
12 | 12 | ||
13 | DEPENDS = "libsndfile1" | 13 | DEPENDS = "libsndfile1" |
14 | 14 | ||
15 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/${BP}.tar.xz \ | 15 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/${BP}.tar.xz" |
16 | file://0001-sbc_primitives-Fix-build-on-non-x86.patch \ | ||
17 | " | ||
18 | 16 | ||
19 | SRC_URI[sha256sum] = "0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2" | 17 | SRC_URI[sha256sum] = "8f12368e1dbbf55e14536520473cfb338c84b392939cc9b64298360fd4a07992" |
20 | 18 | ||
21 | inherit autotools pkgconfig | 19 | inherit autotools pkgconfig |
22 | 20 | ||