protobuf: limit to supported architectures
authorArnout Vandecappelle <arnout@mind.be>
Sat, 10 May 2014 20:09:30 +0000 (22:09 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 11 May 2014 18:59:02 +0000 (20:59 +0200)
protobuf 2.5.0 adds an atomic operations implementation that is limited
to a few architectures only. mips64el and armeb don't work either.

Fixes (among others)
http://autobuild.buildroot.net/results/ae9fa612d0b6c9d593504206d5cedd480ad2547e/

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ola/Config.in
package/protobuf/Config.in

index eb24a3a07cb150ba03e7d7814a5ce85de174b440..8d202a5bf7126e1378f1b94b4ffff28aa5d67fe0 100644 (file)
@@ -1,5 +1,6 @@
 comment "ola needs a toolchain w/ C++, threads, largefile, wchar"
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
 
 config BR2_PACKAGE_OLA
        bool "ola (open lighting architecture)"
@@ -10,6 +11,7 @@ config BR2_PACKAGE_OLA
        depends on BR2_LARGEFILE # util-linux
        depends on BR2_USE_WCHAR # util-linux
        depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 # protobuf
        help
          Open Lighting Architecture provides applications
          with a mechanism to send and receive DMX512 & RDM
index a4f542e0fce1eddd3a18401b3fd395204ce7d00f..293a9b9d4ce58c6fe05ea3f113fbd164a4227a04 100644 (file)
@@ -2,6 +2,9 @@ config BR2_PACKAGE_PROTOBUF
        bool "protobuf"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_THREADS
+       # See src/google/protobuf/stubs/platform_macros.h for supported archs.
+       # PowerPC doesn't actually work.
+       depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
        help
          Protocol buffers are Google's language-neutral, platform-neutral,
          extensible mechanism for serializing structured data.
@@ -10,3 +13,4 @@ config BR2_PACKAGE_PROTOBUF
 
 comment "protobuf needs a toolchain w/ C++, threads"
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64