summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
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 )