Browse Source

protobuf: make it compile with __MIPSEB__ (ar71xx)

it's only compile tested

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
Etienne CHAMPETIER 10 years ago
parent
commit
92fc1687c1
2 changed files with 12 additions and 0 deletions
  1. 1
    0
      libs/protobuf/Makefile
  2. 11
    0
      libs/protobuf/patches/001-mipseb-compile.patch

+ 1
- 0
libs/protobuf/Makefile View File

16
 PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4
16
 PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4
17
 
17
 
18
 PKG_BUILD_DEPENDS:=protobuf/host
18
 PKG_BUILD_DEPENDS:=protobuf/host
19
+PKG_USE_MIPS16:=0
19
 
20
 
20
 PKG_INSTALL:=1
21
 PKG_INSTALL:=1
21
 
22
 

+ 11
- 0
libs/protobuf/patches/001-mipseb-compile.patch View File

1
+--- a/src/google/protobuf/stubs/platform_macros.h
2
++++ b/src/google/protobuf/stubs/platform_macros.h
3
+@@ -49,7 +49,7 @@
4
+ #elif defined(__ARMEL__)
5
+ #define GOOGLE_PROTOBUF_ARCH_ARM 1
6
+ #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
7
+-#elif defined(__MIPSEL__)
8
++#elif defined(__MIPSEL__) || defined(__MIPSEB__)
9
+ #define GOOGLE_PROTOBUF_ARCH_MIPS 1
10
+ #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
11
+ #elif defined(__pnacl__)