diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-13 15:06:46 -0800 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-13 15:06:46 -0800 |
commit | d80a5b6bea659607b16cd3ece8d248dd8cd788ee (patch) | |
tree | d3f5a27108fd987e60e7bd83098cd2eb8b0c7ec4 /host/cmake/Toolchains | |
parent | 03a1828944aebea34114634f885fdd46471cd211 (diff) | |
parent | 92b0b7ab6b8fcc795612054a07064351aa969e3a (diff) | |
download | uhd-d80a5b6bea659607b16cd3ece8d248dd8cd788ee.tar.gz uhd-d80a5b6bea659607b16cd3ece8d248dd8cd788ee.tar.bz2 uhd-d80a5b6bea659607b16cd3ece8d248dd8cd788ee.zip |
Merge branch 'master' into next003_006_002_rc2
Diffstat (limited to 'host/cmake/Toolchains')
-rw-r--r-- | host/cmake/Toolchains/armv7athf_native.cmake | 8 | ||||
-rw-r--r-- | host/cmake/Toolchains/oe-sdk_cross.cmake | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/host/cmake/Toolchains/armv7athf_native.cmake b/host/cmake/Toolchains/armv7athf_native.cmake new file mode 100644 index 000000000..d9d1e2598 --- /dev/null +++ b/host/cmake/Toolchains/armv7athf_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 -mthumb -mfpu=neon -mfloat-abi=hard" CACHE STRING "" FORCE) +set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE) #same flags for C sources diff --git a/host/cmake/Toolchains/oe-sdk_cross.cmake b/host/cmake/Toolchains/oe-sdk_cross.cmake new file mode 100644 index 000000000..ea77815c9 --- /dev/null +++ b/host/cmake/Toolchains/oe-sdk_cross.cmake @@ -0,0 +1,13 @@ +set( CMAKE_SYSTEM_NAME Linux ) +#set( CMAKE_C_COMPILER $ENV{CC} ) +#set( CMAKE_CXX_COMPILER $ENV{CXX} ) +set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE ) +set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE ) #same flags for C sources +set( CMAKE_LDFLAGS_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE ) #same flags for C sources +set( CMAKE_LIBRARY_PATH ${OECORE_TARGET_SYSROOT}/usr/lib ) +set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_NATIVE_SYSROOT} $ENV{OECORE_TARGET_SYSROOT} ) +set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER ) +set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) +set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) +set ( ORC_INCLUDE_DIRS $ENV{OECORE_TARGET_SYSROOT}/usr/include/orc-0.4 ) +set ( ORC_LIBRARY_DIRS $ENV{OECORE_TARGET_SYSROOT}/usr/lib ) |