libatomic_ops: introduce a BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS hidden option
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Apr 2014 21:26:05 +0000 (23:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Apr 2014 21:46:34 +0000 (23:46 +0200)
In preparation to the introduction of packages that select
libatomic_ops, this commit adds an hidden
BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS option which allows to easily
depend on the architectures that libatomic_ops is available for.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libatomic_ops/Config.in

index 0d05eea000a74f37ff632640e5fa80b36ca48c28..f0a55a49dc4f96f37c9cf8e943056c92ac88a28d 100644 (file)
@@ -1,5 +1,9 @@
+config BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
+       bool
+       default y if BR2_arm || BR2_armeb || BR2_aarch64 || BR2_i386 || BR2_sparc || BR2_powerpc || BR2_x86_64
+
 config BR2_PACKAGE_LIBATOMIC_OPS
        bool "libatomic_ops"
-       depends on BR2_arm || BR2_armeb || BR2_aarch64 || BR2_i386 || BR2_sparc || BR2_powerpc || BR2_x86_64
+       depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
        help
          Atomic operations library