mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
sbc: update 1.4 -> 1.5
(From OE-Core rev: cf770a4ebf0141e52e25117899ac578a50521dd5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
91612d184d
commit
5762a92d0a
|
@ -0,0 +1,45 @@
|
||||||
|
From f4a1224323e386090a44bf70ee0ac9877ba7fb0d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marius Bakke <marius@gnu.org>
|
||||||
|
Date: Tue, 22 Dec 2020 11:04:26 +0000
|
||||||
|
Subject: [PATCH] sbc_primitives: Fix build on non-x86.
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Don't call __builtin_cpu_init unless targeting i386 or x86_64.
|
||||||
|
Otherwise we get an error at link time:
|
||||||
|
|
||||||
|
CC sbc/sbc_primitives.lo
|
||||||
|
sbc/sbc_primitives.c: In function ‘sbc_init_primitives_x86’:
|
||||||
|
sbc/sbc_primitives.c:596:2: warning: implicit declaration of function ‘__builtin_cpu_init’; did you mean ‘__builtin_irint’? [-Wimplicit-function-declaration]
|
||||||
|
[...]
|
||||||
|
CCLD src/sbcdec
|
||||||
|
ld: sbc/.libs/libsbc-private.a(sbc_primitives.o): in function `sbc_init_primitives':
|
||||||
|
sbc_primitives.c:(.text+0x3a30): undefined reference to `__builtin_cpu_init'
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
---
|
||||||
|
sbc/sbc_primitives.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/sbc/sbc_primitives.c b/sbc/sbc_primitives.c
|
||||||
|
index 97a75be..09c214a 100644
|
||||||
|
--- a/sbc/sbc_primitives.c
|
||||||
|
+++ b/sbc/sbc_primitives.c
|
||||||
|
@@ -593,6 +593,7 @@ static int sbc_calc_scalefactors_j(
|
||||||
|
|
||||||
|
static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
|
||||||
|
{
|
||||||
|
+#if defined(__x86_64__) || defined(__i386__)
|
||||||
|
__builtin_cpu_init();
|
||||||
|
|
||||||
|
#ifdef SBC_BUILD_WITH_MMX_SUPPORT
|
||||||
|
@@ -604,6 +605,7 @@ static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
|
||||||
|
if (__builtin_cpu_supports("sse4.2"))
|
||||||
|
sbc_init_primitives_sse(state);
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
|
@ -12,10 +12,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
||||||
|
|
||||||
DEPENDS = "libsndfile1"
|
DEPENDS = "libsndfile1"
|
||||||
|
|
||||||
SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/${BP}.tar.xz"
|
SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/${BP}.tar.xz \
|
||||||
|
file://0001-sbc_primitives-Fix-build-on-non-x86.patch \
|
||||||
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "800fb0908899baa48dc216d8e156cc05"
|
SRC_URI[sha256sum] = "0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2"
|
||||||
SRC_URI[sha256sum] = "518bf46e6bb3dc808a95e1eabad26fdebe8a099c1e781c27ed7fca6c2f4a54c9"
|
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|
Loading…
Reference in New Issue
Block a user