upload info.yaml file
[o-du/phy.git] / fhi_lib / lib / build_ci.sh
1 #!/bin/bash
2 #/******************************************************************************
3 #*
4 #*   Copyright (c) 2019 Intel.
5 #*
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
9 #*
10 #*       http://www.apache.org/licenses/LICENSE-2.0
11 #*
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.
17 #*
18 #*******************************************************************************/
19 #
20 # Please see example_odu_fhi_lib_build.txt to find how to set up the global variables used by this script
21 # and the fhi_lib makefile
22
23 XRAN_FH_LIB_DIR=$XRAN_DIR/lib
24 XRAN_FH_APP_DIR=$XRAN_DIR/app
25 XRAN_FH_TEST_DIR=$XRAN_DIR/test/test_xran
26 LIBXRANSO=0
27 MLOG=0
28 COMMAND_LINE=
29
30 echo Number of commandline arguments: $#
31 while [[ $# -ne 0 ]]
32 do
33 key="$1"
34
35 #echo Parsing: $key
36 case $key in
37     LIBXRANSO)
38     LIBXRANSO=1
39     ;;
40     MLOG)
41     MLOG=1
42     ;;
43     xclean)
44     COMMAND_LINE+=$key
45     COMMAND_LINE+=" "
46         ;;
47     *)
48     echo $key is unknown command        # unknown option
49     ;;
50 esac
51 shift # past argument or value
52 done
53
54 if [ -z "$MLOG_DIR" ]
55 then
56         echo 'MLOG folder is not set. Disable MLOG (MLOG_DIR='$MLOG_DIR')'
57         MLOG=0
58 else
59         echo 'MLOG folder is set. Enable MLOG (MLOG_DIR='$MLOG_DIR')'
60         MLOG=1
61 fi
62
63 echo 'Building xRAN Library'
64 echo "LIBXRANSO = ${LIBXRANSO}"
65 echo "MLOG      = ${MLOG}"
66
67 cd $XRAN_FH_LIB_DIR
68 make $COMMAND_LINE MLOG=${MLOG} LIBXRANSO=${LIBXRANSO} #DEBUG=1 VERBOSE=1
69
70 #echo 'Building xRAN Test Application'
71 #cd $XRAN_FH_APP_DIR
72 #make $COMMAND_LINE MLOG=${MLOG} #DEBUG=1 VERBOSE=1
73
74 #if [ -z ${GTEST_ROOT+x} ];
75 #then
76 #    echo "GTEST_ROOT is not set. Unit tests are not compiled";
77 #else
78 #       echo 'Building xRAN Test Application ('$GTEST_ROOT')'
79 #       cd $XRAN_FH_TEST_DIR
80 #       make clean;
81 #       make
82 #fi
83