msgpack: rework BR2_ARCH_HAS_ATOMICS dependency
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 2 Feb 2016 15:31:31 +0000 (16:31 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 6 Feb 2016 10:16:00 +0000 (11:16 +0100)
The msgpack source code indeed checks for the 4 bytes __sync built-in,
so this commit switches the package from a BR2_ARCH_HAS_ATOMICS
dependency to a BR2_TOOLCHAIN_HAS_SYNC_4 dependency.

python-msgpack, a reverse dependency of msgpack, is changed in the
same way.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
package/msgpack/Config.in
package/python-msgpack/Config.in

index a57a3784ec2031f3cb56251e75aa72ec57d98ab5..b8e82138fa15bb861a0a45f15ef3df12cdf4df97 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_MSGPACK
        bool "msgpack"
        depends on BR2_INSTALL_LIBSTDCPP
-       depends on BR2_ARCH_HAS_ATOMICS
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        help
          MessagePack is an efficient binary serialization format.
 
@@ -11,5 +11,5 @@ config BR2_PACKAGE_MSGPACK
          http://msgpack.org/
 
 comment "msgpack needs a toolchain w/ C++"
-       depends on BR2_ARCH_HAS_ATOMICS
        depends on !BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
index e74083509053b5b1b00bdeb0c6d0af8375e87dd4..7206c22710a965b973eb81ac61a37b72536f41f1 100644 (file)
@@ -2,7 +2,7 @@ config BR2_PACKAGE_PYTHON_MSGPACK
        bool "python-msgpack"
        select BR2_PACKAGE_MSGPACK
        depends on BR2_INSTALL_LIBSTDCPP # msgpack
-       depends on BR2_ARCH_HAS_ATOMICS # msgpack
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4 # msgpack
        help
          MessagePack (http://msgpack.org/) is a fast, compact binary
          serialization format, suitable for similar data to JSON.
@@ -12,6 +12,6 @@ config BR2_PACKAGE_PYTHON_MSGPACK
          https://pypi.python.org/pypi/msgpack-python/
 
 comment "python-msgpack needs a toolchain w/ C++"
-       depends on BR2_ARCH_HAS_ATOMICS
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on BR2_PACKAGE_PYTHON
        depends on !BR2_INSTALL_LIBSTDCPP