Commit 75677401 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6219 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 738ef607
...@@ -57,11 +57,11 @@ check_for_root_rights() { ...@@ -57,11 +57,11 @@ check_for_root_rights() {
# if [[ $EUID -ne $ROOT_EUID ]]; then # if [[ $EUID -ne $ROOT_EUID ]]; then
if [ $USER != "root" ]; then if [ $USER != "root" ]; then
SUDO="sudo -E " SUDO="sudo -E "
echo "Run as a sudoers" echo "Run as a sudoers"
return 1 return 1
else else
echo "Run as a root" echo "Run as a root"
return 0 return 0
fi fi
} }
...@@ -73,7 +73,7 @@ test_install_package() { ...@@ -73,7 +73,7 @@ test_install_package() {
echo "$1 is installed." echo "$1 is installed."
} || { } || {
echo "$1 is not installed." echo "$1 is not installed."
OAI_INSTALLED=0 OAI_INSTALLED=0
$SUDO apt-get install -y $@ $SUDO apt-get install -y $@
} }
fi fi
...@@ -83,8 +83,8 @@ test_uninstall_package() { ...@@ -83,8 +83,8 @@ test_uninstall_package() {
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
dpkg -s "$1" > /dev/null 2>&1 && { dpkg -s "$1" > /dev/null 2>&1 && {
$SUDO apt-get remove --assume-yes $1 $SUDO apt-get remove --assume-yes $1
echo "$1 is uninstalled." echo "$1 is uninstalled."
} || { } || {
echo "$1 is not installed." echo "$1 is not installed."
} }
...@@ -100,13 +100,13 @@ test_command_install_script() { ...@@ -100,13 +100,13 @@ test_command_install_script() {
check_for_machine_type(){ check_for_machine_type(){
MACHINE_TYPE=`uname -m` MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} = "x86_64" ]; then if [ ${MACHINE_TYPE} = "x86_64" ]; then
return 64 # 64-bit stuff here return 64 # 64-bit stuff here
else else
if [ ${MACHINE_TYPE} = "i686" ]; then if [ ${MACHINE_TYPE} = "i686" ]; then
return 32 # 32-bit stuff here return 32 # 32-bit stuff here
else else
return -1 return -1
fi fi
fi fi
} }
...@@ -143,8 +143,8 @@ make_certs(){ ...@@ -143,8 +143,8 @@ make_certs(){
openssl ca -cert cacert.pem -keyfile cakey.pem -in hss.csr.pem -out hss.cert.pem -outdir . -batch openssl ca -cert cacert.pem -keyfile cakey.pem -in hss.csr.pem -out hss.cert.pem -outdir . -batch
if [ ! -d /usr/local/etc/freeDiameter ]; then if [ ! -d /usr/local/etc/freeDiameter ]; then
echo "Creating non existing directory: /usr/local/etc/freeDiameter/" echo "Creating non existing directory: /usr/local/etc/freeDiameter/"
$SUDO mkdir /usr/local/etc/freeDiameter/ $SUDO mkdir /usr/local/etc/freeDiameter/
fi fi
echo "Copying *.pem to /usr/local/etc/freeDiameter/" echo "Copying *.pem to /usr/local/etc/freeDiameter/"
...@@ -322,16 +322,16 @@ check_s6a_certificate() { ...@@ -322,16 +322,16 @@ check_s6a_certificate() {
cd $OPENAIRCN_DIR/S6A/freediameter cd $OPENAIRCN_DIR/S6A/freediameter
make_certs make_certs
if [ $cnt = 0 ] ; then if [ $cnt = 0 ] ; then
cnt=1 cnt=1
check_s6a_certificate check_s6a_certificate
fi fi
return 1 return 1
} }
check_install_usrp_uhd_driver(){ check_install_usrp_uhd_driver(){
if [ ! -f /etc/apt/sources.list.d/ettus.list ] ; then if [ ! -f /etc/apt/sources.list.d/ettus.list ] ; then
$SUDO bash -c 'echo "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/`lsb_release -cs` `lsb_release -cs` main" >> /etc/apt/sources.list.d/ettus.list' $SUDO bash -c 'echo "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/`lsb_release -cs` `lsb_release -cs` main" >> /etc/apt/sources.list.d/ettus.list'
$SUDO apt-get update $SUDO apt-get update
fi fi
$SUDO apt-get install -t $UBUNTU_REL_NAME uhd $SUDO apt-get install -t $UBUNTU_REL_NAME uhd
test_install_package python test_install_package python
...@@ -343,91 +343,91 @@ check_install_usrp_uhd_driver(){ ...@@ -343,91 +343,91 @@ check_install_usrp_uhd_driver(){
check_install_oai_software() { check_install_oai_software() {
if [ ! -f ./.lock_oaibuild ]; then if [ ! -f ./.lock_oaibuild ]; then
$SUDO apt-get update $SUDO apt-get update
if [ $UBUNTU_REL = "12.04" ]; then if [ $UBUNTU_REL = "12.04" ]; then
test_uninstall_package nettle-dev test_uninstall_package nettle-dev
test_uninstall_package nettle-bin test_uninstall_package nettle-bin
else else
test_install_package nettle-dev test_install_package nettle-dev
test_install_package nettle-bin test_install_package nettle-bin
fi fi
test_install_package autoconf test_install_package autoconf
test_install_package automake test_install_package automake
test_install_package bison test_install_package bison
test_install_package build-essential test_install_package build-essential
test_install_package flex test_install_package flex
test_install_package gawk test_install_package gawk
test_install_package gcc test_install_package gcc
test_install_package gdb test_install_package gdb
test_install_package make test_install_package make
test_install_package cmake test_install_package cmake
test_install_package openssh-client test_install_package openssh-client
test_install_package openssh-server test_install_package openssh-server
sudo service ssh start sudo service ssh start
test_install_package unzip test_install_package unzip
test_install_package autoconf test_install_package autoconf
test_install_package automake test_install_package automake
test_install_package bison test_install_package bison
test_install_package build-essential test_install_package build-essential
test_install_package check test_install_package check
test_install_package ethtool test_install_package ethtool
test_install_package flex test_install_package flex
test_install_package g++ test_install_package g++
test_install_package gawk test_install_package gawk
test_install_package gcc test_install_package gcc
test_install_package gccxml test_install_package gccxml
test_install_package gdb test_install_package gdb
test_install_package guile-2.0-dev test_install_package guile-2.0-dev
test_install_package iperf test_install_package iperf
test_install_package iproute test_install_package iproute
test_install_package iptables test_install_package iptables
test_install_package libatlas-base-dev test_install_package libatlas-base-dev
test_install_package libatlas-dev test_install_package libatlas-dev
test_install_package libblas3gf test_install_package libblas3gf
test_install_package libblas-dev test_install_package libblas-dev
# if [ $MACHINE_ARCH = 64 ]; then # if [ $MACHINE_ARCH = 64 ]; then
test_install_package libconfig8-dev test_install_package libconfig8-dev
# else # else
# test_install_package libconfig-dev # test_install_package libconfig-dev
# fi # fi
test_install_package libforms-bin test_install_package libforms-bin
test_install_package libforms-dev test_install_package libforms-dev
test_install_package libgcrypt11-dev test_install_package libgcrypt11-dev
test_install_package libgmp-dev test_install_package libgmp-dev
test_install_package libgtk-3-dev test_install_package libgtk-3-dev
test_install_package libidn11-dev test_install_package libidn11-dev
test_install_package libidn2-0-dev test_install_package libidn2-0-dev
test_install_package libpgm-dev test_install_package libpgm-dev
test_install_package libpgm-5.1-0 test_install_package libpgm-5.1-0
test_install_package libpthread-stubs0-dev test_install_package libpthread-stubs0-dev
test_install_package libsctp1 test_install_package libsctp1
test_install_package libsctp-dev test_install_package libsctp-dev
test_install_package libtasn1-3-dev test_install_package libtasn1-3-dev
test_install_package libxml2 test_install_package libxml2
test_install_package libxml2-dev test_install_package libxml2-dev
# test_install_package linux-headers-`uname -r` # test_install_package linux-headers-`uname -r`
test_install_package openssl test_install_package openssl
test_install_package libssl-dev test_install_package libssl-dev
test_install_package pkg-config test_install_package pkg-config
test_install_package python-dev test_install_package python-dev
test_install_package python-pexpect test_install_package python-pexpect
test_install_package sshfs test_install_package sshfs
test_install_package subversion test_install_package subversion
test_install_package valgrind test_install_package valgrind
test_install_package doxygen test_install_package doxygen
test_install_package graphviz test_install_package graphviz
# TODO: install the USRP UHD packages # TODO: install the USRP UHD packages
# if [ $1 = "USRP" ] ; then # if [ $1 = "USRP" ] ; then
# test_install_package libboost-all-dev # test_install_package libboost-all-dev
if [ $OAI_INSTALLED = 1 ]; then if [ $OAI_INSTALLED = 1 ]; then
touch ./.lock_oaibuild touch ./.lock_oaibuild
fi fi
else else
echo_info "All the required packages installed: skip" echo_info "All the required packages installed: skip"
fi fi
} }
...@@ -700,18 +700,25 @@ compile_exmimo2_driver() { ...@@ -700,18 +700,25 @@ compile_exmimo2_driver() {
compile_ltesoftmodem() { compile_ltesoftmodem() {
cd $OPENAIR_TARGETS/RT/USER cd $OPENAIR_TARGETS/RT/USER
if [ -f Makefile ]; then if [ -f Makefile ]; then
echo "Compiling directives: $SOFTMODEM_DIRECTIVES" echo "LTE softmodem compiling directives: $SOFTMODEM_DIRECTIVES"
make cleanall > /dev/null 2>&1 echo "OAI_CLEAN: $OAI_CLEAN"
make $SOFTMODEM_DIRECTIVES if [ $OAI_CLEAN -ne 0 ]; then
make -j $NUM_CPU $SOFTMODEM_DIRECTIVES echo "Cleaning LTE softmodem"
make cleanall > /dev/null 2>&1
fi
make -j $NUM_CPU $SOFTMODEM_DIRECTIVES
if [ $? -ne 0 ]; then
# to locate easily compilation error in log file
make $SOFTMODEM_DIRECTIVES
fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ ! -f ./lte-softmodem ]; then if [ ! -f ./lte-softmodem ]; then
echo_error "Build lte-softmodem failed, returning" echo_error "Build lte-softmodem failed, returning"
return 1 return 1
else else
cp -f ./lte-softmodem $OPENAIR_TARGETS/bin cp -f ./lte-softmodem $OPENAIR_TARGETS/bin
return 0 return 0
fi fi
else else
cp -f ./lte-softmodem $OPENAIR_TARGETS/bin cp -f ./lte-softmodem $OPENAIR_TARGETS/bin
return 0 return 0
......
...@@ -59,6 +59,7 @@ declare CONFIG_FILE="" ...@@ -59,6 +59,7 @@ declare CONFIG_FILE=""
declare EXE_ARGUMENTS="" declare EXE_ARGUMENTS=""
declare RUN_GDB=0 declare RUN_GDB=0
declare DISABLE_CHECK_INSTALLED_SOFTWARE=0 declare DISABLE_CHECK_INSTALLED_SOFTWARE=0
declare OAI_CLEAN=0
declare OAI_TEST=0 declare OAI_TEST=0
declare XFORMS=0 declare XFORMS=0
...@@ -91,8 +92,8 @@ fi ...@@ -91,8 +92,8 @@ fi
# case $i in # case $i in
until [ -z "$1" ]
while true; do do
case "$1" in case "$1" in
-a | --doxygen) -a | --doxygen)
DOXYGEN=1 DOXYGEN=1
...@@ -128,7 +129,7 @@ while true; do ...@@ -128,7 +129,7 @@ while true; do
shift; shift;
;; ;;
-e | --realtime) -e | --realtime)
RT="$2" RT=$2
echo "setting realtime flag to: $RT" echo "setting realtime flag to: $RT"
shift 2 ; shift 2 ;
;; ;;
...@@ -146,7 +147,7 @@ while true; do ...@@ -146,7 +147,7 @@ while true; do
shift 2; shift 2;
;; ;;
-l | --build-target) -l | --build-target)
BUILD_LTE="$2" BUILD_LTE=$2
echo "setting top-level build target to: $2" echo "setting top-level build target to: $2"
shift 2; shift 2;
;; ;;
...@@ -161,7 +162,7 @@ while true; do ...@@ -161,7 +162,7 @@ while true; do
shift; shift;
;; ;;
-r | --3gpp-release) -r | --3gpp-release)
REL="$2" REL=$2
echo "setting release to: $REL" echo "setting release to: $REL"
shift 2 ; shift 2 ;
;; ;;
...@@ -171,8 +172,8 @@ while true; do ...@@ -171,8 +172,8 @@ while true; do
shift; shift;
;; ;;
-t | --enb-build-target) -t | --enb-build-target)
TARGET="$2" TARGET=$2
echo "setting target to: $TARGET" echo "setting enb build target to: $TARGET"
shift 2; shift 2;
;; ;;
-V | --vcd) -V | --vcd)
...@@ -205,9 +206,6 @@ while true; do ...@@ -205,9 +206,6 @@ while true; do
OAI_TEST=0 OAI_TEST=0
shift ; shift ;
;; ;;
' ')
shift ;
;;
*) *)
echo "Unknown option $1" echo "Unknown option $1"
break ; break ;
...@@ -284,67 +282,67 @@ build_enb(){ ...@@ -284,67 +282,67 @@ build_enb(){
SOFTMODEM_DIRECTIVES="DEBUG=$DEBUG XFORMS=$XFORMS " SOFTMODEM_DIRECTIVES="DEBUG=$DEBUG XFORMS=$XFORMS "
OAISIM_DIRECTIVES="DEBUG=$DEBUG XFORMS=$XFORMS " OAISIM_DIRECTIVES="DEBUG=$DEBUG XFORMS=$XFORMS "
if [ $ENB_S1 = 1 ]; then if [ $ENB_S1 -eq 1 ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES USE_MME=R10 ENABLE_ITTI=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES USE_MME=R10 ENABLE_ITTI=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 "
OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES USE_MME=R10 ENABLE_ITTI=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 " OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES USE_MME=R10 ENABLE_ITTI=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 "
fi fi
if [ $DEBUG = 0 ]; then if [ $DEBUG -eq 0 ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES DISABLE_XER_PRINT=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES DISABLE_XER_PRINT=1 "
OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES DISABLE_XER_PRINT=1 " OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES DISABLE_XER_PRINT=1 "
fi fi
if [ $HW = "USRP" ]; then if [ $HW = "USRP" ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES USRP=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES USRP=1 "
fi fi
if [ $HW = "EXMIMO" ]; then if [ $HW = "EXMIMO" ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES EXMIMO=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES EXMIMO=1 "
fi fi
if [ $HW = "ETHERNET" ]; then if [ $HW = "ETHERNET" ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES ETHERNET=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES ETHERNET=1 "
fi fi
if [ $ENB_S1 -eq 0 ]; then if [ $ENB_S1 -eq 0 ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES NAS=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES NAS=1 "
OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES NAS=1 " OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES NAS=1 "
fi fi
if [ $REL = "REL8" ]; then if [ $REL = "REL8" ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES Rel8=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES Rel8=1 "
OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES Rel8=1 " OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES Rel8=1 "
else else
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES Rel10=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES Rel10=1 "
OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES Rel10=1 " OAISIM_DIRECTIVES="$OAISIM_DIRECTIVES Rel10=1 "
fi fi
if [ $RT = "RTAI" ]; then if [ $RT = "RTAI" ]; then
if [ ! -f /usr/realtime/modules/rtai_hal.ko ]; then if [ ! -f /usr/realtime/modules/rtai_hal.ko ]; then
echo_warning "RTAI doesn't seem to be installed" echo_warning "RTAI doesn't seem to be installed"
RT="NONE" RT="NONE"
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES RTAI=0 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES RTAI=0 "
else else
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES HARD_RT=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES HARD_RT=1 "
fi fi
else else
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES RTAI=0 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES RTAI=0 "
RT="NONE" RT="NONE"
fi fi
if [ $TARGET != "ALL" ]; then if [ $TARGET != "ALL" ]; then
if [ $TARGET != "SOFTMODEM" ]; then if [ $TARGET != "SOFTMODEM" ]; then
HW="NONE" HW="NONE"
fi fi
fi fi
if [ $UBUNTU_REL = "12.04" ]; then if [ $UBUNTU_REL = "12.04" ]; then
output=$(check_for_machine_type 2>&1) output=$(check_for_machine_type 2>&1)
MACHINE_ARCH=$? MACHINE_ARCH=$?
if [ $MACHINE_ARCH -eq 64 ]; then if [ $MACHINE_ARCH -eq 64 ]; then
SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES LIBCONFIG_LONG=1 " SOFTMODEM_DIRECTIVES="$SOFTMODEM_DIRECTIVES LIBCONFIG_LONG=1 "
OAISIM_DIRECTIVES="$OASIM_DIRECTIVES LIBCONFIG_LONG=1 " OAISIM_DIRECTIVES="$OASIM_DIRECTIVES LIBCONFIG_LONG=1 "
fi fi
fi fi
echo_success "SOFTMODEM Compilation directives: $SOFTMODEM_DIRECTIVES" echo_success "SOFTMODEM Compilation directives: $SOFTMODEM_DIRECTIVES"
...@@ -368,6 +366,7 @@ build_enb(){ ...@@ -368,6 +366,7 @@ build_enb(){
check_install_nettle check_install_nettle
else else
echo_info "6. Not checking the required softwares/packages ..." echo_info "6. Not checking the required softwares/packages ..."
touch ./.lock_oaibuild
fi fi
############################################ ############################################
...@@ -407,15 +406,14 @@ build_enb(){ ...@@ -407,15 +406,14 @@ build_enb(){
else else
if [ $TARGET == "SOFTMODEM" ]; then
if [ $TARGET = "SOFTMODEM" ]; then
echo "############# compile_ltesoftmodem #############" >> bin/install_log.txt echo "############# compile_ltesoftmodem #############" >> bin/install_log.txt
output=$(compile_ltesoftmodem >> bin/install_log.txt 2>&1 ) output=$(compile_ltesoftmodem >> bin/install_log.txt 2>&1 )
softmodem_compiled=$? softmodem_compiled=$?
check_for_ltesoftmodem_executable check_for_ltesoftmodem_executable
echo_info "7.1 finished ltesoftmodem target: check the installation log file bin/install_log.txt" echo_info "7.1 finished ltesoftmodem target: check the installation log file bin/install_log.txt"
if [ $HW = "EXMIMO" ]; then if [ $HW == "EXMIMO" ]; then
compile_exmimo2_driver compile_exmimo2_driver
fi fi
fi fi
...@@ -449,17 +447,17 @@ build_enb(){ ...@@ -449,17 +447,17 @@ build_enb(){
echo_info "8. Installing ..." echo_info "8. Installing ..."
if [ $softmodem_compiled = 0 ]; then if [ $softmodem_compiled -eq 0 ]; then
echo_success "target lte-softmodem built and installed in the bin directory" echo_success "target lte-softmodem built and installed in the bin directory"
echo "target lte-softmodem built and installed in the bin directory" >> bin/${oai_build_date} echo "target lte-softmodem built and installed in the bin directory" >> bin/${oai_build_date}
output=$(install_ltesoftmodem $RT $HW $ENB_S1 ) output=$(install_ltesoftmodem $RT $HW $ENB_S1 )
fi fi
if [ $oaisim_compiled = 0 ]; then if [ $oaisim_compiled -eq 0 ]; then
echo_success "target oaisim built and installed in the bin directory" echo_success "target oaisim built and installed in the bin directory"
echo "target oaisim built and installed in the bin directory" >> bin/${oai_build_date} echo "target oaisim built and installed in the bin directory" >> bin/${oai_build_date}
output=$(install_oaisim $ENB_S1 ) output=$(install_oaisim $ENB_S1 )
fi fi
if [ $unisim_compiled = 0 ]; then if [ $unisim_compiled -eq 0 ]; then
echo_success "target unisim built and installed in the bin directory" echo_success "target unisim built and installed in the bin directory"
echo "target unisim built and installed in the bin directory" >> bin/${oai_build_date} echo "target unisim built and installed in the bin directory" >> bin/${oai_build_date}
fi fi
...@@ -485,11 +483,11 @@ build_epc(){ ...@@ -485,11 +483,11 @@ build_epc(){
check_install_asn1c check_install_asn1c
if [ $OAI_CLEAN = 1 ]; then if [ $OAI_CLEAN -eq 1 ]; then
check_install_freediamter check_install_freediamter
else else
if [ ! -d /usr/local/etc/freeDiameter ]; then if [ ! -d /usr/local/etc/freeDiameter ]; then
check_install_freediamter check_install_freediamter
fi fi
fi fi
check_s6a_certificate check_s6a_certificate
...@@ -512,7 +510,7 @@ build_epc(){ ...@@ -512,7 +510,7 @@ build_epc(){
echo_info "6. install the binary file" echo_info "6. install the binary file"
if [ $epc_compiled = 0 ]; then if [ $epc_compiled -eq 0 ]; then
echo_success "target epc built and installed in the bin directory" echo_success "target epc built and installed in the bin directory"
echo "target epc built and installed in the bin directory" >> bin/${oai_build_date} echo "target epc built and installed in the bin directory" >> bin/${oai_build_date}
cp -f $OPENAIR_TARGETS/PROJECTS/GENERIC-LTE-EPC/CONF/epc.generic.conf $OPENAIR_TARGETS/bin cp -f $OPENAIR_TARGETS/PROJECTS/GENERIC-LTE-EPC/CONF/epc.generic.conf $OPENAIR_TARGETS/bin
...@@ -542,12 +540,12 @@ build_hss(){ ...@@ -542,12 +540,12 @@ build_hss(){
check_install_hss_software check_install_hss_software
if [ $OAI_CLEAN = 1 ]; then if [ $OAI_CLEAN -eq 1 ]; then
check_install_freediamter check_install_freediamter
else else
if [ ! -d /usr/local/etc/freeDiameter ]; then if [ ! -d /usr/local/etc/freeDiameter ]; then
check_install_freediamter check_install_freediamter
fi fi
fi fi
$(make_certs >> bin/install_log.txt 2>&1) $(make_certs >> bin/install_log.txt 2>&1)
output=$(check_s6a_certificate >> bin/install_log.txt 2>&1) output=$(check_s6a_certificate >> bin/install_log.txt 2>&1)
...@@ -580,11 +578,11 @@ build_hss(){ ...@@ -580,11 +578,11 @@ build_hss(){
###################################### ######################################
echo_info "7. install the binary file" echo_info "7. install the binary file"
if [ $hss_compiled = 0 ]; then if [ $hss_compiled -eq 0 ]; then
echo_success "target hss built, DB created and installed in the bin directory" echo_success "target hss built, DB created and installed in the bin directory"
echo "target hss built, DB created, and installed in the bin directory" >> bin/${oai_build_date} echo "target hss built, DB created, and installed in the bin directory" >> bin/${oai_build_date}
cp -rf $OPENAIRCN_DIR/OPENAIRHSS/conf $OPENAIR_TARGETS/bin cp -rf $OPENAIRCN_DIR/OPENAIRHSS/conf $OPENAIR_TARGETS/bin
$SUDO cp $OPENAIR_TARGETS/bin/conf/hss_fd.local.conf /etc/openair-hss $SUDO cp $OPENAIR_TARGETS/bin/conf/hss_fd.local.conf /etc/openair-hss
fi fi
###################################### ######################################
...@@ -641,7 +639,7 @@ esac ...@@ -641,7 +639,7 @@ esac
# testing # testing
############################################ ############################################
if [ $OAI_TEST = 1 ]; then if [ $OAI_TEST -eq 1 ]; then
echo_info "10. Testing ..." echo_info "10. Testing ..."
python $OPENAIR_TARGETS/TEST/OAI/test01.py python $OPENAIR_TARGETS/TEST/OAI/test01.py
else else
...@@ -652,8 +650,8 @@ esac ...@@ -652,8 +650,8 @@ esac
# run # run
############################################ ############################################
echo_info "11. Running ... To be done" echo_info "11. Running ... To be done"
if [ $TARGET = "SOFTMODEM" ]; then if [ $TARGET == "SOFTMODEM" ]; then
if [ $HW = "EXMIMO" ]; then if [ $HW == "EXMIMO" ]; then
bash $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh bash $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh
fi fi
echo "############# running ltesoftmodem #############" echo "############# running ltesoftmodem #############"
......
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