sbc: update to 1.5
authorRosen Penev <rosenp@gmail.com>
Mon, 21 Dec 2020 05:05:46 +0000 (21:05 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 23 Dec 2020 03:04:24 +0000 (19:04 -0800)
Add a patch to fix compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/sbc/Makefile
libs/sbc/patches/010-x86.patch [new file with mode: 0644]

index 95f2b8c108ce552c72d960677ef4ebdade27cdbd..4e656fb2cbae95b2dbc1b9c6b20e43fb38a0b712 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sbc
-PKG_VERSION:=1.4
-PKG_RELEASE:=2
+PKG_VERSION:=1.5
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
-PKG_HASH:=518bf46e6bb3dc808a95e1eabad26fdebe8a099c1e781c27ed7fca6c2f4a54c9
+PKG_HASH:=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
 
 PKG_LICENSE:=LGPL-2.1-or-later
 PKG_LICENSE_FILES:=COPYING.LIB
@@ -21,6 +21,7 @@ PKG_MAINTAINER:=
 
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/libs/sbc/patches/010-x86.patch b/libs/sbc/patches/010-x86.patch
new file mode 100644 (file)
index 0000000..8b5d5ac
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/sbc/sbc_primitives.c
++++ b/sbc/sbc_primitives.c
+@@ -593,7 +593,9 @@ static int sbc_calc_scalefactors_j(
+ static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
+ {
++#ifdef __x86__
+       __builtin_cpu_init();
++#endif
+ #ifdef SBC_BUILD_WITH_MMX_SUPPORT
+       if (__builtin_cpu_supports("mmx"))