mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
automation: add binaries/ to artifacts for Yocto arm32 job
Copy the build output of Yocto builds to binaries/ for the arm32 target, and export binaries/ among the jobs artifacts so that they can be reused by other jobs. Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
adfb590ec3
commit
a0c3b87a76
2 files changed
+19
-1
No files matched your search
@@ -18,6 +18,7 @@ CACHEDIR="$HOME/yocto-cache"
|
|||||||
LOGDIR="$HOME/logs"
|
LOGDIR="$HOME/logs"
|
||||||
XENDIR="$HOME/xen"
|
XENDIR="$HOME/xen"
|
||||||
BUILDDIR="$HOME/build"
|
BUILDDIR="$HOME/build"
|
||||||
|
OUTPUTDIR=`pwd`/binaries
|
||||||
|
|
||||||
# what yocto bsp we support
|
# what yocto bsp we support
|
||||||
TARGET_SUPPORTED="qemuarm qemuarm64 qemux86-64"
|
TARGET_SUPPORTED="qemuarm qemuarm64 qemux86-64"
|
||||||
@@ -31,6 +32,7 @@ do_build="y"
|
|||||||
do_run="y"
|
do_run="y"
|
||||||
do_localsrc="n"
|
do_localsrc="n"
|
||||||
do_dump="n"
|
do_dump="n"
|
||||||
|
do_copy="n"
|
||||||
build_result=0
|
build_result=0
|
||||||
|
|
||||||
# layers to include in the project
|
# layers to include in the project
|
||||||
@@ -166,6 +168,16 @@ function project_build() {
|
|||||||
source "${YOCTODIR}/poky/oe-init-build-env" "${destdir}"
|
source "${YOCTODIR}/poky/oe-init-build-env" "${destdir}"
|
||||||
|
|
||||||
bitbake "${build_image}" || exit 1
|
bitbake "${build_image}" || exit 1
|
||||||
|
if [ $do_copy = "y" ]
|
||||||
|
then
|
||||||
|
if [ $target = "qemuarm" ]
|
||||||
|
then
|
||||||
|
mkdir -p $OUTPUTDIR
|
||||||
|
cp $BUILDDIR/tmp/deploy/images/qemuarm/zImage $OUTPUTDIR
|
||||||
|
cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-qemuarm $OUTPUTDIR
|
||||||
|
cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-image-minimal-qemuarm.tar.bz2 $OUTPUTDIR
|
||||||
|
fi
|
||||||
|
fi
|
||||||
) || return 1
|
) || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,6 +247,7 @@ Options:
|
|||||||
Default: ${CACHEDIR}
|
Default: ${CACHEDIR}
|
||||||
--layer-dir=DIR directory containing the checkout of yocto layers
|
--layer-dir=DIR directory containing the checkout of yocto layers
|
||||||
Default: ${YOCTODIR}
|
Default: ${YOCTODIR}
|
||||||
|
--copy-output Copy output binaries to binaries/
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,6 +303,9 @@ do
|
|||||||
--layer-dir=*)
|
--layer-dir=*)
|
||||||
YOCTODIR="${OPTION#*=}"
|
YOCTODIR="${OPTION#*=}"
|
||||||
;;
|
;;
|
||||||
|
--copy-output)
|
||||||
|
do_copy="y"
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
echo "Invalid option ${OPTION}"
|
echo "Invalid option ${OPTION}"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -208,13 +208,14 @@
|
|||||||
- /^coverity-tested\/.*/
|
- /^coverity-tested\/.*/
|
||||||
- /^stable-.*/
|
- /^stable-.*/
|
||||||
script:
|
script:
|
||||||
- ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD}
|
- ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD} ${YOCTO_OUTPUT}
|
||||||
variables:
|
variables:
|
||||||
YOCTO_VERSION: kirkstone
|
YOCTO_VERSION: kirkstone
|
||||||
CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST}
|
CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST}
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- 'logs/*'
|
- 'logs/*'
|
||||||
|
- binaries/
|
||||||
when: always
|
when: always
|
||||||
needs: []
|
needs: []
|
||||||
|
|
||||||
@@ -664,6 +665,7 @@ yocto-qemuarm:
|
|||||||
extends: .yocto-test-arm64
|
extends: .yocto-test-arm64
|
||||||
variables:
|
variables:
|
||||||
YOCTO_BOARD: qemuarm
|
YOCTO_BOARD: qemuarm
|
||||||
|
YOCTO_OUTPUT: --copy-output
|
||||||
|
|
||||||
yocto-qemux86-64:
|
yocto-qemux86-64:
|
||||||
extends: .yocto-test-arm64
|
extends: .yocto-test-arm64
|
||||||
|
|||||||