summaryrefslogtreecommitdiff
path: root/package/libatomic_ops
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-15 23:26:05 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-15 23:46:34 +0200
commitf4897a9eb3a09a7363cba885b6b9289ae08a7994 (patch)
treee8e96f1e6fb6bc3366f50b5171470ffe534acde1 /package/libatomic_ops
parent537ec1c3c88e4fb9f5ae9f9d2f1667a7b1ce2a60 (diff)
libatomic_ops: introduce a BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS hidden option
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>
Diffstat (limited to 'package/libatomic_ops')
-rw-r--r--package/libatomic_ops/Config.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/libatomic_ops/Config.in b/package/libatomic_ops/Config.in
index 0d05eea00..f0a55a49d 100644
--- a/package/libatomic_ops/Config.in
+++ b/package/libatomic_ops/Config.in
@@ -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