diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-06-11 00:27:38 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-06-11 00:27:38 +0800 |
| commit | 8607002f86110c696f301ee3eaaccf58b030dfdf (patch) | |
| tree | a901f38d2b19200147c1fc934080abbb68c9688f /cmake/Toolchain-OpenWRT-ANY.cmake | |
| parent | 85901e05469d644e2bb63700fbd1bbc80934dc0d (diff) | |
| download | mruby-8607002f86110c696f301ee3eaaccf58b030dfdf.tar.gz mruby-8607002f86110c696f301ee3eaaccf58b030dfdf.zip | |
cmake Toolchain file for any OpenWRT Target (x86, mips, AVR32, ARM, etc.)
Diffstat (limited to 'cmake/Toolchain-OpenWRT-ANY.cmake')
| -rw-r--r-- | cmake/Toolchain-OpenWRT-ANY.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/Toolchain-OpenWRT-ANY.cmake b/cmake/Toolchain-OpenWRT-ANY.cmake new file mode 100644 index 000000000..888c51ebe --- /dev/null +++ b/cmake/Toolchain-OpenWRT-ANY.cmake @@ -0,0 +1,13 @@ +# Toolchain file for building with OpenWRT Toolchain for ANY OpenWRT Target. +# Following prequisition are necessary: +# - latest cmake version +# - mruby OpenWRT Package file (not yet in distribution) + +# Switch to Cross Compile by setting the system name +SET(CMAKE_SYSTEM_NAME Linux) + +# We show CMAKE the compiler, the rest will be guessed by the Toolchain +SET(CMAKE_C_COMPILER "$ENV{OPENWRT_TOOLCHAIN}/bin/$ENV{OPENWRT_TARGETCC}") + +# We define an own release flag so that we can adapt the optimal C_FLAGS +SET(CMAKE_C_FLAGS_OPENWRT "$ENV{OPENWRT_TARGETFLAGS}") |
