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
lizhongxiao
OpenXG-RAN
Commits
52cb72c0
Commit
52cb72c0
authored
Jun 18, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build_oai: allow to only build radio/transport libraries
parent
47da0a02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
58 deletions
+43
-58
cmake_targets/build_oai
cmake_targets/build_oai
+43
-58
No files found.
cmake_targets/build_oai
View file @
52cb72c0
...
...
@@ -569,66 +569,51 @@ function main() {
####################################################
# Build RF device and transport protocol libraries #
####################################################
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$gNB
"
=
"1"
-o
"
$RU
"
=
"1"
-o
"
$nrUE
"
=
"1"
]
;
then
if
[
"
$HW
"
!=
"None"
]
;
then
rm
-f
liboai_device.so
# build RF device libraries
if
[
"
$HW
"
!=
"None"
]
;
then
rm
-f
liboai_device.so
if
[
"
$HW
"
==
"OAI_USRP"
]
;
then
compilations
$BUILD_DIR
oai_usrpdevif.txt oai_usrpdevif
ln
-sf
liboai_usrpdevif.so liboai_device.so
echo_info
"liboai_device.so is linked to USRP device library"
elif
[
"
$HW
"
==
"OAI_BLADERF"
]
;
then
if
[
-f
"/usr/include/libbladeRF.h"
]
;
then
compilations
$BUILD_DIR
oai_bladerfdevif.txt oai_bladerfdevif
fi
ln
-sf
liboai_bladerfdevif.so liboai_device.so
echo_info
"liboai_device.so is linked to BLADERF device library"
elif
[
"
$HW
"
==
"OAI_LMSSDR"
]
;
then
# if [ -f "/usr/include/libbladeRF.h" ] ; then
compilations
$BUILD_DIR
oai_lmssdrdevif.txt oai_lmssdrdevif
# fi
ln
-sf
liboai_lmssdrdevif.so liboai_device.so
echo_info
"liboai_device.so is linked to LMSSDR device library"
elif
[
"
$HW
"
==
"OAI_IRIS"
]
;
then
compilations
$BUILD_DIR
oai_irisdevif.txt oai_irisdevif
ln
-s
liboai_irisdevif.so liboai_device.so
echo_info
"liboai_device.so is linked to IRIS device library"
elif
[
"
$HW
"
==
"OAI_AW2SORI"
]
;
then
compilations
$BUILD_DIR
aw2sori_transpro.txt aw2sori_transpro
ln
-sf
libaw2sori_transpro.so libthirdparty_transpro.so
echo_info
"build libthirdparty_transpro.so for AW2SORI fronthaul"
else
echo_info
"liboai_device.so is not linked to any device library"
fi
fi
if
[
"
$HW
"
==
"OAI_USRP"
]
;
then
compilations
$BUILD_DIR
oai_usrpdevif.txt oai_usrpdevif
ln
-sf
liboai_usrpdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_usrpdevif.so"
elif
[
"
$HW
"
==
"OAI_BLADERF"
]
;
then
compilations
$BUILD_DIR
oai_bladerfdevif.txt oai_bladerfdevif
ln
-sf
liboai_bladerfdevif.so liboai_device.so
echo
"liboai_device.so symlinks liboai_bladerfdevif.so"
elif
[
"
$HW
"
==
"OAI_LMSSDR"
]
;
then
compilations
$BUILD_DIR
oai_lmssdrdevif.txt oai_lmssdrdevif
ln
-sf
liboai_lmssdrdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_lmssdrdevif.so"
elif
[
"
$HW
"
==
"OAI_IRIS"
]
;
then
compilations
$BUILD_DIR
oai_irisdevif.txt oai_irisdevif
ln
-s
liboai_irisdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_irisdevif.so"
elif
[
"
$HW
"
==
"OAI_AW2SORI"
]
;
then
compilations
$BUILD_DIR
aw2sori_transpro.txt aw2sori_transpro
ln
-sf
libaw2sori_transpro.so libthirdparty_transpro.so
echo
"libthirdparty_transpro.so symlinks to libaw2sori_transpro.so"
else
echo_fatal
"illegal HW option
$HW
"
fi
fi
#build transport protocol libraries (currently only ETHERNET is available)
if
[
"
$SKIP_SHARED_LIB_FLAG
"
=
"False"
]
;
then
echo_info
"Building transport protocol libraries"
rm
-f
liboai_transpro.so
if
[
"
$TP
"
==
"Ethernet"
]
;
then
compilations
$BUILD_DIR
oai_eth_transpro.txt oai_eth_transpro
ln
-sf
liboai_eth_transpro.so liboai_transpro.so
echo_info
"liboai_transpro.so is linked to ETHERNET transport"
fi
if
[
"
$TP
"
==
"benetel4g"
]
;
then
compilations
$BUILD_DIR
benetel_4g.txt benetel4g
ln
-sf
libbenetel_4g.so liboai_transpro.so
echo_info
"liboai_transpro.so is linked to BENETEL4G transport"
fi
if
[
"
$TP
"
==
"benetel5g"
]
;
then
compilations
$BUILD_DIR
benetel_5g.txt benetel_5g
ln
-sf
libbenetel_5g.so liboai_transpro.so
echo_info
"liboai_transpro.so is linked to BENETEL4G transport"
fi
fi
if
[
"
$TP
"
!=
"None"
]
;
then
rm
-f
liboai_transpro.so
if
[
"
$TP
"
==
"Ethernet"
]
;
then
compilations
$BUILD_DIR
oai_eth_transpro.txt oai_eth_transpro
ln
-sf
liboai_eth_transpro.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to liboai_eth_transpro.so"
elif
[
"
$TP
"
==
"benetel4g"
]
;
then
compilations
$BUILD_DIR
benetel_4g.txt benetel4g
ln
-sf
libbenetel_4g.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to libbenetel_4g.so"
elif
[
"
$TP
"
==
"benetel5g"
]
;
then
compilations
$BUILD_DIR
benetel_5g.txt benetel_5g
ln
-sf
libbenetel_5g.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to libbenetel_5g.so"
else
echo_fatal
"illegal TP option
$TP
"
fi
fi
###################
...
...
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