Commit 095a6c09 authored by Joseph Noir's avatar Joseph Noir

Add new arguments for cross compiling

A toolchain file can be used to specify compiler, flags and system for
cross compiling. Since the include of the ForceCompiler CMake module
did not work, we used the commands specified in the module directly.
Among other things, this disables the cmake compiler check.

The CMake file implements an additional compiler check to check for c++11,
which does not work with the arm-none-eabi cross compiler, a new flag
was added to skip this check.
parent 27fbafa6
...@@ -54,6 +54,8 @@ Usage: $0 [OPTION]... [VAR=VALUE]... ...@@ -54,6 +54,8 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
- uses RIOT thread impl - uses RIOT thread impl
- build without memory management - build without memory management
- static build only - static build only
- no examples and unit tests
--with-toolchain-file=FILE use the given toolchain file
Installation Directories: Installation Directories:
--prefix=PREFIX installation directory [/usr/local] --prefix=PREFIX installation directory [/usr/local]
...@@ -238,6 +240,11 @@ while [ $# -ne 0 ]; do ...@@ -238,6 +240,11 @@ while [ $# -ne 0 ]; do
append_cache_entry CAF_NO_MEM_MANAGEMENT BOOL yes append_cache_entry CAF_NO_MEM_MANAGEMENT BOOL yes
append_cache_entry CAF_BUILD_STATIC_ONLY STRING yes append_cache_entry CAF_BUILD_STATIC_ONLY STRING yes
append_cache_entry RIOT_BASE_DIR STRING $optarg append_cache_entry RIOT_BASE_DIR STRING $optarg
append_cache_entry CAF_NO_EXAMPLES STRING yes
append_cache_entry CAF_NO_UNIT_TESTS STRING yes
;;
--with-toolchain-file=*)
append_cache_entry CMAKE_TOOLCHAIN_FILE FILE $optarg
;; ;;
--no-auto-libc++) --no-auto-libc++)
append_cache_entry CAF_NO_AUTO_LIBCPP BOOL yes append_cache_entry CAF_NO_AUTO_LIBCPP BOOL yes
......
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