2 #/*****************************************************************************
4 # Copyright 2019 AT&T Intellectual Property *
5 # Copyright 2019 Nokia *
7 # Licensed under the Apache License, Version 2.0 (the "License"); *
8 # you may not use this file except in compliance with the License. *
9 # You may obtain a copy of the License at *
11 # http://www.apache.org/licenses/LICENSE-2.0 *
13 # Unless required by applicable law or agreed to in writing, software *
14 # distributed under the License is distributed on an "AS IS" BASIS, *
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
16 # See the License for the specific language governing permissions and *
17 # limitations under the License. *
19 #******************************************************************************/
25 source $E2SIM_DIR/tools/build_helper.bash
30 This program installs E2 Simulator
31 You should have ubuntu 14.xx, updated, and the Linux kernel >= 3.14
32 The program is run by default with no option
35 ./build_e2sim [OPTIONS]
39 Erase all files to make a rebuild from start
50 echo_info "Will clean all previously producted files under build/"
51 rm -rf $E2SIM_DIR/build
52 echo_success "Clean Done"
57 echo "Will build docker image ${DOCKER_IMAGE}:${E2SIM_VERSION}"
58 sudo docker build -f docker/Dockerfile -t $DOCKER_IMAGE:$E2SIM_VERSION .
70 echo_error "Unknown option $1"
74 BUILD_DIR=$E2SIM_DIR/build
77 echo_info "Will build e2sim"
83 echo_success "e2sim compiled"