Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
a927143e
Commit
a927143e
authored
10 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
For HSS
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6363
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
02b1e908
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
targets/build_oai.bash
+10
-29
10 additions, 29 deletions
targets/build_oai.bash
with
10 additions
and
29 deletions
targets/build_oai.bash
+
10
−
29
View file @
a927143e
...
...
@@ -45,6 +45,8 @@ check_for_root_rights
#######################################
# Default PARAMETERS
######################################
declare
OAI_DB_ADMIN_USER_NAME
=
"root"
declare
OAI_DB_ADMIN_USER_PASSWORD
=
"linux"
#only one could be set at the time
declare
BUILD_LTE
=
""
# ENB, EPC, HSS, NONE
...
...
@@ -622,14 +624,10 @@ build_hss(){
echo_info
"5. compile HSS"
# Bad behaviour of $OAI_CLEAN with ./.lock_oaibuild ...
output
=
$(
compile_hss
$CLEAN_HSS
>>
bin/install_log.txt 2>&1
)
compile_hss
$CLEAN_HSS
hss_compiled
=
$?
if
[
$hss_compiled
-eq
1
]
;
then
echo_error
"Failed in compiling hss target: check the installation log file bin/install_log.txt"
exit
1
fi
check_for_hss_executable
echo_info
"finished hss target
: check the installation log file bin/install_log.txt
"
echo_info
"finished hss target"
######################################
# Check certificates #
...
...
@@ -652,27 +650,10 @@ build_hss(){
######################################
echo_info
"6. create HSS database (for EURECOM SIM CARDS)"
hss_db_created
=
1
USER
=
"hssadmin"
PW
=
""
output
=
$(
create_hss_database
$USER
$PW
)
hss_db_created
=
$?
if
[
$hss_db_created
=
0
]
;
then
echo_warning
"hss DB not created"
fi
######################################
# install hss
######################################
echo_info
"7. install the binary file"
if
[
$hss_compiled
-eq
0
]
;
then
echo_success
"target hss built, DB created and installed in the bin directory"
echo
"target hss built, DB created, and installed in the bin directory"
>>
bin/
${
oai_build_date
}
cp
-rf
$OPENAIRCN_DIR
/OPENAIRHSS/conf
$OPENAIR_TARGETS
/bin
$SUDO
cp
$OPENAIR_TARGETS
/bin/conf/hss_fd.local.conf /etc/openair-hss
rm
-f
$OPENAIR_TARGETS
/bin/openair-hss
cp
-pv
$OPENAIRCN_DIR
/OPENAIRHSS/objs/openair-hss
$OPENAIR_TARGETS
/bin/
create_hss_database
$OAI_DB_ADMIN_USER_NAME
$OAI_DB_ADMIN_USER_PASSWORD
if
[
$?
-eq
1
]
;
then
echo_fatal
"hss DB not created"
fi
}
...
...
@@ -830,14 +811,14 @@ if [ $RUN -ne 0 ]; then
'HSS'
)
echo
"############# running HSS #############"
cd
$OPENAIR
_TARGETS
/bin
cd
$OPENAIR
CN_DIR
/OPENAIRHSS/objs
if
[
$RUN_GDB
-eq
0
]
;
then
$SUDO
exec
./openair-hss
-c
conf/hss.
local.
conf
$SUDO
exec
./openair-hss
-c
./
conf/hss.conf
else
touch
~/.gdb_hss
chmod
777 ~/.gdb_hss
echo
"file ./openair-hss"
>
~/.gdb_hss
echo
"set args -c conf/hss.
local.
conf"
>>
~/.gdb_hss
echo
"set args -c
./
conf/hss.conf"
>>
~/.gdb_hss
echo
"run"
>>
~/.gdb_hss
$SUDO
gdb
-nh
-x
~/.gdb_hss 2>&1
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment