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
wangwenhui
OpenXG-RAN
Commits
6c823617
Commit
6c823617
authored
Feb 10, 2019
by
laurent
Committed by
frtabu
Feb 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix for -w SIMU
parent
8a8a4792
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
547 additions
and
562 deletions
+547
-562
cmake_targets/build_oai
cmake_targets/build_oai
+547
-562
No files found.
cmake_targets/build_oai
View file @
6c823617
...
@@ -46,8 +46,7 @@ UE_EXPANSION="False"
...
@@ -46,8 +46,7 @@ UE_EXPANSION="False"
UESIM_EXPANSION
=
"False"
UESIM_EXPANSION
=
"False"
PRINT_STATS
=
"False"
PRINT_STATS
=
"False"
VCD_TIMING
=
"False"
VCD_TIMING
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
""
FORCE_DEADLINE_SCHEDULER_FLAG_USER
=
""
CPU_AFFINITY_FLAG_USER
=
"False"
#Only valid when lowlatecy flag is set to False
CPU_AFFINITY_FLAG_USER
=
"False"
#Only valid when lowlatecy flag is set to False
REL
=
"Rel14"
REL
=
"Rel14"
HW
=
"None"
HW
=
"None"
...
@@ -179,8 +178,6 @@ Usage (Regular):
...
@@ -179,8 +178,6 @@ Usage (Regular):
function
main
()
{
function
main
()
{
until
[
-z
"
$1
"
]
until
[
-z
"
$1
"
]
do
do
case
"
$1
"
in
case
"
$1
"
in
...
@@ -189,7 +186,6 @@ function main() {
...
@@ -189,7 +186,6 @@ function main() {
shift
;;
shift
;;
-C
|
--clean-all
)
-C
|
--clean-all
)
CLEAN_ALL
=
1
CLEAN_ALL
=
1
shift
;;
--clean-kernel
)
--clean-kernel
)
clean_kernel
clean_kernel
echo_info
"Erased iptables config and removed modules from kernel"
echo_info
"Erased iptables config and removed modules from kernel"
...
@@ -223,6 +219,10 @@ function main() {
...
@@ -223,6 +219,10 @@ function main() {
UE_EXPANSION
=
"True"
UE_EXPANSION
=
"True"
echo_info
"Will compile with UE_EXPANSION"
echo_info
"Will compile with UE_EXPANSION"
shift
;;
shift
;;
--musim
)
UESIM_EXPANSION
=
"True"
echo_info
"Will compile with UESIM_EXPANSION"
shift
;;
--UE-conf-nvram
)
--UE-conf-nvram
)
conf_nvram_path
=
$(
readlink
-f
$2
)
conf_nvram_path
=
$(
readlink
-f
$2
)
shift
2
;;
shift
2
;;
...
@@ -306,11 +306,11 @@ function main() {
...
@@ -306,11 +306,11 @@ function main() {
echo_info
"Will build doxygen support"
echo_info
"Will build doxygen support"
shift
;;
shift
;;
--disable-deadline
)
--disable-deadline
)
FORCE_
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
echo_info
"Disabling the usage of deadline scheduler"
echo_info
"Disabling the usage of deadline scheduler"
shift
1
;;
shift
1
;;
--enable-deadline
)
--enable-deadline
)
FORCE_
DEADLINE_SCHEDULER_FLAG_USER
=
"True"
DEADLINE_SCHEDULER_FLAG_USER
=
"True"
echo_info
"Enabling the usage of deadline scheduler"
echo_info
"Enabling the usage of deadline scheduler"
shift
1
;;
shift
1
;;
--disable-cpu-affinity
)
--disable-cpu-affinity
)
...
@@ -403,31 +403,16 @@ function main() {
...
@@ -403,31 +403,16 @@ function main() {
fi
fi
echo_info
"RF HW set to
$HW
"
echo_info
"RF HW set to
$HW
"
#Now we set flags to enable deadline scheduler settings
# If the user doesn't specify the Linux scheduler to use, we set a value
#By default: USRP: disable,
if
[
"
$DEADLINE_SCHEDULER_FLAG_USER
"
=
""
]
;
then
#By default: BLADERF: enable,
case
"
$HW
"
in
#By default: EXMIMO: enable
"EXMIMO"
)
if
[
"
$FORCE_DEADLINE_SCHEDULER_FLAG_USER
"
=
""
]
;
then
if
[
"
$HW
"
=
"EXMIMO"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"True"
DEADLINE_SCHEDULER_FLAG_USER
=
"True"
elif
[
"
$HW
"
=
"ETHERNET"
]
;
then
;;
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
*
)
elif
[
"
$HW
"
=
"OAI_USRP"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"OAI_BLADERF"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"OAI_LMSSDR"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"OAI_IRIS"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"None"
]
;
then
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
else
;;
echo_error
"Unknown HW type
$HW
. Exiting now..."
esac
exit
fi
else
DEADLINE_SCHEDULER_FLAG_USER
=
$FORCE_DEADLINE_SCHEDULER_FLAG_USER
fi
fi
#Disable CPU Affinity for deadline scheduler
#Disable CPU Affinity for deadline scheduler
...
@@ -536,7 +521,7 @@ function main() {
...
@@ -536,7 +521,7 @@ function main() {
echo
"set ( CMAKE_BUILD_TYPE
$CMAKE_BUILD_TYPE
)"
>>
$cmake_file
echo
"set ( CMAKE_BUILD_TYPE
$CMAKE_BUILD_TYPE
)"
>>
$cmake_file
echo
"set ( CFLAGS_PROCESSOR_USER
\"
$CFLAGS_PROCESSOR_USER
\"
)"
>>
$cmake_file
echo
"set ( CFLAGS_PROCESSOR_USER
\"
$CFLAGS_PROCESSOR_USER
\"
)"
>>
$cmake_file
echo
"set ( UE_EXPANSION
$UE_EXPANSION
)"
>>
$cmake_file
echo
"set ( UE_EXPANSION
$UE_EXPANSION
)"
>>
$cmake_file
# echo "set ( PHY_TX_THREAD $UE_EXPANSION )" >> $cmake_file
# echo "set ( PHY_TX_THREAD $UE_EXPANSION )" >> $cmake_file
echo
"set ( PRE_SCD_THREAD
$UE_EXPANSION
)"
>>
$cmake_file
echo
"set ( PRE_SCD_THREAD
$UE_EXPANSION
)"
>>
$cmake_file
echo
"set ( UESIM_EXPANSION
$UESIM_EXPANSION
)"
>>
$cmake_file
echo
"set ( UESIM_EXPANSION
$UESIM_EXPANSION
)"
>>
$cmake_file
echo
"set ( RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set ( RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
...
...
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