contrib: Add build script for open5gs

Change-Id: I0ed43dadbfe08811dd72064ee7332d0872882dfd
This commit is contained in:
Pau Espin 2021-03-15 11:27:15 +01:00
parent 3b351716a9
commit 6231c3c657
2 changed files with 19 additions and 0 deletions

View File

@ -151,6 +151,13 @@ build_repo_dir() {
rm -rf build && mkdir build && cd build || exit 1
set +x; echo; echo; set -x
cmake -DCMAKE_INSTALL_PREFIX=$prefix $configure_opts ../
elif [ -f meson.build ]; then
rm -rf build && mkdir build && cd build || exit 1
set +x; echo; echo; set -x
meson ../ --prefix=$prefix $configure_opts
ninja -j8
ninja install
return
else
echo "Unknwown build system" && exit 1
fi

View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e -x
base="$PWD"
name="open5gs"
git_url="${git_url:-https://github.com/open5gs}"
project_name="${project_name:-open5gs}"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo $project_name "main" $configure_opts
create_bin_tgz "open5gs-mmed"