Browse Source

sbc: update to 1.5

Add a patch to fix compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
47c572462f
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 16 additions and 3 deletions
  1. +4
    -3
      libs/sbc/Makefile
  2. +12
    -0
      libs/sbc/patches/010-x86.patch

+ 4
- 3
libs/sbc/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=sbc 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:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/ PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
PKG_HASH:=518bf46e6bb3dc808a95e1eabad26fdebe8a099c1e781c27ed7fca6c2f4a54c9
PKG_HASH:=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING.LIB PKG_LICENSE_FILES:=COPYING.LIB
@ -21,6 +21,7 @@ PKG_MAINTAINER:=
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk


+ 12
- 0
libs/sbc/patches/010-x86.patch View File

@ -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"))

Loading…
Cancel
Save