Skip to content

Commit

Permalink
Adding custom build target to build osmo-gsm-tester trial
Browse files Browse the repository at this point in the history
  • Loading branch information
suttonpd authored and andrepuschmann committed Apr 15, 2020
1 parent 11a8db2 commit b1a127a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -500,6 +500,12 @@ configure_file(
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)

########################################################################
# Create optional target to build osmo-gsm-tester trial
########################################################################
add_custom_target(trial
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build_trial.sh)

########################################################################
# Add -fPIC property to all targets
########################################################################
Expand Down Expand Up @@ -560,4 +566,4 @@ else(ENABLE_SRSEPC)
message(STATUS "srsEPC build disabled")
endif(ENABLE_SRSEPC)

add_subdirectory(test)
add_subdirectory(test)
14 changes: 14 additions & 0 deletions build_trial.sh
@@ -0,0 +1,14 @@
#!/bin/bash

rm -rf sysroot && mkdir sysroot
cmake -DCMAKE_INSTALL_PREFIX="sysroot/" ../
make install
this="$(date +%Y-%m-%d_%H_%M_%S)"
trialdir="srslte_trial_${this}"
tar="srslte.build-${this}.tgz"
mkdir ${trialdir}
tar czf "${trialdir}/$tar" -C "sysroot" .
md5sum "${trialdir}/$tar" >>${trialdir}/checksums.md5

echo "Built ${trialdir}"

0 comments on commit b1a127a

Please sign in to comment.