Commit 54ed9077 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6217 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent db9fbc9f
...@@ -690,6 +690,13 @@ compile_epc() { ...@@ -690,6 +690,13 @@ compile_epc() {
fi fi
} }
compile_exmimo2_driver() {
cd $OPENAIR_TARGETS/ARCH/EXMIMO/DRIVER/eurecom && make clean && make || exit 1
cd $OPENAIR_TARGETS/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT && make clean && make || exit 1
# TO DO CHECKS...
}
compile_ltesoftmodem() { compile_ltesoftmodem() {
cd $OPENAIR_TARGETS/RT/USER cd $OPENAIR_TARGETS/RT/USER
if [ -f Makefile ]; then if [ -f Makefile ]; then
......
...@@ -381,63 +381,65 @@ build_enb(){ ...@@ -381,63 +381,65 @@ build_enb(){
unisim_compiled=1 unisim_compiled=1
if [ $TARGET = "ALL" ]; then if [ $TARGET = "ALL" ]; 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"
echo "################ compile_oaisim #################" >> bin/install_log.txt echo "################ compile_oaisim #################" >> bin/install_log.txt
output=$(compile_oaisim >> bin/install_log.txt 2>&1 ) output=$(compile_oaisim >> bin/install_log.txt 2>&1 )
oaisim_compiled=$? oaisim_compiled=$?
check_for_oaisim_executable check_for_oaisim_executable
echo_info "7.2 finished oaisim target : check the installation log file bin/install_log.txt" echo_info "7.2 finished oaisim target : check the installation log file bin/install_log.txt"
echo "################## compile_unisim ##################" >> bin/install_log.txt echo "################## compile_unisim ##################" >> bin/install_log.txt
output=$(compile_unisim >> bin/install_log.txt 2>&1 ) output=$(compile_unisim >> bin/install_log.txt 2>&1 )
unisim_compiled=$? unisim_compiled=$?
check_for_dlsim_executable check_for_dlsim_executable
check_for_ulsim_executable check_for_ulsim_executable
check_for_pucchsim_executable check_for_pucchsim_executable
check_for_prachsim_executable check_for_prachsim_executable
check_for_pdcchsim_executable check_for_pdcchsim_executable
check_for_pbchsim_executable check_for_pbchsim_executable
check_for_mbmssim_executable check_for_mbmssim_executable
echo_info "7.3 finished unisim target : check the installation log file bin/install_log.txt" echo_info "7.3 finished unisim target : check the installation log file bin/install_log.txt"
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"
fi if [ $HW = "EXMIMO" ]; then
if [ $TARGET = "OAISIM" ]; then compile_exmimo2_driver
echo "################ compile_oaisim #################" >> bin/install_log.txt fi
output=$(compile_oaisim >> bin/install_log.txt 2>&1 ) fi
oaisim_compiled=$? if [ $TARGET = "OAISIM" ]; then
check_for_oaisim_executable echo "################ compile_oaisim #################" >> bin/install_log.txt
echo_info "7.2 finished oaisim target: check the installation log file bin/install_log.txt" output=$(compile_oaisim >> bin/install_log.txt 2>&1 )
oaisim_compiled=$?
fi check_for_oaisim_executable
if [ $TARGET = "UNISIM" ]; then echo_info "7.2 finished oaisim target: check the installation log file bin/install_log.txt"
echo "################## compile_unisim ##################" >> bin/install_log.txt
output=$(compile_unisim >> bin/install_log.txt 2>&1 ) fi
unisim_compiled=$? if [ $TARGET = "UNISIM" ]; then
check_for_dlsim_executable echo "################## compile_unisim ##################" >> bin/install_log.txt
check_for_ulsim_executable output=$(compile_unisim >> bin/install_log.txt 2>&1 )
check_for_pucchsim_executable unisim_compiled=$?
check_for_prachsim_executable check_for_dlsim_executable
check_for_pdcchsim_executable check_for_ulsim_executable
check_for_pbchsim_executable check_for_pucchsim_executable
check_for_mbmssim_executable check_for_prachsim_executable
echo_info "7.3 finished unisim target: check the installation log file bin/install_log.txt" check_for_pdcchsim_executable
check_for_pbchsim_executable
fi check_for_mbmssim_executable
echo_info "7.3 finished unisim target: check the installation log file bin/install_log.txt"
fi
fi fi
...@@ -448,18 +450,18 @@ build_enb(){ ...@@ -448,18 +450,18 @@ build_enb(){
echo_info "8. Installing ..." echo_info "8. Installing ..."
if [ $softmodem_compiled = 0 ]; then if [ $softmodem_compiled = 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 = 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 = 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
echo_info "build terminated, binaries are located in bin/" echo_info "build terminated, binaries are located in bin/"
...@@ -651,7 +653,10 @@ esac ...@@ -651,7 +653,10 @@ esac
############################################ ############################################
echo_info "11. Running ... To be done" echo_info "11. Running ... To be done"
if [ $TARGET = "SOFTMODEM" ]; then if [ $TARGET = "SOFTMODEM" ]; then
echo_info "############# running ltesoftmodem #############" if [ $HW = "EXMIMO" ]; then
bash $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh
fi
echo "############# running ltesoftmodem #############"
$OPENAIR_TARGETS/RT/USER/lte-softmodem $OPENAIR_TARGETS/RT/USER/lte-softmodem
cd $OPENAIR_TARGETS/RT/USER;bash ./init_exmimo2.sh; cd $OPENAIR_TARGETS/RT/USER;bash ./init_exmimo2.sh;
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
......
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