contrib: Add scripts to build srsLTE software
Change-Id: Id9d63920a44a80af187e649c9be5fd7498fa5f44
This commit is contained in:
parent
0cb2178812
commit
addf78ecb6
|
@ -142,10 +142,18 @@ build_repo_dir() {
|
||||||
|
|
||||||
cd "$dep/${dir}"
|
cd "$dep/${dir}"
|
||||||
|
|
||||||
set +x; echo; echo; set -x
|
if [ -f configure.ac ]; then
|
||||||
autoreconf -fi
|
set +x; echo; echo; set -x
|
||||||
set +x; echo; echo; set -x
|
autoreconf -fi
|
||||||
./configure --prefix="$prefix" --with-systemdsystemunitdir=no $CONFIGURE_FLAGS $configure_opts
|
set +x; echo; echo; set -x
|
||||||
|
./configure --prefix="$prefix" --with-systemdsystemunitdir=no $CONFIGURE_FLAGS $configure_opts
|
||||||
|
elif [ -f CMakeLists.txt ]; then
|
||||||
|
rm -rf build && mkdir build && cd build || exit 1
|
||||||
|
set +x; echo; echo; set -x
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=$prefix ../
|
||||||
|
else
|
||||||
|
echo "Unknwown build system" && exit 1
|
||||||
|
fi
|
||||||
set +x; echo; echo; set -x
|
set +x; echo; echo; set -x
|
||||||
make -j8 || make # libsmpp34 can't build in parallel
|
make -j8 || make # libsmpp34 can't build in parallel
|
||||||
set +x; echo; echo; set -x
|
set +x; echo; echo; set -x
|
||||||
|
@ -213,6 +221,9 @@ create_bin_tgz() {
|
||||||
|
|
||||||
prune_files bin "$wanted_binaries_bin"
|
prune_files bin "$wanted_binaries_bin"
|
||||||
prune_files sbin "$wanted_binaries_sbin"
|
prune_files sbin "$wanted_binaries_sbin"
|
||||||
|
# Drop all static libraries if exist:
|
||||||
|
rm -f $prefix_real/lib/*.a
|
||||||
|
rm -f $prefix_real/lib/*.la
|
||||||
|
|
||||||
cd "$prefix_real"
|
cd "$prefix_real"
|
||||||
add_rpath
|
add_rpath
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e -x
|
||||||
|
|
||||||
|
base="$PWD"
|
||||||
|
name="srslte"
|
||||||
|
git_url="https://github.com/srsLTE/"
|
||||||
|
. "$(dirname "$0")/jenkins-build-common.sh"
|
||||||
|
|
||||||
|
#TODO: make sure libconfig, zeroMQ is installed
|
||||||
|
build_repo srsLTE
|
||||||
|
|
||||||
|
create_bin_tgz "srsue srsenb srsepc"
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
from osmo_gsm_tester.testenv import *
|
||||||
|
|
||||||
|
#epc = suite.epc()
|
||||||
|
#enb = suite.enb()
|
||||||
|
ue = suite.modem()
|
||||||
|
|
||||||
|
#enb.start()
|
||||||
|
#epc.enb_add(enb)
|
||||||
|
#epc.start()
|
||||||
|
|
||||||
|
#wait(epc.enb_is_connected, enb)
|
||||||
|
|
||||||
|
#hss/epc.subscriber_add(ue)
|
||||||
|
|
||||||
|
#ue.connect(epc.mcc_mnc())
|
||||||
|
ue.connect()
|
||||||
|
|
||||||
|
|
||||||
|
print('waiting for modem to attach...')
|
||||||
|
#wait(ue.is_connected, msc.mcc_mnc())
|
||||||
|
sleep(10)
|
|
@ -0,0 +1,6 @@
|
||||||
|
resources:
|
||||||
|
ip_address:
|
||||||
|
- times: 1
|
||||||
|
modem:
|
||||||
|
- times: 1
|
||||||
|
type: srsue
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
git describe --abbrev=8 --dirty | sed 's/v\([^-]*\)-\([^-]*\)-\(.*\)/\1.dev\2.\3/' > version
|
|
||||||
cat version
|
|
||||||
echo "# osmo-gsm-tester version.
|
|
||||||
# Automatically generated by update_version.sh.
|
|
||||||
# Gets imported by __init__.py.
|
|
||||||
|
|
||||||
_version = '$(cat version)'" \
|
|
||||||
> src/osmo_gsm_tester/_version.py
|
|
Loading…
Reference in New Issue