Commit 4f1a745c authored by Luhan Wang's avatar Luhan Wang

modify compile command on ARM platform

parent aa136b9c
......@@ -25,7 +25,7 @@
#
#######################################
#SUPPORTED_DISTRO="Ubuntu 18.04, CentOS 7, RHEL 7"
SUPPORTED_DISTRO="Ubuntu 18.04"
SUPPORTED_DISTRO="Ubuntu 18.04, Ubuntu 20.04"
if [ ! -f /etc/os-release ]; then
echo_fatal "No /etc/os-release file found. You're likely on an unsupported distro."
fi
......@@ -128,6 +128,7 @@ check_supported_distribution() {
local distribution=$(get_distribution_release)
case "$distribution" in
"ubuntu18.04") return 0 ;;
"ubuntu20.04") return 0 ;;
#"rhel7") return 0 ;;
#"centos7") return 0 ;;
esac
......
......@@ -271,6 +271,13 @@ check_install_amf_deps(){
specific_packages="libconfig++-dev libasio-dev libboost-all-dev"
fi
;;
"ubuntu20.04")
if [ $IS_CONTAINER -eq 0 ]; then
specific_packages="libconfig++-dev libasio-dev libboost-all-dev mysql-server"
else
specific_packages="libconfig++-dev libasio-dev libboost-all-dev"
fi
;;
esac
# removed libspdlog-dev
PACKAGE_LIST="\
......@@ -282,7 +289,7 @@ check_install_amf_deps(){
guile-2.0-dev \
libcurl4-gnutls-dev \
libevent-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgmp-dev \
libhogweed? \
libidn2-0-dev \
......
......@@ -58,7 +58,7 @@ AMF =
# AMF binded interface for N1/N2 interface (NGAP)
NGAP_AMF:
{
INTERFACE_NAME = "ens32"; # YOUR NETWORK CONFIG HERE
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 38412; # YOUR NETWORK CONFIG HERE
PPID = 60; # YOUR NETWORK CONFIG HERE
......@@ -66,7 +66,7 @@ AMF =
# AMF binded interface for Nausf interface
NAUSF:
{
INTERFACE_NAME = "ens32"; # YOUR NETWORK CONFIG HERE
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "192.168.199.181/24";
PORT = 8383; # YOUR NETWORK CONFIG HERE
};
......@@ -74,7 +74,7 @@ AMF =
# AMF binded interface for N11
N11:
{
INTERFACE_NAME = "ens32"; # YOUR NETWORK CONFIG HERE
INTERFACE_NAME = "eht0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8282; # YOUR NETWORK CONFIG HERE
......@@ -89,7 +89,7 @@ AMF =
AUTHENTICATION:
{
## MySQL mandatory options
MYSQL_server = "192.168.199.181"; # MySQL Server address
MYSQL_server = "127.0.0.1"; # MySQL Server address
MYSQL_user = "root"; # Database server login
MYSQL_pass = "123456"; # Database server password
MYSQL_db = "OAI_DB"; # Your database name
......
......@@ -136,6 +136,9 @@ endif()
Message("Architecture is ${CMAKE_SYSTEM_PROCESSOR}")
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
set(C_FLAGS_PROCESSOR "-gdwarf-2 -mfloat-abi=hard -mfpu=neon -lgcc -lrt")
elseif ( CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
#set(C_FLAGS_PROCESSOR "-gdwarf-2 -mfloat-abi=hard -mfpu=neon -lgcc -lrt")
set(C_FLAGS_PROCESSOR "-gdwarf-2 -lgcc -lrt")
else (CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
set(C_FLAGS_PROCESSOR "-msse4.2")
endif()
......
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