Browse Source

libwebp: Fix compilation with mips16

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

+ 1
- 2
libs/libwebp/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libwebp PKG_NAME:=libwebp
PKG_VERSION:=1.0.3 PKG_VERSION:=1.0.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
@ -14,7 +14,6 @@ PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk


+ 11
- 0
libs/libwebp/patches/010-mips16.patch View File

@ -0,0 +1,11 @@
--- a/src/dsp/dsp.h
+++ b/src/dsp/dsp.h
@@ -95,7 +95,7 @@ extern "C" {
#define WEBP_USE_INTRINSICS
#endif
-#if defined(__mips__) && !defined(__mips64) && \
+#if defined(__mips__) && !defined(__mips16) && !defined(__mips64) && \
defined(__mips_isa_rev) && (__mips_isa_rev >= 1) && (__mips_isa_rev < 6)
#define WEBP_USE_MIPS32
#if (__mips_isa_rev >= 2)

Loading…
Cancel
Save