Commit 14f11335 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

rename spgwc to smf (build)

parent 72314533
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# contact@openairinterface.org # contact@openairinterface.org
################################################################################ ################################################################################
# file build_helper.spgw # file build_helper.smf
# 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 SPGW code) # enable syslog, Useless (defined in SMF 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_spgwc_deps() { check_install_smf_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_spgwc_min_deps() { check_install_smf_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
}
...@@ -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_spgwc # file build_smf
# 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.spgw source $THIS_SCRIPT_PATH/build_helper.smf
function help() function help()
{ {
echo_error " " echo_error " "
echo_error "Usage: build_spgwc [OPTION]..." echo_error "Usage: build_smf [OPTION]..."
echo_error "Build the SPGW-C executable." echo_error "Build the SMF 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 SMF (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 SMF (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 SMF (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 SMF (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_spgwc_min_deps $force $debug check_install_smf_min_deps $force $debug
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo_error "Error: SPGW-C minimal deps installation failed" echo_error "Error: SMF minimal deps installation failed"
return 1 return 1
else else
echo_success "SPGW-C minimal deps installation successful" echo_success "SMF minimal deps installation successful"
echo_warning "SPGW-C not compiled, to compile it, re-run build_spgwc without -i option" echo_warning "SMF 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_spgwc_deps $force $debug check_install_smf_deps $force $debug
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo_error "Error: SPGW-C deps installation failed" echo_error "Error: SMF deps installation failed"
return 1 return 1
else else
echo_success "SPGW-C deps installation successful" echo_success "SMF deps installation successful"
echo_warning "SPGW-C not compiled, to compile it, re-run build_spgwc without -I option" echo_warning "SMF 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/spgw_c cd $OPENAIRCN_DIR/build/smf
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 SMF: generated configuration files, obj files, executable"
fi fi
rm -Rf $OPENAIRCN_DIR/build/spgw_c/build 2>&1 rm -Rf $OPENAIRCN_DIR/build/smf/build 2>&1
mkdir -m 777 -p -v build mkdir -m 777 -p -v build
fi fi
############################################################################## ##############################################################################
# Compile S/P-GW # Compile SMF
############################################################################## ##############################################################################
cd $OPENAIRCN_DIR/build/spgw_c cd $OPENAIRCN_DIR/build/smf
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 spgw_c spgwc $OPENAIRCN_DIR/build/spgw_c/build/spgwc $verbose compilations smf 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/spgw_c/build/spgwc $SUDO chmod 755 $OPENAIRCN_DIR/build/smf/build/smf
$SUDO cp -upv $OPENAIRCN_DIR/build/spgw_c/build/spgwc $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/spgwc && echo_success "spgwc installed" $SUDO cp -upv $OPENAIRCN_DIR/build/smf/build/smf $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/smf && echo_success "smf installed"
return 0 return 0
} }
......
...@@ -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/spgw_c.conf $PREFIX cp ../../etc/smf.conf $PREFIX
declare -A SPGWC_CONF declare -A SMF_CONF
SPGWC_CONF[@INSTANCE@]=$INSTANCE SMF_CONF[@INSTANCE@]=$INSTANCE
SPGWC_CONF[@PREFIX@]=$PREFIX SMF_CONF[@PREFIX@]=$PREFIX
SPGWC_CONF[@PID_DIRECTORY@]='/var/run' SMF_CONF[@PID_DIRECTORY@]='/var/run'
SPGWC_CONF[@SGW_INTERFACE_NAME_FOR_S11@]='eno1:s11' SMF_CONF[@SGW_INTERFACE_NAME_FOR_S11@]='eno1:s11'
SPGWC_CONF[@SGW_INTERFACE_NAME_FOR_S5_S8_CP@]='eno1:s5c' SMF_CONF[@SGW_INTERFACE_NAME_FOR_S5_S8_CP@]='eno1:s5c'
SPGWC_CONF[@PGW_INTERFACE_NAME_FOR_S5_S8_CP@]='eno1:p5c' SMF_CONF[@PGW_INTERFACE_NAME_FOR_S5_S8_CP@]='eno1:p5c'
SPGWC_CONF[@PGW_INTERFACE_NAME_FOR_SX@]='eno1:sxc' SMF_CONF[@PGW_INTERFACE_NAME_FOR_SX@]='eno1:sxc'
SPGWC_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]='8.8.8.8' SMF_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]='8.8.8.8'
SPGWC_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]='4.4.4.4' SMF_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]='4.4.4.4'
for K in "${!SPGWC_CONF[@]}"; do for K in "${!SMF_CONF[@]}"; do
egrep -lRZ "$K" $PREFIX | xargs -0 -l sed -i -e "s|$K|${SPGWC_CONF[$K]}|g" egrep -lRZ "$K" $PREFIX | xargs -0 -l sed -i -e "s|$K|${SMF_CONF[$K]}|g"
ret=$?;[[ ret -ne 0 ]] && echo "Tried to replace $K with ${SPGWC_CONF[$K]}" ret=$?;[[ ret -ne 0 ]] && echo "Tried to replace $K with ${SMF_CONF[$K]}"
done done
################################################################################
# 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)
This diff is collapsed.
...@@ -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_spgwc folder # Specific part for oai_smf 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=\"SPGW-C\"") add_definitions("-DPACKAGE_NAME=\"SMF\"")
include_directories(${SRC_TOP_DIR}/pgwc) include_directories(${SRC_TOP_DIR}/pgwc)
include_directories(${SRC_TOP_DIR}/oai_spgwc) include_directories(${SRC_TOP_DIR}/oai_smf)
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(spgwc add_executable(smf
${SRC_TOP_DIR}/oai_spgwc/main.cpp ${SRC_TOP_DIR}/oai_smf/main.cpp
${SRC_TOP_DIR}/oai_spgwc/options.cpp ${SRC_TOP_DIR}/oai_smf/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(spgwc PROPERTIES LINK_SEARCH_END_STATIC 1) SET_TARGET_PROPERTIES(smf 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 (spgwc ${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 (smf ${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)
...@@ -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_spgwc) include_directories(${SRC_TOP_DIR}/oai_smf)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment