mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
protobuf: make it compile with __MIPSEB__ (ar71xx)
it's only compile tested Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
This commit is contained in:
@@ -16,6 +16,7 @@ PKG_SOURCE_URL:=http://protobuf.googlecode.com/files
|
|||||||
PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4
|
PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=protobuf/host
|
PKG_BUILD_DEPENDS:=protobuf/host
|
||||||
|
PKG_USE_MIPS16:=0
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
|||||||
11
libs/protobuf/patches/001-mipseb-compile.patch
Normal file
11
libs/protobuf/patches/001-mipseb-compile.patch
Normal file
@@ -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__)
|
||||||
Reference in New Issue
Block a user