[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/57: cmake and build: fixes for cross-com
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/57: cmake and build: fixes for cross-compiling to enable ControlPort with ICE. |
Date: |
Wed, 21 May 2014 03:10:22 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit 1dad92a931495fb7a300a03594775c9c82c43ec2
Author: Tom Rondeau <address@hidden>
Date: Sun Apr 20 12:29:28 2014 -0400
cmake and build: fixes for cross-compiling to enable ControlPort with ICE.
---
cmake/Modules/FindICE-3.5.cmake | 36 ++++++++++++++++++++++++++----------
cmake/Toolchains/oe-sdk_cross.cmake | 2 +-
gnuradio-runtime/lib/block.cc | 1 +
3 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/cmake/Modules/FindICE-3.5.cmake b/cmake/Modules/FindICE-3.5.cmake
index 7ac53c9..d4421ab 100644
--- a/cmake/Modules/FindICE-3.5.cmake
+++ b/cmake/Modules/FindICE-3.5.cmake
@@ -90,17 +90,33 @@ if(ICE_ICE AND ICE_ICEUTIL)
${ICE_ICEUTIL}
)
- FIND_PROGRAM(ICE_SLICE2CPP slice2cpp
- HINTS ${CMAKE_INSTALL_PREFIX}/bin ${ICE_MANUAL_INSTALL_PATH}/bin/)
- FIND_PROGRAM(ICE_SLICE2PY slice2py
- HINTS ${CMAKE_INSTALL_PREFIX}/bin ${ICE_MANUAL_INSTALL_PATH}/bin/)
-
- # Check that the ICE Python package is installed
- include(GrPython)
- GR_PYTHON_CHECK_MODULE("Ice >= 3.5" Ice "Ice.stringVersion() >= '3.5.0'"
PYTHON_ICE_FOUND)
- if(PYTHON_ICE_FOUND)
+ if(CMAKE_CROSSCOMPILING)
+ # When cross-compiling, we set up the environment/toolchain to put
+ # the right slice2cpp/py in the path. We just need to grab that here.
+ FIND_PROGRAM(ICE_SLICE2CPP slice2cpp)
+ FIND_PROGRAM(ICE_SLICE2PY slice2py)
+
+ # We also don't need to look for Python in this case, so just
+ # force this to TRUE here.
set(ICE_FOUND TRUE)
- endif(PYTHON_ICE_FOUND)
+
+ else(CMAKE_CROSSCOMPILING)
+
+ FIND_PROGRAM(ICE_SLICE2CPP slice2cpp
+ HINTS ${CMAKE_INSTALL_PREFIX}/bin ${ICE_MANUAL_INSTALL_PATH}/bin/)
+ FIND_PROGRAM(ICE_SLICE2PY slice2py
+ HINTS ${CMAKE_INSTALL_PREFIX}/bin ${ICE_MANUAL_INSTALL_PATH}/bin/)
+
+ # Check that the ICE Python package is installed
+ include(GrPython)
+ GR_PYTHON_CHECK_MODULE("Ice >= 3.5" Ice "Ice.stringVersion() >= '3.5.0'"
PYTHON_ICE_FOUND)
+ if(PYTHON_ICE_FOUND)
+ set(ICE_FOUND TRUE)
+ endif(PYTHON_ICE_FOUND)
+ endif(CMAKE_CROSSCOMPILING)
+
+ message(STATUS " SLICE2CPP: ${ICE_SLICE2CPP}")
+ message(STATUS " SLICE2PY: ${ICE_SLICE2PY}")
if(ICE_FOUND)
message(STATUS "Ice-3.5 found")
diff --git a/cmake/Toolchains/oe-sdk_cross.cmake
b/cmake/Toolchains/oe-sdk_cross.cmake
index ea77815..2a01d8f 100644
--- a/cmake/Toolchains/oe-sdk_cross.cmake
+++ b/cmake/Toolchains/oe-sdk_cross.cmake
@@ -5,7 +5,7 @@ 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 $ENV{OECORE_TARGET_SYSROOT}
$ENV{OECORE_NATIVE_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 )
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index 7a1364d..c8cb5f9 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -30,6 +30,7 @@
#include <gnuradio/buffer.h>
#include <gnuradio/prefs.h>
#include <gnuradio/config.h>
+#include <gnuradio/rpcregisterhelpers.h>
#include <stdexcept>
#include <iostream>
- [Commit-gnuradio] [gnuradio] branch master updated (cb0bc7f -> 4750647), git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 01/57: cmake and build: fixes for cross-compiling to enable ControlPort with ICE.,
git <=
- [Commit-gnuradio] [gnuradio] 06/57: Bring codec2 up to the latest version, and add support for all six bit rates., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 12/57: qtgui: removing unused NumberDisplayPlot; the number sink doesn't have a canvas like the other plotters do and so doesn't require this., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 04/57: controlport: allows reset_perf_counters to be called over controlport; gr-perf-monitorx has button to call this., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 07/57: vocoder: add default mode parameter and updated documentation, git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 10/57: controlport: in gr-perf-monitorx, if all work times returned are 0, avoid a divide-by-zero fault., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 11/57: docs: doxygen mangles sections named with the same reference name. ControlPort and Vocoder both used 'using' - renamed for each., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 13/57: volk: adding a rate 1/2, K=7 convolutional decoder volk kernel., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 14/57: block interleave/deinterleave with statefull deinterleave, git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 03/57: controlport: adding a 'toggle' interface for ControlPort., git, 2014/05/20
- [Commit-gnuradio] [gnuradio] 20/57: digital: correlate_access_code_tag d_mask was set improperly when access code len = 64., git, 2014/05/20