Commit 1b3c2a32 authored by frtabu's avatar frtabu

Use develop USRP device for lte

parent 6b1cabae
...@@ -527,11 +527,16 @@ set (SHLIB_LOADER_SOURCES ...@@ -527,11 +527,16 @@ set (SHLIB_LOADER_SOURCES
###################################################################### ######################################################################
include_directories("${OPENAIR_TARGETS}/ARCH/USRP/USERSPACE/LIB/") include_directories("${OPENAIR_TARGETS}/ARCH/USRP/USERSPACE/LIB/")
set(HWLIB_USRP_SOURCE file(GLOB USRPSRCVARIANT "${OPENAIR_TARGETS}/ARCH/USRP/USERSPACE/LIB/usrp_lib*.cpp")
${OPENAIR_TARGETS}/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp foreach(USRPSOURCE ${USRPSRCVARIANT})
) # set(HWLIB_USRP_SOURCE
add_library(oai_usrpdevif MODULE ${HWLIB_USRP_SOURCE} ) # ${OPENAIR_TARGETS}/ARCH/USRP/USERSPACE/LIB/usrp_lib${USRPVERSION}.cpp
target_link_libraries(oai_usrpdevif uhd) # )
get_filename_component(USRPVERSION ${USRPSOURCE} NAME_WE)
string(REPLACE "usrp_lib" "" USRPVERSION ${USRPVERSION} )
add_library(oai_usrpdevif${USRPVERSION} MODULE ${USRPSOURCE} )
target_link_libraries(oai_usrpdevif${USRPVERSION} uhd)
endforeach(USRPSOURCE)
include_directories("${OPENAIR_TARGETS}/ARCH/BLADERF/USERSPACE/LIB/") include_directories("${OPENAIR_TARGETS}/ARCH/BLADERF/USERSPACE/LIB/")
set(HWLIB_BLADERF_SOURCE set(HWLIB_BLADERF_SOURCE
......
...@@ -781,7 +781,9 @@ function main() { ...@@ -781,7 +781,9 @@ function main() {
# Build RF device and transport protocol libraries # # Build RF device and transport protocol libraries #
#################################################### ####################################################
if [ "$eNB" = "1" -o "$UE" = "1" -o "$gNB" = "1" -o "$nrUE" = "1" -o "$HWLAT" = "1" ] ; then if [ "$eNB" = "1" -o "$UE" = "1" -o "$gNB" = "1" -o "$nrUE" = "1" -o "$HWLAT" = "1" ] ; then
if [ "$eNB" = "1" -o "$UE" = "1" ] ; then
USRPVERSION="lte"
fi
# build RF device libraries # build RF device libraries
if [ "$HW" != "None" ] ; then if [ "$HW" != "None" ] ; then
rm -f liboai_device.so rm -f liboai_device.so
...@@ -798,11 +800,11 @@ function main() { ...@@ -798,11 +800,11 @@ function main() {
echo_info "liboai_device.so is linked to EXMIMO device library" echo_info "liboai_device.so is linked to EXMIMO device library"
elif [ "$HW" == "OAI_USRP" ] ; then elif [ "$HW" == "OAI_USRP" ] ; then
compilations \ compilations \
$build_dir oai_usrpdevif \ $build_dir oai_usrpdevif$USRPVERSION \
liboai_usrpdevif.so $dbin/liboai_usrpdevif.so.$REL liboai_usrpdevif$USRPVERSION.so $dbin/liboai_usrpdevif$USRPVERSION.so.$REL
ln -sf liboai_usrpdevif.so liboai_device.so ln -sf liboai_usrpdevif$USRPVERSION.so liboai_device.so
ln -sf $dbin/liboai_usrpdevif.so.$REL $dbin/liboai_device.so ln -sf $dbin/liboai_usrpdevif$USRPVERSION.so.$REL $dbin/liboai_device.so
echo_info "liboai_device.so is linked to USRP device library" echo_info "liboai_device.so is linked to USRP device library"
elif [ "$HW" == "OAI_BLADERF" ] ; then elif [ "$HW" == "OAI_BLADERF" ] ; then
if [ -f "/usr/include/libbladeRF.h" ] ; then if [ -f "/usr/include/libbladeRF.h" ] ; then
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment