Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
f4158c3a
Commit
f4158c3a
authored
Jun 07, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use boost 1.66.0 for Ubuntu 18.04
parent
5d81a264
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
3 deletions
+46
-3
build/scripts/build_helper
build/scripts/build_helper
+1
-0
build/scripts/build_helper.amf
build/scripts/build_helper.amf
+44
-2
build/scripts/generate_amf_conf.sh
build/scripts/generate_amf_conf.sh
+1
-1
No files found.
build/scripts/build_helper
View file @
f4158c3a
...
...
@@ -128,6 +128,7 @@ check_supported_distribution() {
local distribution=$(get_distribution_release)
case "$distribution" in
"ubuntu18.04") return 0 ;;
"ubuntu20.04") return 0 ;;
"rhel8") return 0 ;;
"rhel8.2") return 0 ;;
"rhel8.3") return 0 ;;
...
...
build/scripts/build_helper.amf
View file @
f4158c3a
...
...
@@ -32,6 +32,45 @@ THIS_SCRIPT_PATH=`dirname $SCRIPT`
source $THIS_SCRIPT_PATH/build_helper
source $THIS_SCRIPT_PATH/build_helper.fb_folly
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_boost_1_66() {
if [ $1 -eq 0 ]; then
read -p "Do you want to install Boost version 1.66.0 ? <y/N> " prompt
OPTION=""
else
prompt='y'
OPTION="-y"
fi
if [ $2 -eq 0 ]; then
debug=0
else
debug=1
fi
if [[ $prompt =~ [yY](es)* ]]
then
BOOST_URL=https://boostorg.jfrog.io/artifactory/main/release/1.66.0/source/boost_1_66_0.tar.bz2
echo "Install Boost from $BOOST_URL"
pushd $OPENAIRCN_DIR/build/ext
echo "Downloading Boost 1.66.0"
if [[ $OPTION =~ -[yY](es)* ]]
then
$SUDO rm -rf boost
fi
#git clone $GIT_URL
wget $BOOST_URL
tar --bzip2 -xf boost_1_66_0.tar.bz2
cp -r boost_1_66_0/boost /usr/include
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
popd
fi
return 0
}
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
...
...
@@ -315,9 +354,9 @@ check_install_amf_deps(){
case "$(get_distribution_release)" in
"ubuntu18.04")
if [ $IS_CONTAINER -eq 0 ]; then
specific_packages="libconfig++-dev
libasio-dev libboost-all-dev
mysql-server"
specific_packages="libconfig++-dev mysql-server"
else
specific_packages="libconfig++-dev
libasio-dev libboost-all-dev
"
specific_packages="libconfig++-dev"
fi
;;
esac
...
...
@@ -381,6 +420,9 @@ check_install_amf_deps(){
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
install_boost_1_66 $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
install_cpprestsdk_from_git $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
...
...
build/scripts/generate_amf_conf.sh
View file @
f4158c3a
...
...
@@ -38,7 +38,7 @@ AMF_CONF[@AMF_INTERFACE_NAME_FOR_NGAP@]='wlo1'
AMF_CONF[@AMF_INTERFACE_NAME_FOR_N11@]
=
'wlo1'
AMF_CONF[@NF_REGISTRATION@]
=
'no'
AMF_CONF[@
NF_REGISTRA
TION@]
=
'no'
AMF_CONF[@
SMF_SELEC
TION@]
=
'no'
AMF_CONF[@SMF_INSTANCE_ID_0@]
=
'1'
AMF_CONF[@SMF_IPV4_ADDR_0@]
=
'192.168.122.1'
...
...
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