Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
d1f98742
Commit
d1f98742
authored
10 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
typo missing $ $UE
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7136
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
aafb6bad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/build_oai
+31
-31
31 additions, 31 deletions
cmake_targets/build_oai
with
31 additions
and
31 deletions
cmake_targets/build_oai
+
31
−
31
View file @
d1f98742
...
@@ -53,12 +53,12 @@ Options
...
@@ -53,12 +53,12 @@ Options
-h
-h
This help
This help
-c | --clean
-c | --clean
Erase all files to make a rebuild from start"
Erase all files to make a rebuild from start"
-C | --clean-all
-C | --clean-all
Erase all files made by previous compilations, installations"
Erase all files made by previous compilations, installations"
--clean-kernel
--clean-kernel
Erase previously installed features in kernel: iptables, drivers, ...
Erase previously installed features in kernel: iptables, drivers, ...
-I | --install-external-packages
-I | --install-external-packages
Installs required packages such as LibXML, asn1.1 compiler, freediameter, ...
Installs required packages such as LibXML, asn1.1 compiler, freediameter, ...
This option will require root password
This option will require root password
--install-optional-packages
--install-optional-packages
...
@@ -74,7 +74,7 @@ Options
...
@@ -74,7 +74,7 @@ Options
--EPC
--EPC
Makes the EPC (MME-SPGW, HSS)
Makes the EPC (MME-SPGW, HSS)
-r | --3gpp-release
-r | --3gpp-release
default is Rel10,
default is Rel10,
Rel8 limits the implementation to 3GPP Release 8 version
Rel8 limits the implementation to 3GPP Release 8 version
-w | --hardware
-w | --hardware
EXMIMO (Default), USRP, None
EXMIMO (Default), USRP, None
...
@@ -92,7 +92,7 @@ Options
...
@@ -92,7 +92,7 @@ Options
-x | --xforms
-x | --xforms
Adds a software oscilloscope feature to the produced binaries
Adds a software oscilloscope feature to the produced binaries
--install-system-files
--install-system-files
Install OpenArInterface required files in Linux system
Install OpenArInterface required files in Linux system
(will ask root password)
(will ask root password)
Typical Options for a quick startup with a COTS UE and Eurecom RF board: build_oai -I -g -eNB -EPC -x --install-system-files'
Typical Options for a quick startup with a COTS UE and Eurecom RF board: build_oai -I -g -eNB -EPC -x --install-system-files'
}
}
...
@@ -137,7 +137,7 @@ function main() {
...
@@ -137,7 +137,7 @@ function main() {
echo_info
"Will compile EPC"
echo_info
"Will compile EPC"
shift
;;
shift
;;
-r
|
--3gpp-release
)
-r
|
--3gpp-release
)
REL
=
$2
REL
=
$2
echo_info
"setting release to:
$REL
"
echo_info
"setting release to:
$REL
"
shift
2
;;
shift
2
;;
-w
|
--hardware
)
-w
|
--hardware
)
...
@@ -179,7 +179,7 @@ function main() {
...
@@ -179,7 +179,7 @@ function main() {
-h
|
--help
)
-h
|
--help
)
print_help
print_help
exit
1
;;
exit
1
;;
*
)
*
)
print_help
print_help
echo_fatal
"Unknown option
$1
"
echo_fatal
"Unknown option
$1
"
break
;;
break
;;
...
@@ -189,10 +189,10 @@ function main() {
...
@@ -189,10 +189,10 @@ function main() {
############################################
############################################
# setting and printing OAI envs, we should check here
# setting and printing OAI envs, we should check here
############################################
############################################
echo_info
"2. Setting the OAI PATHS ..."
echo_info
"2. Setting the OAI PATHS ..."
set_openair_env
set_openair_env
cecho
"OPENAIR_DIR =
$OPENAIR_DIR
"
$green
cecho
"OPENAIR_DIR =
$OPENAIR_DIR
"
$green
# for conf files copy in this bash script
# for conf files copy in this bash script
...
@@ -237,7 +237,7 @@ function main() {
...
@@ -237,7 +237,7 @@ function main() {
DIR
=
$OPENAIR_DIR
/cmake_targets
DIR
=
$OPENAIR_DIR
/cmake_targets
if
[
"
$eNB
"
=
"1"
-o
"UE"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$
UE
"
=
"1"
]
;
then
# LTE softmodem compilation
# LTE softmodem compilation
mkdir
-p
$DIR
/lte_build_oai/build
mkdir
-p
$DIR
/lte_build_oai/build
cmake_file
=
$DIR
/lte_build_oai/CMakeLists.txt
cmake_file
=
$DIR
/lte_build_oai/CMakeLists.txt
...
@@ -252,8 +252,8 @@ function main() {
...
@@ -252,8 +252,8 @@ function main() {
cmake ..
cmake ..
echo_info
"Compiling LTE softmodem"
echo_info
"Compiling LTE softmodem"
compilations
\
compilations
\
lte_build_oai lte-softmodem
\
lte_build_oai lte-softmodem
\
lte-softmodem lte-softmodem.
$REL
lte-softmodem lte-softmodem.
$REL
fi
fi
...
@@ -261,14 +261,14 @@ function main() {
...
@@ -261,14 +261,14 @@ function main() {
# ue_ip driver compilation
# ue_ip driver compilation
echo_info
"Compiling UE specific part"
echo_info
"Compiling UE specific part"
compilations
\
compilations
\
lte_build_oai ue_ip
\
lte_build_oai ue_ip
\
CMakeFiles/ue_ip/ue_ip.ko
$dbin
/ue_ip.ko
CMakeFiles/ue_ip/ue_ip.ko
$dbin
/ue_ip.ko
compilations
\
compilations
\
lte_build_oai usim
\
lte_build_oai usim
\
usim
$dbin
/usim
usim
$dbin
/usim
compilations
\
compilations
\
lte_build_oai nvram
\
lte_build_oai nvram
\
nvram
$dbin
/nvram
nvram
$dbin
/nvram
fi
fi
if
[
"
$SIMUS_PHY
"
=
"1"
-o
"
$SIMUS_CORE
"
=
"1"
]
;
then
if
[
"
$SIMUS_PHY
"
=
"1"
-o
"
$SIMUS_CORE
"
=
"1"
]
;
then
...
@@ -291,7 +291,7 @@ function main() {
...
@@ -291,7 +291,7 @@ function main() {
done
done
fi
fi
# Core simulators
# Core simulators
#############
#############
if
[
"
$SIMUS_CORE
"
=
"1"
]
;
then
if
[
"
$SIMUS_CORE
"
=
"1"
]
;
then
# lte unitary simulators compilation
# lte unitary simulators compilation
...
@@ -312,8 +312,8 @@ function main() {
...
@@ -312,8 +312,8 @@ function main() {
lte_build_oai openair_rf
\
lte_build_oai openair_rf
\
CMakeFiles/openair_rf/openair_rf.ko
$dbin
/openair_rf.ko
CMakeFiles/openair_rf/openair_rf.ko
$dbin
/openair_rf.ko
compilations
\
compilations
\
lte_build_oai updatefw
\
lte_build_oai updatefw
\
updatefw
$dbin
/updatefw
updatefw
$dbin
/updatefw
fi
fi
if
[
"
$oaisim
"
=
"1"
]
;
then
if
[
"
$oaisim
"
=
"1"
]
;
then
...
@@ -361,7 +361,7 @@ function main() {
...
@@ -361,7 +361,7 @@ function main() {
cp
$DIR
/epc_build_oai/CMakeLists.template
$cmake_file
cp
$DIR
/epc_build_oai/CMakeLists.template
$cmake_file
echo
"set(ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set(ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/epc_build_oai/build
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/epc_build_oai/build
mkdir
-p
$DIR
/epc_build_oai/build
mkdir
-p
$DIR
/epc_build_oai/build
cd
$DIR
/epc_build_oai/build
cd
$DIR
/epc_build_oai/build
...
@@ -394,7 +394,7 @@ function main() {
...
@@ -394,7 +394,7 @@ function main() {
$OPENAIR_DIR
/cmake_targets/tools/build_hss
--debug
--transport-tcp-only
--transport-prefer-tcp
--fqdn
`
hostname
--fqdn
`
--connect-to-mme
`
hostname
--fqdn
`
$OPENAIR_DIR
/cmake_targets/tools/build_hss
--debug
--transport-tcp-only
--transport-prefer-tcp
--fqdn
`
hostname
--fqdn
`
--connect-to-mme
`
hostname
--fqdn
`
fi
fi
# example HHS and EPC run on separate hosts (can use SCTP)
# example HHS and EPC run on separate hosts (can use SCTP)
# $OPENAIR_DIR/cmake_targets/tools/build_hss --debug
# $OPENAIR_DIR/cmake_targets/tools/build_hss --debug
echo_info
"Copying iptables libraries into system directory: /lib/xtables"
echo_info
"Copying iptables libraries into system directory: /lib/xtables"
if
[
-f
$dbin
/libxt_GTPURH_lib.so
]
;
then
if
[
-f
$dbin
/libxt_GTPURH_lib.so
]
;
then
...
@@ -414,7 +414,7 @@ function main() {
...
@@ -414,7 +414,7 @@ function main() {
install_nas_tools
$dbin
$dconf
install_nas_tools
$dbin
$dconf
else
else
echo_warning
"not generated UE NAS files: binaries not found"
echo_warning
"not generated UE NAS files: binaries not found"
fi
fi
# Do EPC
# Do EPC
...
@@ -425,11 +425,11 @@ function main() {
...
@@ -425,11 +425,11 @@ function main() {
echo_warning
"not installed EPC config files: not found"
echo_warning
"not installed EPC config files: not found"
fi
fi
# Do HSS
# Do HSS
# bash doesn't like space char around = char
# bash doesn't like space char around = char
cp
-uv
$DIR
/hss_build/build/hss.conf
$dbin
cp
-uv
$DIR
/hss_build/build/hss.conf
$dbin
$SUDO
cp
-uv
$DIR
/hss_build/build/hss_fd.conf
$DIR
/hss_build/build/acl.conf
$FREEDIAMETER_PREFIX
/etc/freeDiameter
$SUDO
cp
-uv
$DIR
/hss_build/build/hss_fd.conf
$DIR
/hss_build/build/acl.conf
$FREEDIAMETER_PREFIX
/etc/freeDiameter
# if [ "$INSTALL_SYSTEM_FILES" = "1" ] ;then
# if [ "$INSTALL_SYSTEM_FILES" = "1" ] ;then
# if [ -f $dbin/hss.conf ] ; then
# if [ -f $dbin/hss.conf ] ; then
# sed -e 's/ *= */=/' $dbin/hss.conf > $dconf/hss.conf.nospace
# sed -e 's/ *= */=/' $dbin/hss.conf > $dconf/hss.conf.nospace
...
@@ -442,15 +442,15 @@ function main() {
...
@@ -442,15 +442,15 @@ function main() {
# fi
# fi
fi
fi
# Auto-tests
# Auto-tests
#####################
#####################
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
echo_info
"10. Running OAI pre commit tests (pre-ci) ..."
echo_info
"10. Running OAI pre commit tests (pre-ci) ..."
$OPENAIR_DIR
/cmake_targets/autotests/run_compilation_autotests.bash
$OPENAIR_DIR
/cmake_targets/autotests/run_compilation_autotests.bash
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
else
else
echo_info
"10. Bypassing the Tests ..."
echo_info
"10. Bypassing the Tests ..."
fi
fi
}
}
main
"
$@
"
main
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment