Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
f3fb6e0d
Commit
f3fb6e0d
authored
Dec 11, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6241
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
218d8de3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
60 deletions
+74
-60
targets/build_helper.bash
targets/build_helper.bash
+20
-18
targets/build_oai.bash
targets/build_oai.bash
+54
-42
No files found.
targets/build_helper.bash
View file @
f3fb6e0d
...
@@ -1046,24 +1046,26 @@ set_openair_env(){
...
@@ -1046,24 +1046,26 @@ set_openair_env(){
print_help
(){
print_help
(){
echo_success
"Name : build_oai - install and build OAI"
echo_success
"Name : build_oai - install and build OAI"
echo_success
"Usage: build_oai.bash -a -b -c -d -e
RTAI -m -rREL8 -s -tOAISIM -w
EXMIMO -x"
echo_success
"Usage: build_oai.bash -a -b -c -d -e
RTAI -m -r REL8 -s -t OAISIM -w
EXMIMO -x"
echo_success
"-a | --doxygen : Enable doxygen for documentation (default disabled)"
echo_success
"-a | --doxygen : Enable doxygen for documentation (default disabled)"
echo_success
"-b | --disable-s1
: Disables
S1 interface for eNB (default enabled)"
echo_success
"-b | --disable-s1
: Disable
S1 interface for eNB (default enabled)"
echo_success
"-c | --clean
: Enables
clean OAI build (default disabled)"
echo_success
"-c | --clean
: Enable
clean OAI build (default disabled)"
echo_success
"-C | --config-file : Set the config file local path"
echo_success
"-C | --config-file : Set the config file local path"
echo_success
"-d | --debug : Enables debug mode (default disabled)"
echo_success
"-d | --debug : Enable debug mode (default disabled)"
echo_success
"-e | --realtime : Sets realtime mode: RTAI, NONE (default NONE)"
echo_success
"-D | --disable-check-installed-software : Disable the checking of installed software (default is check)"
echo_success
"-g | --run-with-gdb : Run with gdb"
echo_success
"-e | --realtime : Set realtime mode: RTAI, NONE (default NONE)"
echo_success
"-g | --run-with-gdb : Run the executable built by this script with gdb"
echo_success
"-K | --itti-dump-file : Set the execution events trace file"
echo_success
"-K | --itti-dump-file : Set the execution events trace file"
echo_success
"-l | --build-target : Sets the LTE build target: ENB,EPC,HSS,NONE (default ENB)"
echo_success
"-l | --build-target : Set the LTE build target: ENB,EPC,HSS,NONE (default ENB)"
echo_success
"-m | --build-from-makefile : Enables build from the makefile (default disabled)"
echo_success
"-m | --build-from-makefile : Enable build from the makefile (default disabled)"
echo_success
"-r | --3gpp-release : Sets the release: REL8, REL10 (default REL8)"
echo_success
"-r | --3gpp-release : Set the release: REL8, REL10 (default REL8)"
echo_success
"-s | --check : Enables OAI testing and sanity check (default disabled)"
echo_success
"-R | --run : Run the executable built by this script"
echo_success
"-t | --enb-build-target : Sets the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)"
echo_success
"-s | --check : Enable OAI testing and sanity check (default disabled)"
echo_success
"-t | --enb-build-target : Set the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)"
echo_success
"-V | --vcd : Log vcd events"
echo_success
"-V | --vcd : Log vcd events"
echo_success
"-w | --hardware
: sets
the hardware platform: EXMIMO, USRP (also installs UHD driver), ETHERNET, NONE, (default EXMIMO)"
echo_success
"-w | --hardware
: Set
the hardware platform: EXMIMO, USRP (also installs UHD driver), ETHERNET, NONE, (default EXMIMO)"
echo_success
"-x | --xforms
: enables
xforms (default disabled)"
echo_success
"-x | --xforms
: Enable
xforms (default disabled)"
echo_success
"-z | --defaults
: sets
the default build options"
echo_success
"-z | --defaults
: Set
the default build options"
}
}
###############################
###############################
## echo and family
## echo and family
...
...
targets/build_oai.bash
View file @
f3fb6e0d
...
@@ -59,6 +59,7 @@ declare CONFIG_FILE=" "
...
@@ -59,6 +59,7 @@ declare CONFIG_FILE=" "
declare
CONFIG_FILE_ACCESS_OK
=
0
declare
CONFIG_FILE_ACCESS_OK
=
0
declare
EXE_ARGUMENTS
=
" "
declare
EXE_ARGUMENTS
=
" "
declare
RUN_GDB
=
0
declare
RUN_GDB
=
0
declare
RUN
=
0
declare
DISABLE_CHECK_INSTALLED_SOFTWARE
=
0
declare
DISABLE_CHECK_INSTALLED_SOFTWARE
=
0
declare
OAI_CLEAN
=
0
declare
OAI_CLEAN
=
0
...
@@ -150,6 +151,7 @@ fi
...
@@ -150,6 +151,7 @@ fi
;;
;;
-g
|
--run-with-gdb
)
-g
|
--run-with-gdb
)
DEBUG
=
1
DEBUG
=
1
RUN
=
1
RUN_GDB
=
1
RUN_GDB
=
1
echo
"Running with gdb"
echo
"Running with gdb"
shift
;
shift
;
...
@@ -181,6 +183,11 @@ fi
...
@@ -181,6 +183,11 @@ fi
echo
"setting release to:
$REL
"
echo
"setting release to:
$REL
"
shift
2
;
shift
2
;
;;
;;
-R
|
--run
)
RUN
=
1
echo
"setting run to
$RUN
"
shift
2
;
;;
-s
|
--check
)
-s
|
--check
)
OAI_TEST
=
1
OAI_TEST
=
1
echo
"setting sanity check to:
$OAI_TEST
"
echo
"setting sanity check to:
$OAI_TEST
"
...
@@ -558,7 +565,7 @@ build_epc(){
...
@@ -558,7 +565,7 @@ build_epc(){
if
[
$epc_compiled
-eq
0
]
;
then
if
[
$epc_compiled
-eq
0
]
;
then
echo_success
"target epc built and installed in the bin directory"
echo_success
"target epc built and installed in the bin directory"
echo
"target epc built and installed in the bin directory"
>>
bin/
${
oai_build_date
}
echo
"target epc built and installed in the bin directory"
>>
bin/
${
oai_build_date
}
cp
-f
CONFIG_FILE
$OPENAIR_TARGETS
/bin
cp
-f
$
CONFIG_FILE
$OPENAIR_TARGETS
/bin
cp
-f
$OPENAIRCN_DIR
/objs/UTILS/CONF/s6a.conf
$OPENAIR_TARGETS
/bin/epc_s6a.conf
cp
-f
$OPENAIRCN_DIR
/objs/UTILS/CONF/s6a.conf
$OPENAIR_TARGETS
/bin/epc_s6a.conf
fi
fi
}
}
...
@@ -686,9 +693,10 @@ esac
...
@@ -686,9 +693,10 @@ esac
############################################
############################################
# run
# run
############################################
############################################
echo_info
"11. Running ... To be completed"
if
[
$RUN
-ne
0
]
;
then
cd
$OPENAIR_TARGETS
/bin
echo_info
"11. Running ... To be completed"
case
"
$BUILD_LTE
"
in
cd
$OPENAIR_TARGETS
/bin
case
"
$BUILD_LTE
"
in
'ENB'
)
'ENB'
)
if
[
$TARGET
==
"SOFTMODEM"
]
;
then
if
[
$TARGET
==
"SOFTMODEM"
]
;
then
if
[
$HW
==
"EXMIMO"
]
;
then
if
[
$HW
==
"EXMIMO"
]
;
then
...
@@ -735,6 +743,10 @@ case "$BUILD_LTE" in
...
@@ -735,6 +743,10 @@ case "$BUILD_LTE" in
*
)
*
)
echo_error
"Unknown option
$BUILD_LTE
: do not execute"
echo_error
"Unknown option
$BUILD_LTE
: do not execute"
;;
;;
esac
esac
else
echo_info
"11. No run requested, end of script"
exit
0
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