protobuf: host-protobuf can only be built on certain architectures
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 12 May 2014 17:45:48 +0000 (19:45 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 12 May 2014 20:20:44 +0000 (22:20 +0200)
The host-protobuf package can only build on certain architectures. For
example, host-protobuf does not build on PowerPC platforms, causing
build failures on the autobuilders. Since we don't really care about
build platforms other than x86 and x86-64, this commit restricts the
build of host-protobuf to these architectures only, even though if
technically it could build on ARM and MIPS.

Fixes:

 http://autobuild.buildroot.org/results/9b9/9b9b20b0e4694b11425cdc2382650cdc2774e400/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/collectd/Config.in
package/ola/Config.in
package/protobuf-c/Config.in
package/protobuf/Config.in
package/python-protobuf/Config.in

index daa96033fe9a8fc944eb10b471c31a157263f63f..f693f31a47d03d062bb7fca8220afdf9b1a08425 100644 (file)
@@ -419,6 +419,8 @@ comment "rrdtool support needs a toolchain w/ wchar"
 config BR2_PACKAGE_COLLECTD_RIEMANN
        bool "riemann"
        depends on BR2_INSTALL_LIBSTDCPP # protobuf
+       # protobuf-c -> host-protobuf
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        select BR2_PACKAGE_PROTOBUF_C
        help
          Sends data to Riemann, a stream processing and monitoring system.
index 8d202a5bf7126e1378f1b94b4ffff28aa5d67fe0..713102c1ee7dd62e0cb4852fdc87a093651e60c4 100644 (file)
@@ -12,6 +12,8 @@ config BR2_PACKAGE_OLA
        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
+       # protobuf -> host-protobuf
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        help
          Open Lighting Architecture provides applications
          with a mechanism to send and receive DMX512 & RDM
index 732befc9c0c44e12f7003a91867f8572c642d882..f9fab37a154fc9ed20120b5b064aa520439554b5 100644 (file)
@@ -2,6 +2,8 @@ config BR2_PACKAGE_PROTOBUF_C
        bool "protobuf-c"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf
+       # host-protobuf only builds on certain architectures
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        help
          Code generator and runtime libraries to use Protocol Buffers
          from pure C (not C++).
@@ -10,3 +12,4 @@ config BR2_PACKAGE_PROTOBUF_C
 
 comment "protobuf-c needs a toolchain w/ C++, threads"
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
index 293a9b9d4ce58c6fe05ea3f113fbd164a4227a04..6015b135efe0fbc0d8b3e2577d1a69c37ba2a50f 100644 (file)
@@ -5,6 +5,8 @@ config BR2_PACKAGE_PROTOBUF
        # 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
+       # host-protobuf only builds on certain architectures
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        help
          Protocol buffers are Google's language-neutral, platform-neutral,
          extensible mechanism for serializing structured data.
@@ -14,3 +16,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
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
index ec2205757a1b126c9322a9baea9eb8b4692e7acc..6649dfc094026e8bbc868c113ce2ee78073bae2b 100644 (file)
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_PYTHON_PROTOBUF
        bool "python-protobuf"
        depends on BR2_PACKAGE_PYTHON
+       # host-protobuf only builds on certain architectures
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        help
          Python implementation of the Google Protocol Buffers.