summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-06-08 19:34:37 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-06-08 19:34:37 -0700
commit449f31ab9c012f6fdd199e1ad4dae6b6fb7781fe (patch)
tree798e91bd0483cc5b69c7416831eb2afea0530646 /cmake
parent707db0b4f397ddb3be3c5c8849cdb2c00fa8bbfe (diff)
parentf75c277058341a5432cb3de5beda16cb78faafc6 (diff)
downloadmruby-449f31ab9c012f6fdd199e1ad4dae6b6fb7781fe.tar.gz
mruby-449f31ab9c012f6fdd199e1ad4dae6b6fb7781fe.zip
Merge pull request #251 from bovi/add-mips-cmake
Add first sample for MIPS cross compile
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Toolchain-Linux-openwrt-mips.cmake.sample10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/Toolchain-Linux-openwrt-mips.cmake.sample b/cmake/Toolchain-Linux-openwrt-mips.cmake.sample
new file mode 100644
index 000000000..73ec9874b
--- /dev/null
+++ b/cmake/Toolchain-Linux-openwrt-mips.cmake.sample
@@ -0,0 +1,10 @@
+# Toolchain file for building with OpenWRT Toolchain for MIPS.
+# This is a preliminary version for mips outside of the buildroot-ng.
+# The next version should be target independent.
+# Further improvements:
+# - use ENV variables in OpenWRT toolchain (like HOSTCC, TARGET_CC)
+# - set flags properly for host and target
+
+set(CMAKE_SYSTEM_NAME Linux)
+set(TOOLCHAIN_PREFIX mips-openwrt-linux)
+set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)