From 0f7217a0fd3218649b7abe1b5cfcfc601422af98 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 16 Oct 2020 14:38:18 -0400 Subject: [PATCH] jjb: lttng-ust: Add FreeBSD jobs Signed-off-by: Michael Jeanson --- jobs/lttng-ust.yaml | 8 ++++++++ scripts/lttng-ust/build.sh | 13 ++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/jobs/lttng-ust.yaml b/jobs/lttng-ust.yaml index c8dbdb8..ca49441 100644 --- a/jobs/lttng-ust.yaml +++ b/jobs/lttng-ust.yaml @@ -394,6 +394,14 @@ conf: !!python/tuple [std] liburcu_version: !!python/tuple [stable-0.12, master] filter: '' + - 'lttng-ust_{version}_{buildtype}': + buildtype: freebsdbuild + version: master + arch: !!python/tuple [freebsd] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + liburcu_version: !!python/tuple [stable-0.12, master] + filter: '' - 'lttng-ust_{version}_cppcheck': version: master - 'lttng-ust_{version}_scan-build': diff --git a/scripts/lttng-ust/build.sh b/scripts/lttng-ust/build.sh index 6b6f341..acae601 100755 --- a/scripts/lttng-ust/build.sh +++ b/scripts/lttng-ust/build.sh @@ -176,12 +176,24 @@ fi # Set platform variables case "$arch" in +freebsd) + export MAKE=gmake + export TAR=tar + export NPROC="getconf _NPROCESSORS_ONLN" + export CPPFLAGS="-I/usr/local/include $CPPFLAGS" + export LDFLAGS="-L/usr/local/lib $LDFLAGS" + export PYTHON="python3" + export PYTHON_CONFIG="python3-config" + export CLASSPATH='/usr/local/share/java/classes/*' + ;; + *) export MAKE=make export TAR=tar export NPROC=nproc export PYTHON="python3" export PYTHON_CONFIG="python3-config" + export CLASSPATH='/usr/share/java/*' ;; esac @@ -215,7 +227,6 @@ static) agents) echo "Java and Python agents configuration" - export CLASSPATH='/usr/share/java/*' CONF_OPTS+=("--enable-java-agent-all" "--enable-jni-interface" "--enable-python-agent") ;; -- 2.34.1