aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/common/include-agl-kci-publish-build-meta.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/jjb/common/include-agl-kci-publish-build-meta.sh b/jjb/common/include-agl-kci-publish-build-meta.sh
index c2c1a5c1..edf91558 100644
--- a/jjb/common/include-agl-kci-publish-build-meta.sh
+++ b/jjb/common/include-agl-kci-publish-build-meta.sh
@@ -5,6 +5,13 @@ echo "#########################################"
echo "\n\n\n"
kci-publish() {
+ if [ -e tmp/deploy/images/${TARGETMACHINE}/build-info ] ; then
+ echo "DEBUG: load build-info"
+ # we need some variable from here
+ source tmp/deploy/images/${TARGETMACHINE}/build-info
+ fi
+ echo "DEBUG: GERRIT_PROJECT $GERRIT_PROJECT"
+
# check GERRIT_PROJECT to find if we build an app or not
if echo $GERRIT_PROJECT |grep -q apps ;then
# for app
@@ -14,6 +21,29 @@ kci-publish() {
BUILD_VERSION="AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION"
fi
+ # TARGETARCH exists only in ci-apps
+ case $TARGETMACHINE in
+ qemuarm64)
+ TARGETARCH="arm64"
+ ;;
+ qemuarm)
+ TARGETARCH="arm"
+ ;;
+ qemux86_64)
+ TARGETARCH="x86_64"
+ ;;
+ raspberrypi4)
+ TARGETARCH="arm64"
+ ;;
+ h3ulcb-nogfx)
+ TARGETARCH="arm64"
+ ;;
+ *)
+ echo "ERROR: unknow machine $TARGETMACHINE"
+ return 0
+ ;;
+ esac
+
echo "DEBUG: generate bmeta for kernelCI"
echo "DEBUG: machine ${TARGETMACHINE}"
echo "DEBUG: build_version $BUILD_VERSION"