Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
69d9c0f7
Commit
69d9c0f7
authored
Jul 10, 2018
by
Elena Lukashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding lapack-dev and lapacke-dev to build script
parent
a9f583cd
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
203 deletions
+207
-203
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+14
-12
targets/build_helper.bash
targets/build_helper.bash
+193
-191
No files found.
cmake_targets/tools/build_helper
View file @
69d9c0f7
...
@@ -56,7 +56,7 @@ white='\E[37m'
...
@@ -56,7 +56,7 @@ white='\E[37m'
reset_color='\E[00m'
reset_color='\E[00m'
COLORIZE=1
COLORIZE=1
cecho() {
cecho() {
# Color-echo
# Color-echo
# arg1 = message
# arg1 = message
# arg2 = color
# arg2 = color
...
@@ -147,10 +147,10 @@ clean_kernel() {
...
@@ -147,10 +147,10 @@ clean_kernel() {
clean_all_files() {
clean_all_files() {
set_openair_env
set_openair_env
dir=$OPENAIR_DIR/cmake_targets
dir=$OPENAIR_DIR/cmake_targets
rm -rf $dir/log $OPENAIR_DIR/targets/bin/*
rm -rf $dir/log $OPENAIR_DIR/targets/bin/*
rm -rf $dir/lte_build_oai $dir/lte-simulators/build
rm -rf $dir/lte_build_oai $dir/lte-simulators/build
rm -rf $dir/oaisim_build_oai/build $dir/oaisim_build_oai/CMakeLists.txt
rm -rf $dir/oaisim_build_oai/build $dir/oaisim_build_oai/CMakeLists.txt
rm -rf $dir/autotests/bin $dir/autotests/log $dir/autotests/*/build
rm -rf $dir/autotests/bin $dir/autotests/log $dir/autotests/*/build
}
}
###################################
###################################
...
@@ -272,7 +272,7 @@ check_install_usrp_uhd_driver(){
...
@@ -272,7 +272,7 @@ check_install_usrp_uhd_driver(){
v=$(lsb_release -cs)
v=$(lsb_release -cs)
$SUDO apt-add-repository --remove "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/$v $v main"
$SUDO apt-add-repository --remove "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/$v $v main"
# The new USRP repository
# The new USRP repository
# Raphael Defosseux: Adding a loop on adding PPA because in CI the gpg key retrieve may
# Raphael Defosseux: Adding a loop on adding PPA because in CI the gpg key retrieve may
# timeout due to proxy / network latencies in Eurecom on VM
# timeout due to proxy / network latencies in Eurecom on VM
echo_info "\nAdding PPA repository ettusresearch/uhd\n"
echo_info "\nAdding PPA repository ettusresearch/uhd\n"
x=0
x=0
...
@@ -352,7 +352,7 @@ check_install_bladerf_driver(){
...
@@ -352,7 +352,7 @@ check_install_bladerf_driver(){
fi
fi
$SUDO apt-get install -y --allow-unauthenticated bladerf libbladerf-dev
$SUDO apt-get install -y --allow-unauthenticated bladerf libbladerf-dev
$SUDO apt-get install -y --allow-unauthenticated bladerf-firmware-fx3
$SUDO apt-get install -y --allow-unauthenticated bladerf-firmware-fx3
$SUDO apt-get install -y --allow-unauthenticated bladerf-fpga-hostedx40
$SUDO apt-get install -y --allow-unauthenticated bladerf-fpga-hostedx40
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
install_bladerf_driver_from_source
install_bladerf_driver_from_source
else
else
...
@@ -373,7 +373,7 @@ check_install_lmssdr_driver(){
...
@@ -373,7 +373,7 @@ check_install_lmssdr_driver(){
echo_error "lmssdr support implies installing lmssdr drivers and tools" \
echo_error "lmssdr support implies installing lmssdr drivers and tools" \
" from sources. check:"
" from sources. check:"
echo_info "https://open-cells.com/index.php/2017/05/10/limesdr-installation/"
echo_info "https://open-cells.com/index.php/2017/05/10/limesdr-installation/"
echo_fatal "Cannot compile lmssdr device"
echo_fatal "Cannot compile lmssdr device"
fi
fi
...
@@ -470,7 +470,7 @@ check_install_additional_tools (){
...
@@ -470,7 +470,7 @@ check_install_additional_tools (){
python2-matplotlib"
python2-matplotlib"
fi
fi
$SUDO $INSTALLER install -y $PACKAGE_LIST
$SUDO $INSTALLER install -y $PACKAGE_LIST
$SUDO rm -fr /opt/ssh
$SUDO rm -fr /opt/ssh
$SUDO GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/ssh.git /opt/ssh
$SUDO GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/ssh.git /opt/ssh
...
@@ -549,6 +549,8 @@ check_install_oai_software() {
...
@@ -549,6 +549,8 @@ check_install_oai_software() {
iptables-dev \
iptables-dev \
libatlas-base-dev \
libatlas-base-dev \
libblas-dev \
libblas-dev \
liblapack-dev\
liblapacke-dev\
libffi-dev \
libffi-dev \
libforms-bin \
libforms-bin \
libforms-dev \
libforms-dev \
...
@@ -602,7 +604,7 @@ check_install_oai_software() {
...
@@ -602,7 +604,7 @@ check_install_oai_software() {
# Fedora repos already contain gccxml's successor castxml.
# Fedora repos already contain gccxml's successor castxml.
$SUDO $INSTALLER install -y castxml
$SUDO $INSTALLER install -y castxml
fi
fi
$SUDO $INSTALLER install -y \
$SUDO $INSTALLER install -y \
autoconf \
autoconf \
automake \
automake \
...
@@ -689,7 +691,7 @@ install_asn1c_from_source(){
...
@@ -689,7 +691,7 @@ install_asn1c_from_source(){
}
}
#################################################
#################################################
# 2. compile
# 2. compile
################################################
################################################
install_nas_tools() {
install_nas_tools() {
...
@@ -718,7 +720,7 @@ set_openair_env(){
...
@@ -718,7 +720,7 @@ set_openair_env(){
[ -f "/.$fullpath" ] || fullpath=`readlink -f $PWD/$fullpath`
[ -f "/.$fullpath" ] || fullpath=`readlink -f $PWD/$fullpath`
openair_path=${fullpath%/cmake_targets/*}
openair_path=${fullpath%/cmake_targets/*}
openair_path=${openair_path%/targets/*}
openair_path=${openair_path%/targets/*}
openair_path=${openair_path%/openair[123]/*}
openair_path=${openair_path%/openair[123]/*}
export OPENAIR_DIR=$openair_path
export OPENAIR_DIR=$openair_path
export OPENAIR1_DIR=$openair_path/openair1
export OPENAIR1_DIR=$openair_path/openair1
export OPENAIR2_DIR=$openair_path/openair2
export OPENAIR2_DIR=$openair_path/openair2
...
@@ -735,7 +737,7 @@ ppid=$$
...
@@ -735,7 +737,7 @@ ppid=$$
arraycounter=1
arraycounter=1
echo_info "** Trapped CTRL-C. Killing all subprocesses now..."
echo_info "** Trapped CTRL-C. Killing all subprocesses now..."
echo_info "** Calling sync now..."
echo_info "** Calling sync now..."
sync
sync
while true
while true
do
do
FORLOOP=FALSE
FORLOOP=FALSE
...
@@ -753,7 +755,7 @@ do
...
@@ -753,7 +755,7 @@ do
arraycounter=`expr $arraycounter - 1`
arraycounter=`expr $arraycounter - 1`
## We want to kill child process id first and then parent id's
## We want to kill child process id first and then parent id's
while [ $arraycounter -ne 0 ]
while [ $arraycounter -ne 0 ]
do
do
echo "first we send ctrl-c to program"
echo "first we send ctrl-c to program"
$SUDO kill -INT "${procid[$arraycounter]}"
$SUDO kill -INT "${procid[$arraycounter]}"
sleep 5
sleep 5
...
...
targets/build_helper.bash
View file @
69d9c0f7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment