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
4f1a745c
Commit
4f1a745c
authored
Jun 12, 2022
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify compile command on ARM platform
parent
aa136b9c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
build/scripts/build_helper
build/scripts/build_helper
+2
-1
build/scripts/build_helper.amf
build/scripts/build_helper.amf
+8
-1
etc/amf.conf
etc/amf.conf
+4
-4
src/oai-amf/CMakeLists.txt
src/oai-amf/CMakeLists.txt
+3
-0
No files found.
build/scripts/build_helper
View file @
4f1a745c
...
...
@@ -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
...
...
build/scripts/build_helper.amf
View file @
4f1a745c
...
...
@@ -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 \
libgcrypt
11
-dev \
libgcrypt
20
-dev \
libgmp-dev \
libhogweed? \
libidn2-0-dev \
...
...
etc/amf.conf
View file @
4f1a745c
...
...
@@ -58,7 +58,7 @@ AMF =
# AMF binded interface for N1/N2 interface (NGAP)
NGAP_AMF
:
{
INTERFACE_NAME
=
"e
ns32
"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"e
th0
"
;
# 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
=
"e
ns32
"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"e
th0
"
;
# 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
=
"e
ns32
"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"e
ht0
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"read"
;
PORT
=
8282
;
# YOUR NETWORK CONFIG HERE
...
...
@@ -89,7 +89,7 @@ AMF =
AUTHENTICATION
:
{
## MySQL mandatory options
MYSQL_server
=
"1
92.168.199.18
1"
;
# MySQL Server address
MYSQL_server
=
"1
27.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
...
...
src/oai-amf/CMakeLists.txt
View file @
4f1a745c
...
...
@@ -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
()
...
...
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