From abab58f5404fcd769bf72fd0f486323659e9c087 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Thu, 1 Mar 2012 16:29:07 -0500 Subject: Add a toolchain file to build cross using e100 toolchain. This appears to build uhd cross using my toolchain. Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm_cortex_a8_cross.cmake \ -DENABLE_E100=ON -DENABLE_USRP_E_UTILS=TRUE ../ It does not detect orc properly. Signed-off-by: Philip Balister --- host/cmake/Toolchains/arm_cortex_a8_cross.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 host/cmake/Toolchains/arm_cortex_a8_cross.cmake (limited to 'host') diff --git a/host/cmake/Toolchains/arm_cortex_a8_cross.cmake b/host/cmake/Toolchains/arm_cortex_a8_cross.cmake new file mode 100644 index 000000000..aee1b7f6c --- /dev/null +++ b/host/cmake/Toolchains/arm_cortex_a8_cross.cmake @@ -0,0 +1,20 @@ +######################################################################## +# Toolchain file for cross building for ARM Cortex A8 w/ NEON +# Usage: cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm_cortex_a8_\ +cross.cmake -DENABLE_E100=ON -DENABLE_USRP_E_UTILS=TRUE -DENABLE_ORC=ON \ +-DCAMKE_INSTALL_PREFIX=./install ../ +######################################################################## +set( CMAKE_SYSTEM_NAME Linux ) +set( CMAKE_CXX_COMPILER arm-angstrom-linux-gnueabi-g++ ) +set( CMAKE_C_COMPILER arm-angstrom-linux-gnueabi-gcc ) +set( CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CACHE STRING "" FORCE ) +set( CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE ) #same flags for C sources + +set( CMAKE_FIND_ROOT_PATH /usr/local/angstrom/arm/ +/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi ) + +#set( BOOST_ROOT ${CMAKE_FIND_ROOT_PATH} ) +#set( BOOST_INCLUDEDIR ${CMAKE_FIND_ROOT_PATH}/usr/include/boost ) +#set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) +set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) +set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) -- cgit v1.2.3