Commit 449f31ab authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #251 from bovi/add-mips-cmake

Add first sample for MIPS cross compile
parents 707db0b4 f75c2770
# 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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment