diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-01-07 18:16:17 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-01-07 18:16:17 +0100 |
commit | 0d6b877ff6e17d7d945fdd28adb95064fcbc8800 (patch) | |
tree | 585197c47150dc1d258807e73ca34ee1d8041e0e /jjb/common/include-agl-setup-and-bitbake-ivi-image.sh | |
parent | a345b6a6a46e69f456885f77a77312e30385d3df (diff) |
Update platform job to use settings from agl-ci
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I3fdfb2d1455a9e7c9022b1a4f1fe9c1c213c7dc9
Diffstat (limited to 'jjb/common/include-agl-setup-and-bitbake-ivi-image.sh')
-rw-r--r-- | jjb/common/include-agl-setup-and-bitbake-ivi-image.sh | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/jjb/common/include-agl-setup-and-bitbake-ivi-image.sh b/jjb/common/include-agl-setup-and-bitbake-ivi-image.sh new file mode 100644 index 00000000..5707b9c6 --- /dev/null +++ b/jjb/common/include-agl-setup-and-bitbake-ivi-image.sh @@ -0,0 +1,69 @@ +# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de +# License GPLv2 + +################################################################################ +## bitbake the image +################################################################################ + +#if ! test x"${GERRIT_BRANCH}" = x"dab" ; then +#bitbake wic-tools +#fi + +echo "#### $MYPROJECT ###" + +if test x"meta-agl-devel" = x"$MYPROJECT" ; then + +if test x"qemux86-64" = x"$MACHINE" ; then + + +TARGETIMAGE="agl-image-boot-basesystem" +TARGETFEATURES="agl-basesystem agl-ci" + +echo "#### DO CI FOR $MYPROJECT , $TARGETFEATURES and $TARGETIMAGE" + +pushd $REPODIR + +SETUP_OPTS="--topic change-${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}" + +# source the env +source meta-agl/scripts/aglsetup.sh ${SETUP_OPTS} -m ${MACHINE} -b output-meta-agl-devel -f ${TARGETFEATURES} + +# link the shared downloads and sstate-cache +ln -sf ../../downloads +ln -sf ../../sstate-cache + +echo "" >> conf/local.conf +echo "### ADDED BY AUTOBUILDER ###" >> conf/local.conf +echo "" >> conf/local.conf + +# save some pre-build env needed to uniquely identify the source +MANIFEST_R=repo-manifest-r.txt +repo manifest -r > ${MANIFEST_R} +sha1sum ${MANIFEST_R} | awk '{print $1}' > ${MANIFEST_R}.sha1 + +cat <<EOF > pre-build-env.txt +TARGETBRANCH=${TARGETBRANCH} +TARGETIMAGE=${TARGETIMAGE} +TARGETFEATURES=${TARGETFEATURES} +TARGETMACHINE=${TARGETMACHINE} +TARGETPROJECT=${TARGETPROJECT} +MACHINE=${MACHINE} +GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} +GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} +EOF + + +# finally, build the agl-demo-platform (we retry to catch the tar-native bug) +( ( bitbake $TARGETIMAGE ) || ( echo '## Failed once, retry .. ##' ; sync ; sleep 2 ; bitbake -v -v $TARGETIMAGE ) ) || ( echo '## Failed again, bail out ...' ; exit 1 ) + + + +du -hs tmp/deploy/* + +popd + +fi +# / qemux86-64 + +fi +# / meta-agl-devel
\ No newline at end of file |