osmith has uploaded this change for review.
publish-manuals-for-tags: build full osmo-bts
Build osmo-bts with all --with options, so we get the related VTY
reference documentation pdfs.
Related: OS#7094
Change-Id: I092212f3b0dc14ebd1463d45dca66118f92dec53
---
A scripts/manuals/osmo-bts-get-all-headers.sh
M scripts/manuals/publish-manuals-for-tags.sh
2 files changed, 57 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/89/43789/1
diff --git a/scripts/manuals/osmo-bts-get-all-headers.sh b/scripts/manuals/osmo-bts-get-all-headers.sh
new file mode 100644
index 0000000..bdfc068
--- /dev/null
+++ b/scripts/manuals/osmo-bts-get-all-headers.sh
@@ -0,0 +1,32 @@
+#!/bin/sh -ex
+SCRIPTS_DIR="$(realpath "$(dirname "$0")/..")"
+
+BTS_MODELS="
+ sysmo
+ oct
+ lc15
+ oc2g
+"
+
+for i in $BTS_MODELS; do
+ DIR=/tmp/osmo-layer1-headers/"$i"
+
+ if [ -f "$DIR/.done" ]; then
+ continue
+ fi
+
+ mkdir -p "$DIR"
+ cd "$DIR"
+ "$SCRIPTS_DIR"/osmo-layer1-headers.sh "$i"
+ touch "$DIR"/.done
+done
+
+# Create the directory structure expected for the sysmocom/femtobts headers:
+# https://gitea.osmocom.org/cellular-infrastructure/osmo-bts/src/branch/master/contrib/jenkins_sysmobts.sh
+cd /tmp/osmo-layer1-headers/sysmo/
+if ! [ -e .done-inst ]; then
+ mkdir -p inst/include/sysmocom/femtobts
+ ln -s /tmp/osmo-layer1-headers/sysmo/layer1-headers/include/* \
+ inst/include/sysmocom/femtobts/
+ touch .done-inst
+fi
diff --git a/scripts/manuals/publish-manuals-for-tags.sh b/scripts/manuals/publish-manuals-for-tags.sh
index bc602f8..d375989 100755
--- a/scripts/manuals/publish-manuals-for-tags.sh
+++ b/scripts/manuals/publish-manuals-for-tags.sh
@@ -2,6 +2,7 @@
. "$(dirname "$0")/../common.sh"
OSMO_CI_DIR="$(realpath $(dirname "$0")/../..)"
TEMP="$OSMO_CI_DIR/_temp_manuals"
+L1_DIR="/tmp/osmo-layer1-headers"
WEB_PATH="/downloads/home/docs/web-files"
SSH_COMMAND="ssh -o UserKnownHostsFile=$TEMP/src/osmo-gsm-manuals/build/known_hosts -p 48"
DOCKER_IMAGE="$USER/debian-trixie-build"
@@ -245,6 +246,7 @@
mkdir -p \
"$TEMP" \
+ "$TEMP/osmo-layer1-headers" \
"$TEMP/src"
check_ssh_auth_sock() {
@@ -258,6 +260,21 @@
# $1: repo name
get_configure_opts_from_repo_name() {
case "$1" in
+ osmo-bts)
+ # contrib/jenkins_sysmobts.sh
+ echo "--enable-sysmocom-bts"
+ echo "--with-sysmobts=$L1_DIR/sysmo/inst/include"
+ # contrib/jenkins_oct_and_bts_trx.sh
+ echo "--enable-octphy"
+ echo "--enable-trx"
+ echo "--with-octsdr-2g=$L1_DIR/oct/layer1-headers/"
+ # contrib/jenkins_lc15.sh
+ echo "--enable-litecell15"
+ echo "--with-litecell15=$L1_DIR/lc15/layer1-headers/inc/"
+ # contrib/jenkins_oc2g.sh
+ echo "--enable-oc2g"
+ echo "--with-oc2g=$L1_DIR/oc2g/layer1-headers/inc/"
+ ;;
osmo-hnbgw)
echo "--enable-pfcp"
;;
@@ -400,6 +417,7 @@
-e "SSH_AUTH_SOCK=/ssh-agent" \
-v "$OSMO_CI_DIR/scripts:/osmo-ci-scripts" \
-v "$TEMP/src/$repo/:/build" \
+ -v "$TEMP/osmo-layer1-headers/:$L1_DIR" \
-v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
"$DOCKER_IMAGE" \
sh -ex -c "
@@ -424,6 +442,13 @@
cd /opt/osmo-gsm-manuals/
patch -p1 < /osmo-ci-scripts/manuals/0001-build-set-ASCIIDOCSTYLE-to-remove-DRAFT.patch
+ # Other preparations
+ case $repo in
+ osmo-bts)
+ su build -c \"sh -ex /osmo-ci-scripts/manuals/osmo-bts-get-all-headers.sh\"
+ ;;
+ esac
+
# Build manuals
cd /build
case $repo in
To view, visit change 43789. To unsubscribe, or for help writing mail filters, visit settings.