aboutsummaryrefslogtreecommitdiff
path: root/package/cmake
diff options
context:
space:
mode:
authorGravatar Samuel Martin <s.martin49@gmail.com>2015-03-17 11:20:23 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-17 13:02:05 +0100
commit39614eea8e73905aee26bcb2d891580c762236f1 (patch)
treece40b83215293a381c300b3380febc34ebf6097b /package/cmake
parent2d05afa42792193fa392c9f5417e8effc73d1e38 (diff)
downloadbuildroot-39614eea8e73905aee26bcb2d891580c762236f1.tar.gz
buildroot-39614eea8e73905aee26bcb2d891580c762236f1.tar.bz2
package/cmake: disable on unsupported architectures
Supported architectures are listed at [1]. Fixes: http://autobuild.buildroot.net/results/de9/de9021fdc63600536ffa91e4b8718584e3e5702c/ http://autobuild.buildroot.net/results/0f1/0f1afc62e91ab798fa65685af3dea3caac663f11/ [1] https://github.com/Kitware/CMake/blob/master/Utilities/KWIML/ABI.h.in#L339 [Thomas: rewrap list of supported architectures.] Signed-off-by: Samuel Martin <s.martin49@gmail.com> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/cmake')
-rw-r--r--package/cmake/Config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/cmake/Config.in b/package/cmake/Config.in
index 0b5bba9754..e06d4b7bcf 100644
--- a/package/cmake/Config.in
+++ b/package/cmake/Config.in
@@ -1,3 +1,12 @@
+config BR2_PACKAGE_CMAKE_ARCH_SUPPORTS
+ bool
+ default y
+ depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
+ BR2_m68k || BR2_mips || BR2_mips64 || \
+ BR2_mipsel || BR2_mips64el || BR2_powerpc || \
+ BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
+ BR2_i386 || BR2_x86_64
+
config BR2_PACKAGE_CMAKE
bool
@@ -10,6 +19,7 @@ config BR2_PACKAGE_CMAKE_CTEST
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_BZIP2
select BR2_PACKAGE_XZ
+ depends on BR2_PACKAGE_CMAKE_ARCH_SUPPORTS
depends on BR2_USE_WCHAR # libarchive
depends on BR2_INSTALL_LIBSTDCPP
help
@@ -22,4 +32,5 @@ config BR2_PACKAGE_CMAKE_CTEST
http://www.cmake.org/
comment "ctest needs a toolchain w/ C++, wchar"
+ depends on BR2_PACKAGE_CMAKE_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR