summaryrefslogtreecommitdiff
path: root/package/mosh
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-04 23:04:13 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-04 23:04:13 +0100
commitabdc56006bf253bec393066f96f69f0a6246b896 (patch)
treecea5c748b470589dd5cd3706d79972f778159a61 /package/mosh
parent95795cf6c8009f47df331ed7d9daab2f5f422168 (diff)
protobuf: introduce BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
The architecture dependencies of protobuf are going to change, and they are already duplicated between protobuf, ola and mosh. In order to factorize the expression of those dependencies, this commit introduces BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS. Note that we include in this hidden Config.in option both the target architecture dependency and the host architecture dependency. Finally, this commit also fixes a real mistake in the mosh Config.in file, where the condition on the architecture dependency for the Config.in comment was inverted: we only want to show the Config.in comment when we are on supported architectures. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mosh')
-rw-r--r--package/mosh/Config.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/package/mosh/Config.in b/package/mosh/Config.in
index 868b9ffcb..26f723398 100644
--- a/package/mosh/Config.in
+++ b/package/mosh/Config.in
@@ -1,15 +1,14 @@
comment "mosh needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
|| BR2_STATIC_LIBS
- depends on !(BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64)
+ depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
config BR2_PACKAGE_MOSH
bool "mosh"
- depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 # protobuf
+ depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
depends on BR2_INSTALL_LIBSTDCPP # protobuf
depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf
depends on !BR2_STATIC_LIBS # protobuf
- depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" # protobuf
select BR2_PACKAGE_PROTOBUF
select BR2_PACKAGE_NCURSES
select BR2_PACKAGE_OPENSSL