Commit d1f98742 authored by Lionel Gauthier's avatar Lionel Gauthier

typo missing $ $UE

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7136 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent aafb6bad
...@@ -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 "$@"
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