summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2012-03-01 16:29:07 -0500
committerJosh Blum <josh@joshknows.com>2012-03-13 17:31:43 -0700
commitabab58f5404fcd769bf72fd0f486323659e9c087 (patch)
tree381c706707614730df2c1d546eead7118193b044 /host
parent927cf2397a9ddce4a6b2ec460104d83f33231dce (diff)
downloaduhd-abab58f5404fcd769bf72fd0f486323659e9c087.tar.gz
uhd-abab58f5404fcd769bf72fd0f486323659e9c087.tar.bz2
uhd-abab58f5404fcd769bf72fd0f486323659e9c087.zip
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 <philip@opensdr.com>
Diffstat (limited to 'host')
-rw-r--r--host/cmake/Toolchains/arm_cortex_a8_cross.cmake20
1 files changed, 20 insertions, 0 deletions
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 )