2 #******************************************************************************
4 # Copyright (c) 2019 Intel.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 #******************************************************************************/
21 trap 'l_c=$current_command; current_command=$BASH_COMMAND' DEBUG
22 trap 'echo "\"${l_c}\" command exited with code $?."' EXIT
24 XRAN_FH_LIB_DIR=$XRAN_DIR/lib
25 XRAN_FH_APP_DIR=$XRAN_DIR/app
26 XRAN_FH_TEST_DIR=$XRAN_DIR/test/test_xran
32 echo Number of commandline arguments: $#
60 echo $key is unknown command # unknown option
63 shift # past argument or value
68 echo 'MLOG folder is not set. Disable MLOG (MLOG_DIR='$MLOG_DIR')'
71 echo 'MLOG folder is set. Enable MLOG (MLOG_DIR='$MLOG_DIR')'
75 if [ -z "$DIR_WIRELESS_FW" ]
77 echo 'DIR_WIRELESS_FW folder is not set. Disable FWK (DIR_WIRELESS_FW='$DIR_WIRELESS_FW')'
80 echo 'DIR_WIRELESS_FW folder is set. Enable FWK (DIR_WIRELESS_FW='$DIR_WIRELESS_FW')'
85 echo 'Building xRAN Library for O-RU'
86 echo "LIBXRANSO = ${LIBXRANSO}"
92 make $COMMAND_LINE MLOG=${MLOG} LIBXRANSO=${LIBXRANSO} ORU=${ORU}
94 if [ "$SAMPLEAPP" -eq "1" ]
96 echo 'Building xRAN O-RU Test Application'
98 make $COMMAND_LINE MLOG=${MLOG} FWK=${FWK} ORU=${ORU}
100 echo 'Not building xRAN Test Application...'
104 echo 'Building xRAN Library for O-DU'
105 echo "LIBXRANSO = ${LIBXRANSO}"
106 echo "MLOG = ${MLOG}"
111 make $COMMAND_LINE MLOG=${MLOG} LIBXRANSO=${LIBXRANSO} ORU=${ORU}
113 if [ "$SAMPLEAPP" -eq "1" ]
115 echo 'Building xRAN O-DU Test Application'
117 make $COMMAND_LINE MLOG=${MLOG} FWK=${FWK} ORU=${ORU}
119 echo 'Not building xRAN Test Application...'
122 if [ -z ${GTEST_ROOT+x} ];
124 echo "GTEST_ROOT is not set. Unit tests are not compiled";
126 echo 'Building xRAN Test Application ('$GTEST_ROOT')'