From 1d88324e893c0d46eeaa83a7889271bc3e89d0e3 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 18 Jul 2019 09:50:02 -0700 Subject: jjb/common: aglsetup: use topic if available If aglsetup.sh is a new enough version, use the --topic option to set a unique topic string. TODO: support release/snapshot builds as well as CI builds. Bug-AGL: SPEC-2646 Change-Id: I599063f349cc98e3f11b97201edebe7431012dd1 Suggested-by: Stephane Desneux Signed-off-by: Kevin Hilman --- jjb/common/include-agl-source-aglsetup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'jjb/common/include-agl-source-aglsetup.sh') diff --git a/jjb/common/include-agl-source-aglsetup.sh b/jjb/common/include-agl-source-aglsetup.sh index 2b010e1b..44b6ae6c 100644 --- a/jjb/common/include-agl-source-aglsetup.sh +++ b/jjb/common/include-agl-source-aglsetup.sh @@ -4,9 +4,19 @@ ################################################################################ ## Source the aglsetup script ################################################################################ +SETUP_OPTS="" + +# check aglsetup version +source meta-agl/scripts/aglsetup.sh --version >/dev/null 2>&1 || AGLSETUP_VERSION=1.0.0 + +# add setup topic (if new enough version) +TOPIC_SUPPORT_VER=1.2.0 +if [[ "$(echo -e "$AGLSETUP_VERSION\n$TOPIC_SUPPORT_VER" | sort -V | head -n1)" == $TOPIC_SUPPORT_VER ]]; then + SETUP_OPTS="--topic change-${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}" +fi # source the env -source meta-agl/scripts/aglsetup.sh -m ${MACHINE} -b output ${TARGETFEATURES} +source meta-agl/scripts/aglsetup.sh ${SETUP_OPTS} -m ${MACHINE} -b output ${TARGETFEATURES} # link the shared downloads and sstate-cache ln -sf ../../downloads -- cgit 1.2.3-korg