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
canghaiwuhen
OpenXG-RAN
Commits
5b5a3949
Commit
5b5a3949
authored
Dec 18, 2015
by
aikaterini.trilyraki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor improvement; device and trasport libraries are included from targets/bin
parent
60f05e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
cmake_targets/build_oai
cmake_targets/build_oai
+24
-19
No files found.
cmake_targets/build_oai
View file @
5b5a3949
...
...
@@ -275,7 +275,17 @@ function main() {
fi
fi
if
[
"
$oaisim
"
=
"1"
]
;
then
# if [ "$HW" == "ETHERNET" ] ; then # to ask
# HW="NONE"
#fi
if
[
$HW
!=
"EXMIMO"
-a
$HW
!=
"OAI_USRP"
-a
$HW
!=
"OAI_BLADERF"
]
;
then
HW
=
"NO_VALUE"
fi
if
[
"
$XFORMS
"
==
"True"
]
;
then
PRINT_STATS
=
"True"
fi
fi
############################################
# setting and printing OAI envs, we should check here
############################################
...
...
@@ -324,19 +334,9 @@ function main() {
check_install_additional_tools
fi
if
[
"
$oaisim
"
=
"1"
]
;
then
# if [ "$HW" == "ETHERNET" ] ; then # to ask
# HW="NONE"
#fi
if
[
$HW
!=
"EXMIMO"
-a
$HW
!=
"OAI_USRP"
-a
$HW
!=
"OAI_BLADERF"
]
;
then
HW
=
"NO_VALUE"
fi
if
[
"
$XFORMS
"
==
"True"
]
;
then
PRINT_STATS
=
"True"
fi
fi
echo_info
"3. building the compilation directives ..."
echo_info
"3. building the compilation directives ..."
DIR
=
$OPENAIR_DIR
/cmake_targets
if
[
"
$NOS1
"
=
"1"
]
;
then
...
...
@@ -364,7 +364,6 @@ function main() {
echo
"set ( ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( RF_BOARD
\"
${
HW
}
\"
)"
>>
$cmake_file
echo
"set ( TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set ( SHRLIBDEV
${
SHRLIBDEV
}
)"
>>
$cmake_file
echo
"set(PACKAGE_NAME
\"
${
lte_exec
}
\"
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$lte_build_dir
/build
...
...
@@ -577,17 +576,16 @@ function main() {
echo_info
"Compiling
$rrh_exec
..."
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/rrh_gw/build
mkdir
-p
$DIR
/
$rrh_build_dir
/build
cmake_file
=
$DIR
/
$rrh_build_dir
/CMakeLists.txt
echo
"cmake_minimum_required(VERSION 2.8)"
>
$cmake_file
echo
"set(ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set(ENABLE_ITTI False )"
>>
$cmake_file
echo
"set(RF_BOARD
\"
${
HW
}
\"
)"
>>
$cmake_file
echo
"set(TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set(SHRLIBDEV
${
SHRLIBDEV
}
)"
>>
$cmake_file
echo
'set(PACKAGE_NAME "\"rrh_gw\"")'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/rrh_gw/build
mkdir
-p
$DIR
/
$rrh_build_dir
/build
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$rrh_build_dir
/build
cmake ..
compilations
\
...
...
@@ -608,6 +606,7 @@ function main() {
# build RF device libraries (currently EXMIMO is not complied with the rest of HW targets)
if
[
"
$HW
"
!=
"NO_VALUE"
]
;
then
rm
-f
liboai_device.so
rm
-f
$dbin
/liboai_device.so
if
[
-d
"/usr/include/uhd"
]
;
then
compilations
\
$build_dir
oai_usrpdevif
\
...
...
@@ -622,15 +621,18 @@ function main() {
#add exmimo compilation
# link liboai_device.so with the selected RF device library
if
[
"
$HW
"
==
"EXMIMO"
]
;
then
ln
-s
liboai_exmimodevif.so liboai_device.so
ln
-s
$dbin
/liboai_exmimodevif.so.
$REL
$dbin
/liboai_device.so
echo_info
"liboai_device.so is linked to EXMIMO device library"
elif
[
"
$HW
"
==
"OAI_USRP"
]
;
then
ln
-s
liboai_usrpdevif.so liboai_device.so
ln
-s
$dbin
/liboai_usrpdevif.so.
$REL
$dbin
/liboai_device.so
echo_info
"liboai_device.so is linked to USRP device library"
elif
[
"
$HW
"
==
"OAI_BLADERF"
]
;
then
ln
-s
liboai_bladerfdevif.so liboai_device.so
ln
-s
$dbin
/liboai_bladerfdevif.so.
$REL
$dbin
/liboai_device.so
echo_info
"liboai_device.so is linked to BLADERF device library"
else
echo_info
"liboai_device.so is not linked to any device library"
...
...
@@ -640,11 +642,14 @@ function main() {
# build trasport protocol libraries (currently only ETHERNET is available)
if
[
"
$TP
"
!=
"NO_VALUE"
]
;
then
rm
-f
liboai_transpro.so
rm
-f
$dbin
/liboai_transpro.so
compilations
\
$build_dir
oai_eth_transpro
\
liboai_eth_transpro.so
$dbin
/liboai_eth_transpro.so.
$REL
if
[
"
$TP
"
==
"ETHERNET"
]
;
then
ln
-s
liboai_eth_transpro.so liboai_transpro.so
ln
-s
$dbin
/liboai_eth_transpro.so.
$REL
$dbin
/liboai_transpro.so
echo_info
"liboai_transpro.so is linked with ETHERNET library"
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