From c457a9cbc03f0e49facb72cf49b722a6dbccb8bf Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Tue, 23 Dec 2014 15:28:07 +0000 Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6319 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/build_helper.bash | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/targets/build_helper.bash b/targets/build_helper.bash index de723b833d..ebc3084f50 100755 --- a/targets/build_helper.bash +++ b/targets/build_helper.bash @@ -662,7 +662,7 @@ compile_hss() { echo_error "Build failed, exiting" return 1 else - cp -f ./openair-hss $OPENAIR_TARGETS/bin + cp -pf ./openair-hss $OPENAIR_TARGETS/bin return 0 fi else @@ -715,7 +715,7 @@ compile_epc() { echo_error "Build failed, exiting" return 1 else - cp -f ./OAI_EPC/oai_epc $OPENAIR_TARGETS/bin + cp -pf ./OAI_EPC/oai_epc $OPENAIR_TARGETS/bin fi else echo_error "Configure failed, exiting" @@ -728,8 +728,8 @@ compile_epc() { echo_error "Build GTPUAH module failed, exiting" return 1 else - cp -fv ./Bin/libxt_*.so /lib/xtables - cp -fv ./Bin/*.ko $OPENAIR_TARGETS/bin + cp -pfv ./Bin/libxt_*.so /lib/xtables + cp -pfv ./Bin/*.ko $OPENAIR_TARGETS/bin fi cd $OPENAIRCN_DIR/GTPV1-U/GTPURH; @@ -738,8 +738,8 @@ compile_epc() { echo_error "Build GTPURH module failed, exiting" return 1 else - cp -fv ./Bin/libxt_*.so /lib/xtables - cp -fv ./Bin/*.ko $OPENAIR_TARGETS/bin + cp -pfv ./Bin/libxt_*.so /lib/xtables + cp -pfv ./Bin/*.ko $OPENAIR_TARGETS/bin fi return 0 } @@ -754,6 +754,7 @@ compile_exmimo2_driver() { compile_ltesoftmodem() { cd $OPENAIR_TARGETS/RT/USER if [ -f Makefile ]; then + rm -f ./lte-softmodem echo "LTE softmodem compiling directives: $SOFTMODEM_DIRECTIVES" if [ $OAI_CLEAN -ne 0 ]; then echo "Cleaning LTE softmodem" @@ -769,11 +770,11 @@ compile_ltesoftmodem() { echo_error "Build lte-softmodem failed, returning" return 1 else - cp -f ./lte-softmodem $OPENAIR_TARGETS/bin + cp -pf ./lte-softmodem $OPENAIR_TARGETS/bin return 0 fi else - cp -f ./lte-softmodem $OPENAIR_TARGETS/bin + cp -pf ./lte-softmodem $OPENAIR_TARGETS/bin return 0 fi else @@ -792,7 +793,7 @@ compile_oaisim() { echo_error "Build oaisim failed, returning" return 1 else - cp -f ./oaisim $OPENAIR_TARGETS/bin + cp -pf ./oaisim $OPENAIR_TARGETS/bin return 0 fi else @@ -811,13 +812,13 @@ compile_unisim() { echo_error "Build unisim failed, returning" return 1 else - cp -f ./dlsim $OPENAIR_TARGETS/bin - cp -f ./ulsim $OPENAIR_TARGETS/bin - cp -f ./pucchsim $OPENAIR_TARGETS/bin - cp -f ./prachsim $OPENAIR_TARGETS/bin - cp -f ./pdcchsim $OPENAIR_TARGETS/bin - cp -f ./pbchsim $OPENAIR_TARGETS/bin - cp -f ./mbmssim $OPENAIR_TARGETS/bin + cp -pf ./dlsim $OPENAIR_TARGETS/bin + cp -pf ./ulsim $OPENAIR_TARGETS/bin + cp -pf ./pucchsim $OPENAIR_TARGETS/bin + cp -pf ./prachsim $OPENAIR_TARGETS/bin + cp -pf ./pdcchsim $OPENAIR_TARGETS/bin + cp -pf ./pbchsim $OPENAIR_TARGETS/bin + cp -pf ./mbmssim $OPENAIR_TARGETS/bin return 0 fi else -- GitLab