protobuf: make it compile with __MIPSEB__ (ar71xx)
authorEtienne CHAMPETIER <etienne.champetier@free.fr>
Tue, 1 Jul 2014 16:26:24 +0000 (18:26 +0200)
committerEtienne CHAMPETIER <etienne.champetier@free.fr>
Tue, 1 Jul 2014 16:36:53 +0000 (18:36 +0200)
it's only compile tested

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
libs/protobuf/Makefile
libs/protobuf/patches/001-mipseb-compile.patch [new file with mode: 0644]

index e5593c2a1a7f2f30f475b4acc06b1cb2287893a2..1553a7edc529a60b30925d9bb2d60c0d6ecbca0d 100644 (file)
@@ -16,6 +16,7 @@ PKG_SOURCE_URL:=http://protobuf.googlecode.com/files
 PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4
 
 PKG_BUILD_DEPENDS:=protobuf/host
+PKG_USE_MIPS16:=0
 
 PKG_INSTALL:=1
 
diff --git a/libs/protobuf/patches/001-mipseb-compile.patch b/libs/protobuf/patches/001-mipseb-compile.patch
new file mode 100644 (file)
index 0000000..6eb0590
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/google/protobuf/stubs/platform_macros.h
++++ b/src/google/protobuf/stubs/platform_macros.h
+@@ -49,7 +49,7 @@
+ #elif defined(__ARMEL__)
+ #define GOOGLE_PROTOBUF_ARCH_ARM 1
+ #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+-#elif defined(__MIPSEL__)
++#elif defined(__MIPSEL__) || defined(__MIPSEB__)
+ #define GOOGLE_PROTOBUF_ARCH_MIPS 1
+ #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+ #elif defined(__pnacl__)