aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-09-27 17:56:11 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:39:50 +0200
commitbee622ba59ae933f219a2efba1c3f1a1d53a9783 (patch)
tree7a955fd470ecb425b25c838383bd50d45af50cf5 /cmake
parentab9cf16f48fd996e77117bd48eddecd869397ffa (diff)
downloadsocket_wrapper-bee622ba59ae933f219a2efba1c3f1a1d53a9783.tar.gz
socket_wrapper-bee622ba59ae933f219a2efba1c3f1a1d53a9783.tar.xz
socket_wrapper-bee622ba59ae933f219a2efba1c3f1a1d53a9783.zip
gitlab-ci: Add runners and toolchain files
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Toolchain-Debian-mips.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/Toolchain-Debian-mips.cmake b/cmake/Toolchain-Debian-mips.cmake
new file mode 100644
index 0000000..d9c9d9f
--- /dev/null
+++ b/cmake/Toolchain-Debian-mips.cmake
@@ -0,0 +1,21 @@
+include(CMakeForceCompiler)
+
+set(TOOLCHAIN_PREFIX mips-linux-gnu)
+
+set(CMAKE_SYSTEM_NAME Linux)
+set(CMAKE_SYSTEM_VERSION 1)
+set(CMAKE_SYSTEM_PROCESSOR mips)
+
+# This is the location of the mips toolchain
+set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
+set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
+
+# This is the file system root of the target
+set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
+
+# Search for programs in the build host directories
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+
+# For libraries and headers in the target directories
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)