Commit 4181cfa9 authored by yankuo's avatar yankuo

modify build_helper and add oxgrf.so

parent 4e3904d1
......@@ -686,6 +686,7 @@ check_install_oai_software() {
install_asn1c_from_source $1
install_simde_from_source $1
install_oxgrf_from_source $1
}
install_asn1c_from_source(){
......@@ -696,7 +697,9 @@ install_asn1c_from_source(){
$SUDO $INSTALLER -y install bison flex
$SUDO rm -rf /tmp/asn1c
# GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
git clone https://github.com/mouse07410/asn1c /tmp/asn1c
#git clone https://github.com/mouse07410/asn1c /tmp/asn1c
sudo wget -c http://www.opensource5g.org:19780/share/oai/libs/asn1c.tar.gz -P /tmp/
tar -zxvf /tmp/asn1c.tar.gz -C /tmp
cd /tmp/asn1c
git checkout vlm_master
autoreconf -iv
......@@ -715,12 +718,33 @@ install_simde_from_source(){
echo_info "\nInstalling SIMDE from source without test cases (header files only)"
cd /tmp
$SUDO rm -rf /tmp/simde
git clone https://github.com/simd-everywhere/simde-no-tests.git /tmp/simde
#git clone https://github.com/simd-everywhere/simde-no-tests.git /tmp/simde
sudo wget -c http://www.opensource5g.org:19780/share/oai/libs/simde.tar.gz -P /tmp/
tar -zxvf /tmp/simde.tar.gz -C /tmp
cd /tmp/simde
# brute force copy into /usr/include
$SUDO \cp -rv ../simde /usr/include
}
install_oxgrf_from_source(){
echo_info "\nInstalling OXGRF from source without test cases (header files only)"
if [ ! -f /usr/local/include/oxgrf_api_ss.h ]; then
cp $OPENAIR_DIR/radio/OXGRF/oxgrf_api_ss.h /usr/local/include
$SUDO chmod +x /usr/local/include/oxgrf_api_ss.h
echo "oxgrf_api_ss.h installed successfully"
else
echo "oxgrf_api_ss.h is already existed"
fi
if [ ! -f /usr/local/include/liboxgrf_ss.so ]; then
cp $OPENAIR_DIR/radio/OXGRF/liboxgrf_ss.so /usr/local/lib
$SUDO chmod +x /usr/local/lib/liboxgrf_ss.so
$SUDO ldconfig /usr/local/lib
echo "liboxgrf_ss.so installed successfully"
else
echo "liboxgrf_ss.so is already existed"
fi
}
#################################################
# 2. compile
################################################
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment