From f75c277058341a5432cb3de5beda16cb78faafc6 Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Fri, 8 Jun 2012 22:54:42 +0800 Subject: Add first sample for MIPS cross compile --- cmake/Toolchain-Linux-openwrt-mips.cmake.sample | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cmake/Toolchain-Linux-openwrt-mips.cmake.sample 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) -- cgit v1.2.3