VERBOSE="n"
TARGETLIST=""
BUILDJOBS="8"
+IMAGE_FMT=""
# actions to do
do_clean="n"
# layers to include in the project
build_layerlist="poky/meta poky/meta-poky poky/meta-yocto-bsp \
meta-openembedded/meta-oe meta-openembedded/meta-python \
+ meta-openembedded/meta-networking \
meta-openembedded/meta-filesystems \
- meta-openembedded/meta-networking meta-virtualization"
+ meta-virtualization"
# yocto image to build
build_image="xen-image-minimal"
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
+ cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-image-minimal-qemuarm.rootfs.tar.bz2 $OUTPUTDIR
fi
fi
) || return 1
/usr/bin/expect <<EOF
set timeout 1000
-spawn bash -c "runqemu serialstdio nographic slirp"
+spawn bash -c "runqemu serialstdio nographic slirp ${IMAGE_FMT}"
expect_after {
-re "(.*)\r" {
run_task project_create "${f}"
fi
if [ -f "${BUILDDIR}/${f}/conf/local.conf" ]; then
+ # Set the right image target
+ if [ "$f" = "qemux86-64" ]; then
+ IMAGE_FMT=""
+ else
+ IMAGE_FMT="ext4"
+ fi
+
if [ "${do_build}" = "y" ]; then
run_task project_build "${f}"
fi
# YOCTOVERSION-TARGET for x86_64 hosts
# YOCTOVERSION-TARGET-arm64v8 for arm64 hosts
# For example you can build an arm64 container with the following command:
-# make yocto/kirkstone-qemuarm64-arm64v8
+# make yocto/scarthgap-qemuarm64-arm64v8
# Yocto versions we are currently using.
-YOCTO_VERSION = kirkstone
+YOCTO_VERSION = scarthgap
# Yocto BSPs we want to build for.
YOCTO_TARGETS = qemuarm64 qemuarm qemux86-64
script:
- ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD} ${YOCTO_OUTPUT}
variables:
- YOCTO_VERSION: kirkstone
+ YOCTO_VERSION: scarthgap
CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}${YOCTO_HOST}
artifacts:
paths: