Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
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-SMF
Commits
14f11335
Commit
14f11335
authored
Oct 07, 2019
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename spgwc to smf (build)
parent
72314533
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
102 additions
and
453 deletions
+102
-453
build/scripts/build_helper.smf
build/scripts/build_helper.smf
+4
-201
build/scripts/build_smf
build/scripts/build_smf
+24
-24
build/scripts/smf_conf.sh
build/scripts/smf_conf.sh
+30
-0
build/smf/CMakeLists.txt
build/smf/CMakeLists.txt
+35
-0
etc/spgw_c.conf
etc/spgw_c.conf
+0
-219
src/oai_smf/CMakeLists.txt
src/oai_smf/CMakeLists.txt
+8
-8
src/oai_smf/main.cpp
src/oai_smf/main.cpp
+0
-0
src/oai_smf/options.cpp
src/oai_smf/options.cpp
+0
-0
src/oai_smf/options.hpp
src/oai_smf/options.hpp
+0
-0
src/pfcp/CMakeLists.txt
src/pfcp/CMakeLists.txt
+1
-1
No files found.
build/scripts/build_helper.s
pgw
→
build/scripts/build_helper.s
mf
View file @
14f11335
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
# contact@openairinterface.org
# contact@openairinterface.org
################################################################################
################################################################################
# file build_helper.s
pgw
# file build_helper.s
mf
# brief
# brief
# author Laurent Thomas, Lionel GAUTHIER
# author Laurent Thomas, Lionel GAUTHIER
#
#
...
@@ -97,7 +97,7 @@ install_spdlog_from_git() {
...
@@ -97,7 +97,7 @@ install_spdlog_from_git() {
git clone $GIT_URL
git clone $GIT_URL
cd spdlog && git checkout master
cd spdlog && git checkout master
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
# enable syslog, Useless (defined in S
PGW
code)
# enable syslog, Useless (defined in S
MF
code)
sed -i '/#define SPDLOG_ENABLE_SYSLOG/s/^\/\///g' include/spdlog/tweakme.h
sed -i '/#define SPDLOG_ENABLE_SYSLOG/s/^\/\///g' include/spdlog/tweakme.h
popd
popd
fi
fi
...
@@ -155,7 +155,7 @@ install_pistache_from_git() {
...
@@ -155,7 +155,7 @@ install_pistache_from_git() {
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
#arg2 is debug (0 or 1) (install debug libraries)
check_install_s
pgwc
_deps() {
check_install_s
mf
_deps() {
if [ $1 -gt 0 ]; then
if [ $1 -gt 0 ]; then
OPTION="-y"
OPTION="-y"
...
@@ -289,7 +289,7 @@ check_install_spgwc_deps() {
...
@@ -289,7 +289,7 @@ check_install_spgwc_deps() {
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
#arg2 is debug (0 or 1) (install debug libraries)
check_install_s
pgwc
_min_deps() {
check_install_s
mf
_min_deps() {
if [ $1 -gt 0 ]; then
if [ $1 -gt 0 ]; then
OPTION="-y"
OPTION="-y"
...
@@ -383,201 +383,4 @@ check_install_spgwc_min_deps() {
...
@@ -383,201 +383,4 @@ check_install_spgwc_min_deps() {
return 0
return 0
}
}
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
check_install_spgwu_deps() {
if [ $1 -gt 0 ]; then
OPTION="-y"
else
OPTION=""
fi
if [ $2 -eq 0 ]; then
debug=0
else
debug=1
fi
echo "Check supported distribution"
check_supported_distribution
[[ $? -ne 0 ]] && return $?
# prevent lock on /var/lib/dpkg/lock
if [[ $OS_DISTRO == "ubuntu" ]]; then
#$SUDO systemctl mask apt-daily.service
#$SUDO systemctl mask apt-daily.timer
#$SUDO systemctl mask apt-daily-upgrade.service
#$SUDO systemctl mask apt-daily-upgrade.timer
$SUDO sed -i 's/1/0/g' /etc/apt/apt.conf.d/10periodic
fi
update_package_db
check_enable_epel_repos
# Compilers, generators, ...
if [[ $OS_DISTRO == "ubuntu" ]]; then
PACKAGE_LIST="\
autoconf \
automake \
bison \
build-essential \
cmake \
doxygen \
flex \
gdb \
git"
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
PACKAGE_LIST="\
autoconf \
automake \
bison \
$CMAKE \
cppcheck \
flex \
gdb \
git"
else
echo_fatal "$OS_DISTRO is not a supported distribution."
fi
echo "Install build tools"
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Libraries
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
"ubuntu18.04")
specific_packages="libconfig++-dev libasio-dev libboost-all-dev"
;;
esac
# removed libspdlog-dev
PACKAGE_LIST="\
$specific_packages \
guile-2.0-dev \
libcurl4-gnutls-dev \
libevent-dev \
libgcrypt11-dev \
libgmp-dev \
libhogweed? \
libidn2-0-dev \
libidn11-dev \
libpthread-stubs0-dev \
libssl-dev \
libtool \
libxml2 \
libxml2-dev \
openssl \
python \
pkg-config"
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
PACKAGE_LIST="\
guile-devel \
libconfig-devel \
libgcrypt-devel \
gmp-devel \
libidn2-devel \
libidn-devel \
lksctp-tools \
lksctp-tools-devel \
openssl-devel \
libtool \
libxml2 \
libxml2-devel \
openssl \
check \
python \
pkgconfig"
else
echo_fatal "$OS_DISTRO is not a supported distribution."
fi
echo "Install distro libs"
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Use fmt lib included in spdlog
#install_fmt $1
#ret=$?;[[ $ret -ne 0 ]] && return $ret
install_fb_folly_from_source $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
install_spdlog_from_git $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
return 0
}
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
check_install_spgwu_min_deps() {
if [ $1 -gt 0 ]; then
OPTION="-y"
else
OPTION=""
fi
echo "Check supported distribution"
check_supported_distribution
[[ $? -ne 0 ]] && return $?
# prevent lock on /var/lib/dpkg/lock
if [[ $OS_DISTRO == "ubuntu" ]]; then
#$SUDO systemctl mask apt-daily.service
#$SUDO systemctl mask apt-daily.timer
#$SUDO systemctl mask apt-daily-upgrade.service
#$SUDO systemctl mask apt-daily-upgrade.timer
$SUDO sed -i 's/1/0/g' /etc/apt/apt.conf.d/10periodic
fi
update_package_db
check_enable_epel_repos
# Compilers, generators, ...
if [[ $OS_DISTRO == "ubuntu" ]]; then
PACKAGE_LIST="\
gdb "
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
PACKAGE_LIST="\
gdb "
else
echo_fatal "$OS_DISTRO is not a supported distribution."
fi
echo "Install build tools"
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Networking
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
"ubuntu18.04")
specific_packages="iproute2"
;;
esac
PACKAGE_LIST="\
$specific_packages \
ethtool \
iptables \
vlan"
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
PACKAGE_LIST="\
ethtool \
iproute \
vconfig"
else
echo_fatal "$OS_DISTRO is not a supported distribution."
fi
echo "Install networking tools"
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
return 0
}
build/scripts/build_s
pgwc
→
build/scripts/build_s
mf
View file @
14f11335
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
# For more information about the OpenAirInterface (OAI) Software Alliance:
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
# contact@openairinterface.org
################################################################################
################################################################################
# file build_s
pgwc
# file build_s
mf
# brief
# brief
# author Lionel Gauthier
# author Lionel Gauthier
# company Eurecom
# company Eurecom
...
@@ -33,14 +33,14 @@ INSTALL_DIR=/usr/local/bin
...
@@ -33,14 +33,14 @@ INSTALL_DIR=/usr/local/bin
# include helper functions
# include helper functions
################################
################################
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
source
$THIS_SCRIPT_PATH
/build_helper.s
pgw
source
$THIS_SCRIPT_PATH
/build_helper.s
mf
function
help
()
function
help
()
{
{
echo_error
" "
echo_error
" "
echo_error
"Usage: build_s
pgwc
[OPTION]..."
echo_error
"Usage: build_s
mf
[OPTION]..."
echo_error
"Build the S
PGW-C
executable."
echo_error
"Build the S
MF
executable."
echo_error
" "
echo_error
" "
echo_error
"Options:"
echo_error
"Options:"
echo_error
"Mandatory arguments to long options are mandatory for short options too."
echo_error
"Mandatory arguments to long options are mandatory for short options too."
...
@@ -48,8 +48,8 @@ function help()
...
@@ -48,8 +48,8 @@ function help()
echo_error
" -c, --clean Clean the build generated files: config, object, executable files (build from scratch)"
echo_error
" -c, --clean Clean the build generated files: config, object, executable files (build from scratch)"
echo_error
" -f, --force No interactive script for installation of software packages."
echo_error
" -f, --force No interactive script for installation of software packages."
echo_error
" -h, --help Print this help."
echo_error
" -h, --help Print this help."
echo_error
" -I, --install-deps Check installed software necessary to build and run S
/P-GW-C
(support
$SUPPORTED_DISTRO
)."
echo_error
" -I, --install-deps Check installed software necessary to build and run S
MF
(support
$SUPPORTED_DISTRO
)."
echo_error
" -i, --install-min-deps Check installed software necessary to run a statically linked S
/P-GW-C
(support
$SUPPORTED_DISTRO
)."
echo_error
" -i, --install-min-deps Check installed software necessary to run a statically linked S
MF
(support
$SUPPORTED_DISTRO
)."
echo_error
" -j, --jobs Multiple jobs for compiling."
echo_error
" -j, --jobs Multiple jobs for compiling."
echo_error
" -v, --verbose Build process verbose."
echo_error
" -v, --verbose Build process verbose."
echo_error
" -V, --Verbose CMake only build process verbose, display compilation warnings and errors."
echo_error
" -V, --Verbose CMake only build process verbose, display compilation warnings and errors."
...
@@ -99,13 +99,13 @@ function main()
...
@@ -99,13 +99,13 @@ function main()
return
0
return
0
;;
;;
-I
|
--install-deps
)
-I
|
--install-deps
)
echo
"Check installed software necessary to build and run S
/P-GW-C
(support
$SUPPORTED_DISTRO
):"
echo
"Check installed software necessary to build and run S
MF
(support
$SUPPORTED_DISTRO
):"
set_openair_env
set_openair_env
var_check_install_deps
=
1
var_check_install_deps
=
1
shift
;
shift
;
;;
;;
-i
|
--install-min-deps
)
-i
|
--install-min-deps
)
echo
"Check installed software necessary to run S
/P-GW-C
(support
$SUPPORTED_DISTRO
):"
echo
"Check installed software necessary to run S
MF
(support
$SUPPORTED_DISTRO
):"
set_openair_env
set_openair_env
var_check_install_min_deps
=
1
var_check_install_min_deps
=
1
shift
;
shift
;
...
@@ -149,26 +149,26 @@ function main()
...
@@ -149,26 +149,26 @@ function main()
if
[
$var_check_install_min_deps
-gt
0
]
;
then
if
[
$var_check_install_min_deps
-gt
0
]
;
then
disable_ipv6
disable_ipv6
check_install_s
pgwc
_min_deps
$force
$debug
check_install_s
mf
_min_deps
$force
$debug
if
[[
$?
-ne
0
]]
;
then
if
[[
$?
-ne
0
]]
;
then
echo_error
"Error: S
PGW-C
minimal deps installation failed"
echo_error
"Error: S
MF
minimal deps installation failed"
return
1
return
1
else
else
echo_success
"S
PGW-C
minimal deps installation successful"
echo_success
"S
MF
minimal deps installation successful"
echo_warning
"S
PGW-C not compiled, to compile it, re-run build_spgwc
without -i option"
echo_warning
"S
MF not compiled, to compile it, re-run build_smf
without -i option"
return
0
return
0
fi
fi
fi
fi
if
[
$var_check_install_deps
-gt
0
]
;
then
if
[
$var_check_install_deps
-gt
0
]
;
then
disable_ipv6
disable_ipv6
check_install_s
pgwc
_deps
$force
$debug
check_install_s
mf
_deps
$force
$debug
if
[[
$?
-ne
0
]]
;
then
if
[[
$?
-ne
0
]]
;
then
echo_error
"Error: S
PGW-C
deps installation failed"
echo_error
"Error: S
MF
deps installation failed"
return
1
return
1
else
else
echo_success
"S
PGW-C
deps installation successful"
echo_success
"S
MF
deps installation successful"
echo_warning
"S
PGW-C not compiled, to compile it, re-run build_spgwc
without -I option"
echo_warning
"S
MF not compiled, to compile it, re-run build_smf
without -I option"
return
0
return
0
fi
fi
fi
fi
...
@@ -178,19 +178,19 @@ function main()
...
@@ -178,19 +178,19 @@ function main()
##############################################################################
##############################################################################
# Clean
# Clean
##############################################################################
##############################################################################
cd
$OPENAIRCN_DIR
/build/s
pgw_c
cd
$OPENAIRCN_DIR
/build/s
mf
if
[
$clean
-ne
0
]
;
then
if
[
$clean
-ne
0
]
;
then
if
[[
$verbose
-eq
1
]]
;
then
if
[[
$verbose
-eq
1
]]
;
then
echo
"Cleaning S
/P-GW-C
: generated configuration files, obj files, executable"
echo
"Cleaning S
MF
: generated configuration files, obj files, executable"
fi
fi
rm
-Rf
$OPENAIRCN_DIR
/build/s
pgw_c
/build 2>&1
rm
-Rf
$OPENAIRCN_DIR
/build/s
mf
/build 2>&1
mkdir
-m
777
-p
-v
build
mkdir
-m
777
-p
-v
build
fi
fi
##############################################################################
##############################################################################
# Compile S
/P-GW
# Compile S
MF
##############################################################################
##############################################################################
cd
$OPENAIRCN_DIR
/build/s
pgw_c
cd
$OPENAIRCN_DIR
/build/s
mf
if
[
!
-d
./build
]
;
then
if
[
!
-d
./build
]
;
then
mkdir
-m
777
-p
-v
build
mkdir
-m
777
-p
-v
build
fi
fi
...
@@ -199,12 +199,12 @@ function main()
...
@@ -199,12 +199,12 @@ function main()
$CMAKE
$cmake_args
..
>
/dev/null
$CMAKE
$cmake_args
..
>
/dev/null
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
compilations s
pgw_c spgwc
$OPENAIRCN_DIR
/build/spgw_c/build/spgwc
$verbose
compilations s
mf smf
$OPENAIRCN_DIR
/build/smf/build/smf
$verbose
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
# For daemon should not be group writable
# For daemon should not be group writable
$SUDO
chmod
755
$OPENAIRCN_DIR
/build/s
pgw_c/build/spgwc
$SUDO
chmod
755
$OPENAIRCN_DIR
/build/s
mf/build/smf
$SUDO
cp
-upv
$OPENAIRCN_DIR
/build/s
pgw_c/build/spgwc
$INSTALL_DIR
&&
$SUDO
chmod
755
$INSTALL_DIR
/spgwc
&&
echo_success
"spgwc
installed"
$SUDO
cp
-upv
$OPENAIRCN_DIR
/build/s
mf/build/smf
$INSTALL_DIR
&&
$SUDO
chmod
755
$INSTALL_DIR
/smf
&&
echo_success
"smf
installed"
return
0
return
0
}
}
...
...
build/scripts/s
pgwc
_conf.sh
→
build/scripts/s
mf
_conf.sh
View file @
14f11335
...
@@ -3,24 +3,28 @@ sudo ifconfig eno1:sxc 172.55.55.101 up # SPGW-C SXab interface
...
@@ -3,24 +3,28 @@ sudo ifconfig eno1:sxc 172.55.55.101 up # SPGW-C SXab interface
sudo
ifconfig eno1:s5c 172.58.58.102 up
# SGW-C S5S8 interface
sudo
ifconfig eno1:s5c 172.58.58.102 up
# SGW-C S5S8 interface
sudo
ifconfig eno1:p5c 172.58.58.101 up
# PGW-C S5S8 interface
sudo
ifconfig eno1:p5c 172.58.58.101 up
# PGW-C S5S8 interface
sudo
ifconfig eno1:s11 172.16.1.104 up
# SGW-C S11 interface
sudo
ifconfig eno1:s11 172.16.1.104 up
# SGW-C S11 interface
#for AMF/UDM
sudo
ifconfig eno1:n11 172.16.1.106 up
# AMF interface
sudo
ifconfig eno1:n10 172.16.1.105 up
# UDM interface
INSTANCE
=
1
INSTANCE
=
1
PREFIX
=
'/usr/local/etc/oai'
PREFIX
=
'/usr/local/etc/oai'
sudo mkdir
-m
0777
-p
$PREFIX
sudo mkdir
-m
0777
-p
$PREFIX
cp
../../etc/s
pgw_c
.conf
$PREFIX
cp
../../etc/s
mf
.conf
$PREFIX
declare
-A
S
PGWC
_CONF
declare
-A
S
MF
_CONF
S
PGWC
_CONF[@INSTANCE@]
=
$INSTANCE
S
MF
_CONF[@INSTANCE@]
=
$INSTANCE
S
PGWC
_CONF[@PREFIX@]
=
$PREFIX
S
MF
_CONF[@PREFIX@]
=
$PREFIX
S
PGWC
_CONF[@PID_DIRECTORY@]
=
'/var/run'
S
MF
_CONF[@PID_DIRECTORY@]
=
'/var/run'
S
PGWC
_CONF[@SGW_INTERFACE_NAME_FOR_S11@]
=
'eno1:s11'
S
MF
_CONF[@SGW_INTERFACE_NAME_FOR_S11@]
=
'eno1:s11'
S
PGWC
_CONF[@SGW_INTERFACE_NAME_FOR_S5_S8_CP@]
=
'eno1:s5c'
S
MF
_CONF[@SGW_INTERFACE_NAME_FOR_S5_S8_CP@]
=
'eno1:s5c'
S
PGWC
_CONF[@PGW_INTERFACE_NAME_FOR_S5_S8_CP@]
=
'eno1:p5c'
S
MF
_CONF[@PGW_INTERFACE_NAME_FOR_S5_S8_CP@]
=
'eno1:p5c'
S
PGWC
_CONF[@PGW_INTERFACE_NAME_FOR_SX@]
=
'eno1:sxc'
S
MF
_CONF[@PGW_INTERFACE_NAME_FOR_SX@]
=
'eno1:sxc'
S
PGWC
_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]
=
'8.8.8.8'
S
MF
_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]
=
'8.8.8.8'
S
PGWC
_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]
=
'4.4.4.4'
S
MF
_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]
=
'4.4.4.4'
for
K
in
"
${
!S
PGWC
_CONF[@]
}
"
;
do
for
K
in
"
${
!S
MF
_CONF[@]
}
"
;
do
egrep
-lRZ
"
$K
"
$PREFIX
| xargs
-0
-l
sed
-i
-e
"s|
$K
|
${
S
PGWC
_CONF
[
$K
]
}
|g"
egrep
-lRZ
"
$K
"
$PREFIX
| xargs
-0
-l
sed
-i
-e
"s|
$K
|
${
S
MF
_CONF
[
$K
]
}
|g"
ret
=
$?
;
[[
ret
-ne
0
]]
&&
echo
"Tried to replace
$K
with
${
S
PGWC
_CONF
[
$K
]
}
"
ret
=
$?
;
[[
ret
-ne
0
]]
&&
echo
"Tried to replace
$K
with
${
S
MF
_CONF
[
$K
]
}
"
done
done
build/smf/CMakeLists.txt
0 → 100755
View file @
14f11335
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
cmake_minimum_required
(
VERSION 3.0.2
)
# Override options for SMF
set
(
PACKAGE_NAME
"SMF"
)
set
(
STATIC_LINKING False
)
#############################################
# Base directories, compatible with legacy OAI building
################################################
set
(
OPENAIRCN_DIR $ENV{OPENAIRCN_DIR}
)
set
(
BUILD_TOP_DIR
${
OPENAIRCN_DIR
}
/build
)
set
(
SRC_TOP_DIR $ENV{OPENAIRCN_DIR}/src
)
include
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/oai_smf/CMakeLists.txt
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/sgwc
${
CMAKE_CURRENT_BINARY_DIR
}
/sgwc
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/pgwc
${
CMAKE_CURRENT_BINARY_DIR
}
/pgwc
)
etc/spgw_c.conf
deleted
100644 → 0
View file @
72314533
This diff is collapsed.
Click to expand it.
src/oai_s
pgwc
/CMakeLists.txt
→
src/oai_s
mf
/CMakeLists.txt
View file @
14f11335
...
@@ -279,7 +279,7 @@ endif(${SGW_AUTOTEST})
...
@@ -279,7 +279,7 @@ endif(${SGW_AUTOTEST})
#ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/test ${CMAKE_CURRENT_BINARY_DIR}/test)
#ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/test ${CMAKE_CURRENT_BINARY_DIR}/test)
################################################################################
################################################################################
# Specific part for oai_s
pgwc
folder
# Specific part for oai_s
mf
folder
#SMF_API
#SMF_API
set
(
SMF_API_SERVER_DIR
"
${
SRC_TOP_DIR
}
/api-server"
)
set
(
SMF_API_SERVER_DIR
"
${
SRC_TOP_DIR
}
/api-server"
)
...
@@ -341,10 +341,10 @@ set(NAS_include_files
...
@@ -341,10 +341,10 @@ set(NAS_include_files
add_library
(
NAS
${
NAS_src_files
}
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
)
add_library
(
NAS
${
NAS_src_files
}
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
)
add_definitions
(
"-DPACKAGE_NAME=
\"
S
PGW-C
\"
"
)
add_definitions
(
"-DPACKAGE_NAME=
\"
S
MF
\"
"
)
include_directories
(
${
SRC_TOP_DIR
}
/pgwc
)
include_directories
(
${
SRC_TOP_DIR
}
/pgwc
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_s
pgwc
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_s
mf
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
...
@@ -358,16 +358,16 @@ include_directories(${SRC_TOP_DIR}/../build/ext/spdlog/include)
...
@@ -358,16 +358,16 @@ include_directories(${SRC_TOP_DIR}/../build/ext/spdlog/include)
include_directories
(
${
SMF_API_SERVER_include_files
}
)
include_directories
(
${
SMF_API_SERVER_include_files
}
)
include_directories
(
${
NAS_include_files
}
)
include_directories
(
${
NAS_include_files
}
)
add_executable
(
s
pgwc
add_executable
(
s
mf
${
SRC_TOP_DIR
}
/oai_s
pgwc
/main.cpp
${
SRC_TOP_DIR
}
/oai_s
mf
/main.cpp
${
SRC_TOP_DIR
}
/oai_s
pgwc
/options.cpp
${
SRC_TOP_DIR
}
/oai_s
mf
/options.cpp
${
SRC_TOP_DIR
}
/itti/itti.cpp
${
SRC_TOP_DIR
}
/itti/itti.cpp
${
SRC_TOP_DIR
}
/itti/itti_msg.cpp
${
SRC_TOP_DIR
}
/itti/itti_msg.cpp
)
)
IF
(
STATIC_LINKING
)
IF
(
STATIC_LINKING
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"-static"
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"-static"
)
SET_TARGET_PROPERTIES
(
s
pgwc
PROPERTIES LINK_SEARCH_END_STATIC 1
)
SET_TARGET_PROPERTIES
(
s
mf
PROPERTIES LINK_SEARCH_END_STATIC 1
)
# asan do not support static linking
# asan do not support static linking
SET
(
ASAN
)
SET
(
ASAN
)
ENDIF
(
STATIC_LINKING
)
ENDIF
(
STATIC_LINKING
)
...
@@ -376,5 +376,5 @@ if(${SGW_AUTOTEST})
...
@@ -376,5 +376,5 @@ if(${SGW_AUTOTEST})
SET
(
GTPV1U_LIB GTPV1U
)
SET
(
GTPV1U_LIB GTPV1U
)
endif
(
${
SGW_AUTOTEST
}
)
endif
(
${
SGW_AUTOTEST
}
)
target_link_libraries
(
s
pgwc
${
ASAN
}
-Wl,--start-group CN_UTILS SGWC PGWC UDP
${
GTPV1U_LIB
}
GTPV2C PFCP 3GPP_COMMON_TYPES SMF_API -lnettle
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
NAS gflags glog dl double-conversion folly -Wl,--end-group pthread m rt config++ event boost_system pistache curl
)
target_link_libraries
(
s
mf
${
ASAN
}
-Wl,--start-group CN_UTILS SGWC PGWC UDP
${
GTPV1U_LIB
}
GTPV2C PFCP 3GPP_COMMON_TYPES SMF_API -lnettle
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
NAS gflags glog dl double-conversion folly -Wl,--end-group pthread m rt config++ event boost_system pistache curl
)
src/oai_s
pgwc
/main.cpp
→
src/oai_s
mf
/main.cpp
View file @
14f11335
File moved
src/oai_s
pgwc
/options.cpp
→
src/oai_s
mf
/options.cpp
View file @
14f11335
File moved
src/oai_s
pgwc
/options.hpp
→
src/oai_s
mf
/options.hpp
View file @
14f11335
File moved
src/pfcp/CMakeLists.txt
View file @
14f11335
...
@@ -22,7 +22,7 @@ include_directories(${SRC_TOP_DIR}/common)
...
@@ -22,7 +22,7 @@ include_directories(${SRC_TOP_DIR}/common)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_s
pgwc
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_s
mf
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
...
...
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