diff options
author | Josh Blum <josh@joshknows.com> | 2011-10-27 09:36:56 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-10-27 09:36:56 -0700 |
commit | fb60156c3248a03c6c8c7155aa73976689b2d892 (patch) | |
tree | c23754f5c966ec1983f66b69892f7a1988384ef7 /host/cmake | |
parent | 25833f784fc4c063845b50fa069e08941d489226 (diff) | |
download | uhd-fb60156c3248a03c6c8c7155aa73976689b2d892.tar.gz uhd-fb60156c3248a03c6c8c7155aa73976689b2d892.tar.bz2 uhd-fb60156c3248a03c6c8c7155aa73976689b2d892.zip |
uhd: added toolchain file for native arm neon build
Diffstat (limited to 'host/cmake')
-rw-r--r-- | host/cmake/Toolchains/arm_cortex_a8_native.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/cmake/Toolchains/arm_cortex_a8_native.cmake b/host/cmake/Toolchains/arm_cortex_a8_native.cmake new file mode 100644 index 000000000..7dbb80049 --- /dev/null +++ b/host/cmake/Toolchains/arm_cortex_a8_native.cmake @@ -0,0 +1,8 @@ +######################################################################## +# Toolchain file for building native on a ARM Cortex A8 w/ NEON +# Usage: cmake -DCMAKE_TOOLCHAIN_FILE=<this file> <source directory> +######################################################################## +set(CMAKE_CXX_COMPILER g++) +set(CMAKE_C_COMPILER gcc) +set(CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp") +set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS}) #same flags for C sources |