git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4894 818b1a75-f10b-46b9-bf7c-635c3b92a50f
85 lines
2.9 KiB
Bash
Executable File
85 lines
2.9 KiB
Bash
Executable File
#! /bin/bash
|
|
|
|
###########################################################
|
|
THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
|
|
source $THIS_SCRIPT_PATH/env_802dot21.bash
|
|
###########################################################
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# Check installed utils and libs"
|
|
echo_success "###############################"
|
|
test_command_install_package "gccxml" "gccxml" "--force-yes"
|
|
test_command_install_package "iptables" "iptables"
|
|
#test_command_install_package "ebtables" "ebtables" "--force-yes"
|
|
test_command_install_package "ip" "iproute"
|
|
test_install_package "openssl"
|
|
test_install_package "libblas-dev"
|
|
# for itti analyser
|
|
test_install_package "libgtk-3-dev"
|
|
test_install_package "libxml2"
|
|
test_install_package "libxml2-dev"
|
|
test_install_package "libforms-bin" "--force-yes"
|
|
test_install_package "libforms-dev"
|
|
test_install_package "libatlas-dev"
|
|
test_install_package "libatlas-base-dev"
|
|
test_install_package "libpgm-5.1-0" "--force-yes"
|
|
test_install_package "libpgm-dev" "--force-yes"
|
|
test_install_package linux-headers-`uname -r`
|
|
# for ODTONE git clone
|
|
test_install_package "git"
|
|
|
|
test_install_asn1c_4_rrc_cellular
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# COMPILE oaisim"
|
|
echo_success "###############################"
|
|
cd $OPENAIR_TARGETS/SIMU/USER
|
|
#make clean > /dev/null
|
|
#make cleancell >/dev/null
|
|
echo_success "Executing: make oaisim NAS=1 OAI_NW_DRIVER_TYPE_ETHERNET=1 ENABLE_ITTI=1 USER_MODE=1 OPENAIR2=1 ENABLE_RAL=1 MIH_C_MEDIEVAL_EXTENSIONS=1 RLC_STOP_ON_LOST_PDU=1 Rel10=1 -j`grep -c ^processor /proc/cpuinfo `"
|
|
make oaisim NAS=1 OAI_NW_DRIVER_TYPE_ETHERNET=1 ENABLE_ITTI=1 USER_MODE=1 OPENAIR2=1 ENABLE_RAL=1 MIH_C_MEDIEVAL_EXTENSIONS=1 RLC_STOP_ON_LOST_PDU=1 Rel10=1 -j`grep -c ^processor /proc/cpuinfo `
|
|
#make oaisim NAS=1 OAI_NW_DRIVER_TYPE_ETHERNET=1 ENABLE_ITTI=1 USER_MODE=1 OPENAIR2=1 ENABLE_RAL=1 MIH_C_MEDIEVAL_EXTENSIONS=1 Rel10=1
|
|
if [[ $? -eq 2 ]] ; then
|
|
exit 1
|
|
fi
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# COMPILE IP kernel drivers"
|
|
echo_success "###############################"
|
|
echo_success "Compiling IP Drivers"
|
|
cd $OPENAIR2_DIR
|
|
make naslite_netlink_ether.ko
|
|
cd $OPENAIR2_DIR/NAS/DRIVER/LITE/RB_TOOL/
|
|
make
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# COMPILE MIH-F"
|
|
echo_success "###############################"
|
|
cd $ODTONE_ROOT
|
|
b2 --boost-root=$BOOST_ROOT linkflags=-lpthread
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# COMPILE MIH-USER"
|
|
echo_success "###############################"
|
|
cd $ODTONE_ROOT/app/lte_test_user/
|
|
b2 --boost-root=$BOOST_ROOT linkflags=-lrt linkflags=-lpthread
|
|
|
|
|
|
echo_success "\n###############################"
|
|
echo_success "# COMPILE ITTI ANALYSER"
|
|
echo_success "###############################"
|
|
cd $OPENAIR_HOME/common/utils/itti_analyzer
|
|
if [ ! -f $OPENAIR_HOME/common/utils/itti_analyzer/Makefile ]
|
|
then
|
|
./configure
|
|
fi
|
|
make install
|
|
|
|
|
|
|