From 47c572462fbd63b89a57f7e04b187d36da043afa Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 20 Dec 2020 21:05:46 -0800 Subject: [PATCH] sbc: update to 1.5 Add a patch to fix compilation. Signed-off-by: Rosen Penev --- libs/sbc/Makefile | 7 ++++--- libs/sbc/patches/010-x86.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 libs/sbc/patches/010-x86.patch diff --git a/libs/sbc/Makefile b/libs/sbc/Makefile index 95f2b8c10..4e656fb2c 100644 --- a/libs/sbc/Makefile +++ b/libs/sbc/Makefile @@ -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 index 000000000..8b5d5aca9 --- /dev/null +++ b/libs/sbc/patches/010-x86.patch @@ -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"))