Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
1b3c2a32
Commit
1b3c2a32
authored
Oct 23, 2019
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use develop USRP device for lte
parent
6b1cabae
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1465 additions
and
10 deletions
+1465
-10
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+10
-5
cmake_targets/build_oai
cmake_targets/build_oai
+7
-5
targets/ARCH/USRP/USERSPACE/LIB/usrp_liblte.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_liblte.cpp
+1448
-0
No files found.
cmake_targets/CMakeLists.txt
View file @
1b3c2a32
...
@@ -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
...
...
cmake_targets/build_oai
View file @
1b3c2a32
...
@@ -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
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_liblte.cpp
0 → 100644
View file @
1b3c2a32
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment