From b06485fcadadda0236558598681c1c4eb53f605e Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 14 May 2017 02:13:40 +0200 Subject: cosmetic: contrib: add 'build-' to script names Distinguish the scripts that build binaries from the others by adding "build-" to their names. Change-Id: I0c3b0c06210f5cb6a936c5e90ebc9167b57eeae2 --- contrib/jenkins-build-osmo-bts-octphy.sh | 70 ++++++++++++++++++++++++++++++ contrib/jenkins-build-osmo-bts-sysmo.sh | 74 ++++++++++++++++++++++++++++++++ contrib/jenkins-build-osmo-bts-trx.sh | 69 +++++++++++++++++++++++++++++ contrib/jenkins-build-osmo-nitb.sh | 69 +++++++++++++++++++++++++++++ contrib/jenkins-osmo-bts-octphy.sh | 70 ------------------------------ contrib/jenkins-osmo-bts-sysmo.sh | 74 -------------------------------- contrib/jenkins-osmo-bts-trx.sh | 69 ----------------------------- contrib/jenkins-osmo-nitb.sh | 69 ----------------------------- 8 files changed, 282 insertions(+), 282 deletions(-) create mode 100755 contrib/jenkins-build-osmo-bts-octphy.sh create mode 100755 contrib/jenkins-build-osmo-bts-sysmo.sh create mode 100755 contrib/jenkins-build-osmo-bts-trx.sh create mode 100755 contrib/jenkins-build-osmo-nitb.sh delete mode 100755 contrib/jenkins-osmo-bts-octphy.sh delete mode 100755 contrib/jenkins-osmo-bts-sysmo.sh delete mode 100755 contrib/jenkins-osmo-bts-trx.sh delete mode 100755 contrib/jenkins-osmo-nitb.sh (limited to 'contrib') diff --git a/contrib/jenkins-build-osmo-bts-octphy.sh b/contrib/jenkins-build-osmo-bts-octphy.sh new file mode 100755 index 0000000..4045948 --- /dev/null +++ b/contrib/jenkins-build-osmo-bts-octphy.sh @@ -0,0 +1,70 @@ +#!/bin/sh +set -x -e + +base="$PWD" +prefix="$base/inst-osmo-bts-octphy" + +rm -f "$base/osmo-bts-octphy*.tgz" + +deps=" +libosmocore +libosmo-abis +osmo-bts +" + +have_repo() { + repo="$1" + cd "$base" + if [ ! -d "$repo" ]; then + git clone "git://git.osmocom.org/$repo" "$repo" + fi + cd "$repo" + git clean -dxf + git fetch origin + git reset --hard origin/master + git rev-parse HEAD + cd "$base" +} + +# for gsm_data_shared.* +have_repo openbsc + +# octphy headers +have_repo octphy-2g-headers + + +rm -rf "$prefix" +mkdir -p "$prefix" + +export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" +export LD_LIBRARY_PATH="$prefix/lib" + +for dep in $deps; do + have_repo "$dep" + cd "$dep" + rm -rf * + git checkout . + + echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-bts-octphy_git_hashes.txt" + + autoreconf -fi + + config_opts="" + + case "$repo" in + 'osmo-bts') config_opts="$config_opts --enable-octphy --with-octsdr-2g=$base/octphy-2g-headers" ;; + esac + + ./configure --prefix="$prefix" $config_opts + make -j8 + make install +done + +# build the archive that is going to be copied to the tester +rm "$base"/*.tgz "$base"/*.md5 || true +cd "$prefix" +this="osmo-bts-octphy.build-${BUILD_NUMBER}" +tar="${this}.tgz" +tar czf "$base/$tar" * +cd "$base" +md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-build-osmo-bts-sysmo.sh b/contrib/jenkins-build-osmo-bts-sysmo.sh new file mode 100755 index 0000000..f321b8c --- /dev/null +++ b/contrib/jenkins-build-osmo-bts-sysmo.sh @@ -0,0 +1,74 @@ +#!/bin/sh +set -e -x + +deps=" +libosmocore +libosmo-abis +osmo-bts +" + +base="$PWD" +rm -f "$base/osmo-bts-sysmo.*.tgz" + +have_repo() { + repo="$1" + cd "$base" + if [ ! -d "$repo" ]; then + git clone "git://git.osmocom.org/$repo" "$repo" + fi + cd "$repo" + git clean -dxf + git fetch origin + git reset --hard origin/master + git rev-parse HEAD + cd "$base" +} + +for dep in $deps; do + have_repo "$dep" +done + +# for gsm_data_shared.h +have_repo openbsc + +. /opt/poky/1.5.4/environment-setup-armv5te-poky-linux-gnueabi + +# Cross-compilation: all installations need to be put in the sysmo SDK sysroot +export DESTDIR=/opt/poky/1.5.4/sysroots/armv5te-poky-linux-gnueabi + +prefix_base="/usr/local/jenkins-build" +prefix_base_real="$DESTDIR$prefix_base" +rm -rf "$prefix_base_real" + +prefix="$prefix_base/inst-osmo-bts-sysmo" +prefix_real="$DESTDIR$prefix" +mkdir -p "$prefix_real" + +for dep in $deps; do + cd "$base/$dep" + rm -rf * + git checkout . + + echo "$(git rev-parse HEAD) $dep" >> "$prefix_real/osmo-bts-sysmo_git_hashes.txt" + + autoreconf -fi + + config_opts="" + case "$dep" in + 'libosmocore') config_opts="--disable-pcsc" ;; + 'osmo-bts') config_opts="--enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include" ;; + esac + + ./configure --prefix="$prefix" $CONFIGURE_FLAGS $config_opts + make -j8 + make install +done + +# build the archive that is going to be copied to the tester and then to the BTS +rm "$base"/*.tgz "$base"/*.md5 || true +cd "$prefix_real" +this="osmo-bts-sysmo.build-${BUILD_NUMBER}" +tar="${this}.tgz" +tar czf "$base/$tar" * +cd "$base" +md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-build-osmo-bts-trx.sh b/contrib/jenkins-build-osmo-bts-trx.sh new file mode 100755 index 0000000..652913f --- /dev/null +++ b/contrib/jenkins-build-osmo-bts-trx.sh @@ -0,0 +1,69 @@ +#!/bin/sh +set -x -e + +base="$PWD" +prefix="$base/inst-osmo-bts-trx" + +rm -f "$base/osmo-bts-trx*.tgz" + +deps=" +libosmocore +libosmo-abis +osmo-trx +osmo-bts +" + +have_repo() { + repo="$1" + cd "$base" + if [ ! -d "$repo" ]; then + git clone "git://git.osmocom.org/$repo" "$repo" + fi + cd "$repo" + git clean -dxf + git fetch origin + git reset --hard origin/master + git rev-parse HEAD + cd "$base" +} + +# for gsm_data_shared.* +have_repo openbsc + + +rm -rf "$prefix" +mkdir -p "$prefix" + +export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" +export LD_LIBRARY_PATH="$prefix/lib" + +for dep in $deps; do + have_repo "$dep" + cd "$dep" + rm -rf * + git checkout . + + echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-bts-trx_osmo-trx_git_hashes.txt" + + autoreconf -fi + + config_opts="" + + case "$repo" in + 'osmo-bts') config_opts="--enable-trx --with-openbsc=$base/openbsc/openbsc/include" ;; + 'osmo-trx') config_opts="--without-sse" ;; + esac + + ./configure --prefix="$prefix" $config_opts + make -j8 + make install +done + +# build the archive that is going to be copied to the tester +rm "$base"/*.tgz "$base"/*.md5 || true +cd "$prefix" +this="osmo-bts-trx.build-${BUILD_NUMBER}" +tar="${this}.tgz" +tar czf "$base/$tar" * +cd "$base" +md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-build-osmo-nitb.sh b/contrib/jenkins-build-osmo-nitb.sh new file mode 100755 index 0000000..6a2420b --- /dev/null +++ b/contrib/jenkins-build-osmo-nitb.sh @@ -0,0 +1,69 @@ +#!/bin/sh +set -e -x + +base="$PWD" +prefix="$base/inst-osmo-nitb" + +rm -f "$base/osmo-nitb*.tgz" + +deps=" +libosmocore +libosmo-abis +libosmo-netif +openggsn +libsmpp34 +libosmo-sccp +openbsc +" + +have_repo() { + repo="$1" + cd "$base" + if [ ! -d "$repo" ]; then + git clone "git://git.osmocom.org/$repo" "$repo" + fi + cd "$repo" + git clean -dxf + git fetch origin + git reset --hard origin/master + git rev-parse HEAD + cd "$base" +} + +rm -rf "$prefix" +mkdir -p "$prefix" + +export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" +export LD_LIBRARY_PATH="$prefix/lib" + +for dep in $deps; do + have_repo "$dep" + cd "$dep" + rm -rf * + git checkout . + + echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-nitb_git_hashes.txt" + + config_opts="" + + case "$dep" in + 'openbsc') + config_opts="$config_opts --enable-smpp --enable-osmo-bsc --enable-nat" + cd openbsc/ + ;; + esac + + autoreconf -fi + ./configure --prefix="$prefix" $config_opts + make -j8 || make # libsmpp34 can't build in parallel + make install +done + +# build the archive that is going to be copied to the tester +rm "$base"/*.tgz "$base"/*.md5 || true +cd "$prefix" +this="osmo-nitb.build-${BUILD_NUMBER}" +tar="${this}.tgz" +tar czf "$base/$tar" * +cd "$base" +md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-osmo-bts-octphy.sh b/contrib/jenkins-osmo-bts-octphy.sh deleted file mode 100755 index 4045948..0000000 --- a/contrib/jenkins-osmo-bts-octphy.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -set -x -e - -base="$PWD" -prefix="$base/inst-osmo-bts-octphy" - -rm -f "$base/osmo-bts-octphy*.tgz" - -deps=" -libosmocore -libosmo-abis -osmo-bts -" - -have_repo() { - repo="$1" - cd "$base" - if [ ! -d "$repo" ]; then - git clone "git://git.osmocom.org/$repo" "$repo" - fi - cd "$repo" - git clean -dxf - git fetch origin - git reset --hard origin/master - git rev-parse HEAD - cd "$base" -} - -# for gsm_data_shared.* -have_repo openbsc - -# octphy headers -have_repo octphy-2g-headers - - -rm -rf "$prefix" -mkdir -p "$prefix" - -export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" -export LD_LIBRARY_PATH="$prefix/lib" - -for dep in $deps; do - have_repo "$dep" - cd "$dep" - rm -rf * - git checkout . - - echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-bts-octphy_git_hashes.txt" - - autoreconf -fi - - config_opts="" - - case "$repo" in - 'osmo-bts') config_opts="$config_opts --enable-octphy --with-octsdr-2g=$base/octphy-2g-headers" ;; - esac - - ./configure --prefix="$prefix" $config_opts - make -j8 - make install -done - -# build the archive that is going to be copied to the tester -rm "$base"/*.tgz "$base"/*.md5 || true -cd "$prefix" -this="osmo-bts-octphy.build-${BUILD_NUMBER}" -tar="${this}.tgz" -tar czf "$base/$tar" * -cd "$base" -md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-osmo-bts-sysmo.sh b/contrib/jenkins-osmo-bts-sysmo.sh deleted file mode 100755 index f321b8c..0000000 --- a/contrib/jenkins-osmo-bts-sysmo.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -set -e -x - -deps=" -libosmocore -libosmo-abis -osmo-bts -" - -base="$PWD" -rm -f "$base/osmo-bts-sysmo.*.tgz" - -have_repo() { - repo="$1" - cd "$base" - if [ ! -d "$repo" ]; then - git clone "git://git.osmocom.org/$repo" "$repo" - fi - cd "$repo" - git clean -dxf - git fetch origin - git reset --hard origin/master - git rev-parse HEAD - cd "$base" -} - -for dep in $deps; do - have_repo "$dep" -done - -# for gsm_data_shared.h -have_repo openbsc - -. /opt/poky/1.5.4/environment-setup-armv5te-poky-linux-gnueabi - -# Cross-compilation: all installations need to be put in the sysmo SDK sysroot -export DESTDIR=/opt/poky/1.5.4/sysroots/armv5te-poky-linux-gnueabi - -prefix_base="/usr/local/jenkins-build" -prefix_base_real="$DESTDIR$prefix_base" -rm -rf "$prefix_base_real" - -prefix="$prefix_base/inst-osmo-bts-sysmo" -prefix_real="$DESTDIR$prefix" -mkdir -p "$prefix_real" - -for dep in $deps; do - cd "$base/$dep" - rm -rf * - git checkout . - - echo "$(git rev-parse HEAD) $dep" >> "$prefix_real/osmo-bts-sysmo_git_hashes.txt" - - autoreconf -fi - - config_opts="" - case "$dep" in - 'libosmocore') config_opts="--disable-pcsc" ;; - 'osmo-bts') config_opts="--enable-sysmocom-bts --with-openbsc=$base/openbsc/openbsc/include" ;; - esac - - ./configure --prefix="$prefix" $CONFIGURE_FLAGS $config_opts - make -j8 - make install -done - -# build the archive that is going to be copied to the tester and then to the BTS -rm "$base"/*.tgz "$base"/*.md5 || true -cd "$prefix_real" -this="osmo-bts-sysmo.build-${BUILD_NUMBER}" -tar="${this}.tgz" -tar czf "$base/$tar" * -cd "$base" -md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-osmo-bts-trx.sh b/contrib/jenkins-osmo-bts-trx.sh deleted file mode 100755 index 652913f..0000000 --- a/contrib/jenkins-osmo-bts-trx.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -set -x -e - -base="$PWD" -prefix="$base/inst-osmo-bts-trx" - -rm -f "$base/osmo-bts-trx*.tgz" - -deps=" -libosmocore -libosmo-abis -osmo-trx -osmo-bts -" - -have_repo() { - repo="$1" - cd "$base" - if [ ! -d "$repo" ]; then - git clone "git://git.osmocom.org/$repo" "$repo" - fi - cd "$repo" - git clean -dxf - git fetch origin - git reset --hard origin/master - git rev-parse HEAD - cd "$base" -} - -# for gsm_data_shared.* -have_repo openbsc - - -rm -rf "$prefix" -mkdir -p "$prefix" - -export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" -export LD_LIBRARY_PATH="$prefix/lib" - -for dep in $deps; do - have_repo "$dep" - cd "$dep" - rm -rf * - git checkout . - - echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-bts-trx_osmo-trx_git_hashes.txt" - - autoreconf -fi - - config_opts="" - - case "$repo" in - 'osmo-bts') config_opts="--enable-trx --with-openbsc=$base/openbsc/openbsc/include" ;; - 'osmo-trx') config_opts="--without-sse" ;; - esac - - ./configure --prefix="$prefix" $config_opts - make -j8 - make install -done - -# build the archive that is going to be copied to the tester -rm "$base"/*.tgz "$base"/*.md5 || true -cd "$prefix" -this="osmo-bts-trx.build-${BUILD_NUMBER}" -tar="${this}.tgz" -tar czf "$base/$tar" * -cd "$base" -md5sum "$tar" > "${this}.md5" diff --git a/contrib/jenkins-osmo-nitb.sh b/contrib/jenkins-osmo-nitb.sh deleted file mode 100755 index 6a2420b..0000000 --- a/contrib/jenkins-osmo-nitb.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -set -e -x - -base="$PWD" -prefix="$base/inst-osmo-nitb" - -rm -f "$base/osmo-nitb*.tgz" - -deps=" -libosmocore -libosmo-abis -libosmo-netif -openggsn -libsmpp34 -libosmo-sccp -openbsc -" - -have_repo() { - repo="$1" - cd "$base" - if [ ! -d "$repo" ]; then - git clone "git://git.osmocom.org/$repo" "$repo" - fi - cd "$repo" - git clean -dxf - git fetch origin - git reset --hard origin/master - git rev-parse HEAD - cd "$base" -} - -rm -rf "$prefix" -mkdir -p "$prefix" - -export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" -export LD_LIBRARY_PATH="$prefix/lib" - -for dep in $deps; do - have_repo "$dep" - cd "$dep" - rm -rf * - git checkout . - - echo "$(git rev-parse HEAD) $dep" >> "$prefix/osmo-nitb_git_hashes.txt" - - config_opts="" - - case "$dep" in - 'openbsc') - config_opts="$config_opts --enable-smpp --enable-osmo-bsc --enable-nat" - cd openbsc/ - ;; - esac - - autoreconf -fi - ./configure --prefix="$prefix" $config_opts - make -j8 || make # libsmpp34 can't build in parallel - make install -done - -# build the archive that is going to be copied to the tester -rm "$base"/*.tgz "$base"/*.md5 || true -cd "$prefix" -this="osmo-nitb.build-${BUILD_NUMBER}" -tar="${this}.tgz" -tar czf "$base/$tar" * -cd "$base" -md5sum "$tar" > "${this}.md5" -- cgit v1.2.3