-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Geontech/redhawk-2-2-1
REDHAWK 2.2.1 Support
- Loading branch information
Showing
124 changed files
with
915 additions
and
816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
|
||
# We have to inherit from pythonnative if we do stuff with the system python. | ||
# autotools-brokensep is the sasme as autotools but our build and src locations are the same since we cannot build away from our src. | ||
|
||
inherit autotools-brokensep pkgconfig redhawk-entity |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# autotools-brokensep is the sasme as autotools but our build and src locations are the same since we cannot build away from our src. | ||
|
||
inherit autotools-brokensep pkgconfig redhawk-entity | ||
|
||
DEPENDS += "omniorb-native omniorbpy-native" | ||
DEPENDS_prepend = "omniorb-native omniorbpy-native " | ||
|
||
NODE_CONFIG_SCRIPT ?= "" | ||
do_nodeconfig_patch () { | ||
if ! [ -z ${NODE_CONFIG_SCRIPT} ] ; then | ||
sed -i "s/tmp_proc_map.get(tmp_uname_p, 'x86')/'${REDHAWK_PROCESSOR}'/g" ${S}/${NODE_CONFIG_SCRIPT} | ||
fi | ||
} | ||
do_patch[postfuncs] += "do_nodeconfig_patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,47 @@ | ||
# This file sets OSSIEHOME and other environment variables used by autotools | ||
inherit redhawk-oeconf redhawk-sysroot pythonnative | ||
|
||
# Needed so that when the python distutils is run it can get the system prefix which, since it's the build system python will be /.../x86_64-linux/usr and replace it with our host systems name. | ||
do_configure_prepend() { | ||
export BUILD_SYS=${BUILD_SYS} | ||
export HOST_SYS=${HOST_SYS} | ||
export STAGING_INCDIR=${STAGING_INCDIR} | ||
export STAGING_LIBDIR=${STAGING_LIBDIR} | ||
export PKG_CONFIG_PATH="${OSSIEHOME_STAGED}/lib/pkgconfig:${PKG_CONFIG_PATH}" | ||
export PYTHONPATH=${OSSIEHOME_STAGED}/lib/python:${PYTHONPATH} | ||
export PATH="${OSSIEHOME_STAGED}/bin:${PATH}" | ||
# Basic set of depends | ||
DEPENDS_prepend = "redhawk redhawk-native " | ||
RDEPENDS_${PN}_prepend = "redhawk " | ||
|
||
# Common patches among device and component as noted by YLB. | ||
# These were individual patch files but were being tacked on to many recipes. | ||
# This is to reduce some clutter. | ||
sed -i 's/xmldir = $(prefix)/xmldir = $(SDR_ROOT)/g' Makefile.am | ||
sed -i 's/bindir = $(prefix)/bindir = $(SDR_ROOT)/g' Makefile.am | ||
sed -i 's/domdir = $(prefix)/domdir = $(SDR_ROOT)/g' Makefile.am | ||
sed -i 's,${prefix}/dom/deps,${SDR_ROOT}/dom/deps,g' configure.ac | ||
} | ||
# Our dynamic do_patch tasks are sensitive to REDHAWK_PROCESSOR and the | ||
# modifications are not repeatable if that variable changes since we're | ||
# post-patching source without patch files. My making unpack sensitive | ||
# to the same variable, changes to it will unpack fresh source so the | ||
# dynamic patches can run according to the change. | ||
do_unpack[vardeps] += "REDHAWK_PROCESSOR" | ||
|
||
do_autotools_patch () { | ||
# Common patches among device and component as noted by YLB. | ||
# These were individual patch files but were being tacked on to many recipes. | ||
# This is to reduce some clutter. | ||
sed -i 's/xmldir = $(prefix)/xmldir = $(SDR_ROOT)/g' ${S}/Makefile.am | ||
sed -i 's/bindir = $(prefix)/bindir = $(SDR_ROOT)/g' ${S}/Makefile.am | ||
sed -i 's/domdir = $(prefix)/domdir = $(SDR_ROOT)/g' ${S}/Makefile.am | ||
sed -i 's,${prefix}/dom/deps,${SDR_ROOT}/dom/deps,g' ${S}/configure.ac | ||
|
||
# Needed so that when the python distutils is run it can get the system prefix. | ||
do_install_prepend() { | ||
export BUILD_SYS=${BUILD_SYS} | ||
export HOST_SYS=${HOST_SYS} | ||
export STAGING_INCDIR=${STAGING_INCDIR} | ||
export STAGING_LIBDIR=${STAGING_LIBDIR} | ||
export PKG_CONFIG_PATH="${OSSIEHOME_STAGED}/lib/pkgconfig:${PKG_CONFIG_PATH}" | ||
export PYTHONPATH=${OSSIEHOME_STAGED}/lib/python:${PYTHONPATH} | ||
# Patch the bindir to match what the spd patch will do to the entrypoint | ||
sed -i -r "s,(bindir = .+?cpp)/,\1-${REDHAWK_PROCESSOR}/,g" ${S}/Makefile.am | ||
|
||
# Patch the relationship to any softpkg dependencies | ||
sed -i -r "s/(^RH_SOFTPKG_CXX.+?\[cpp)(\])(.+$)/\1-${REDHAWK_PROCESSOR}\2\3/g" ${S}/configure.ac | ||
} | ||
do_patch[postfuncs] += "do_autotools_patch" | ||
|
||
NODE_CONFIG_SCRIPT ?= "" | ||
do_dynamic_arch_patch () { | ||
if ! [ -z ${NODE_CONFIG_SCRIPT} ] ; then | ||
sed -i "s/tmp_proc_map.get(tmp_uname_p, 'x86')/'${REDHAWK_PROCESSOR}'/g" ${S}/${NODE_CONFIG_SCRIPT} | ||
fi | ||
find ${S}/../ -name *.spd.xml -exec sed -i "s/<processor name=\"x86_64\"\/>/<processor name=\"${REDHAWK_PROCESSOR}\"\/>/g" {} \; | ||
find ${S}/../ -name *.spd.xml -exec sed -i "s/<processor name=\"x86\"\/>//g" {} \; | ||
do_configure_prepend () { | ||
export BUILD_SYS=${BUILD_SYS} | ||
export HOST_SYS=${HOST_SYS} | ||
export STAGING_INCDIR=${STAGING_INCDIR} | ||
export STAGING_LIBDIR=${STAGING_LIBDIR} | ||
export PKG_CONFIG_PATH="${OSSIEHOME_STAGED}/lib/pkgconfig:${PKG_CONFIG_PATH}" | ||
export PYTHONPATH=${OSSIEHOME_STAGED}/lib/python:${PYTHONPATH} | ||
export PATH="${OSSIEHOME_STAGED}/bin:${PATH}" | ||
} | ||
addtask dynamic_arch_patch after do_patch before do_configure | ||
|
||
do_spd_implementation_patch () { | ||
export PYTHONPATH=${OSSIEHOME_STAGED_NATIVE}/lib/python:${PYTHONPATH} | ||
spd_utility -n "${REDHAWK_PROCESSOR}" "${S}/.." | ||
} | ||
do_spd_implementation_patch[cleandirs] += "${S}/../cpp-${REDHAWK_PROCESSOR}" | ||
addtask spd_implementation_patch after do_compile before do_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PREFERRED_VERSION_omniorb = "4.2.3" | ||
PREFERRED_VERSION_omniorbpy = "4.2.3" | ||
PREFERRED_VERSION_omnievents = "2.8.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Core Framework | ||
PREFERRED_VERSION_redhawk = "2.2.1" | ||
PREFERRED_VERSION_bulkiointerfaces = "2.2.1" | ||
PREFERRED_VERSION_burstiointerfaces = "2.2.1" | ||
PREFERRED_VERSION_frontendinterfaces = "2.4.4" | ||
PREFERRED_VERSION_redhawk-codegen = "2.2.1" | ||
|
||
# Components | ||
PREFERRED_VERSION_rh-agc = "2.0.0" | ||
PREFERRED_VERSION_rh-amfmpmbasebanddemod = "2.0.0" | ||
PREFERRED_VERSION_rh-arbitraryrateresampler = "2.0.1" | ||
PREFERRED_VERSION_rh-autocorrelate = "2.0.0" | ||
PREFERRED_VERSION_rh-fastfilter = "2.0.2" | ||
PREFERRED_VERSION_rh-filereader = "4.1.0" | ||
PREFERRED_VERSION_rh-filewriter = "4.1.0" | ||
PREFERRED_VERSION_rh-hardlimit = "2.0.0" | ||
PREFERRED_VERSION_rh-psd = "2.0.2" | ||
PREFERRED_VERSION_rh-psk-soft = "2.0.1" | ||
PREFERRED_VERSION_rh-rbdsdecoder = "2.0.1" | ||
PREFERRED_VERSION_rh-siggen = "2.0.1" | ||
PREFERRED_VERSION_rh-sinksdds = "1.0.0" | ||
PREFERRED_VERSION_rh-sinksocket = "2.0.1" | ||
PREFERRED_VERSION_rh-sinkvita49 = "3.1.0" | ||
PREFERRED_VERSION_rh-sourcesdds = "1.1.1" | ||
PREFERRED_VERSION_rh-sourcesocket = "2.1.1" | ||
PREFERRED_VERSION_rh-sourcevita49 = "3.1.0" | ||
PREFERRED_VERSION_rh-tunefilterdecimate = "2.0.1" | ||
|
||
# SoftPkgs | ||
PREFERRED_VERSION_rh-bluefilelib = "2.1.0" | ||
PREFERRED_VERSION_rh-dsp = "2.0.0" | ||
PREFERRED_VERSION_rh-fftlib = "2.1.0" | ||
PREFERRED_VERSION_rh-redhawkdevutils = "4.0.1" | ||
PREFERRED_VERSION_rh-vita49 = "5.0.0" | ||
|
||
# Devices | ||
PREFERRED_VERSION_gpp = "2.2.1" | ||
PREFERRED_VERSION_rtl2832u = "2.1.0" | ||
PREFERRED_VERSION_usrp-uhd = "6.1.0" | ||
|
||
# Other deps | ||
PREFERRED_VERSION_rtlsdr = "0.5.2" | ||
PREFERRED_VERSION_xsd = "4.0.0" | ||
require omniorb-4.2.3.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require redhawk-${REDHAWK_VERSION}.inc | ||
|
||
# In several places, the processor architecture may not match any available variable, but | ||
# will need to match the response of uname in the running system. Patches in this layer | ||
# address that need using this variable, which can be overridden as needed. | ||
REDHAWK_PROCESSOR ?= "${HOST_ARCH}" | ||
REDHAWK_PROCESSOR_rpi ?= "armv7l" | ||
REDHAWK_PROCESSOR_zynq ?= "armv7l" | ||
REDHAWK_PROCESSOR_zynqmp ?= "aarch64" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
recipes-components/TuneFilterDecimate/rh-tunefilterdecimate_2.0.1.bb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
classes/redhawk-core-cpp-component.bbclass → ...es-core/components/core-cpp-component.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Inherit the core repo references, etc. | ||
include recipes-core/include/redhawk-repo.inc | ||
require recipes-core/core-framework/core-framework.inc | ||
|
||
# Inherit the base component class | ||
inherit redhawk-component | ||
|
||
# Derive the component's parent directory name which (should) be the installed component name and location in the | ||
# core repo. | ||
COMPONENT_NAME="${@'${THISDIR}'.split('/')[-1]}" | ||
COMPONENT_NAME ?= "${@'${PN}'.split('rh-')[-1]}" | ||
|
||
S = "${WORKDIR}/git/redhawk-components/${COMPONENT_NAME}/cpp" | ||
SRC_URI = "git://github.com/redhawksdr/${COMPONENT_NAME};protocol=https;tag=${PV}-${PR}" | ||
S = "${WORKDIR}/git/cpp" | ||
|
||
FILES_${PN} += "${SDRROOT}/*" | ||
FILES_${PN}-dbg += "${SDRROOT}/dom/components/rh/${COMPONENT_NAME}/cpp/.debug" |
6 changes: 3 additions & 3 deletions
6
recipes-components/agc/rh-agc_2.0.0.bb → recipes-core/components/rh-agc_2.0.0.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
DESCRIPTION = "REDHAWK AGC Component (CPP)" | ||
|
||
inherit redhawk-core-cpp-component | ||
|
||
DEPENDS = "bulkiointerfaces rh-dsp" | ||
RDEPENDS_${PN} = "bulkiointerfaces rh-dsp" | ||
|
||
PR = "r1" | ||
PR = "5" | ||
|
||
require core-cpp-component.inc |
Oops, something went wrong.