automation: upgrade Yocto to scarthgap

Upgrade Yocto to a newer version. Use ext4 as image format for testing
with QEMU on ARM and ARM64 as the default is WIC and it is not available
for our xen-image-minimal target.

Also update the tar.bz2 filename for the rootfs.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
Stefano Stabellini authored and Andrew Cooper committed 2024-07-30 17:44:41 +01:00
1 parent ee32b9b29a
commit 7234e59818
4 files changed
+16 -7

No files matched your search

+12 -3
View File
@@ -25,6 +25,7 @@ TARGET_SUPPORTED="qemuarm qemuarm64 qemux86-64"
VERBOSE="n"
TARGETLIST=""
BUILDJOBS="8"
IMAGE_FMT=""
# actions to do
do_clean="n"
@@ -38,8 +39,9 @@ build_result=0
# 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"
@@ -175,7 +177,7 @@ function project_build() {
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
@@ -196,7 +198,7 @@ function project_run() {
/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" {
@@ -356,6 +358,13 @@ for f in ${TARGETLIST}; do
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
+2 -2
View File
@@ -6,10 +6,10 @@
# 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
+1 -1
View File
@@ -212,7 +212,7 @@
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:
+1 -1
View File
@@ -8,7 +8,7 @@ cd binaries
mkdir rootfs
cd rootfs
tar xvf ../xen-image-minimal-qemuarm.tar.bz2
tar xvf ../xen-image-minimal-qemuarm.rootfs.tar.bz2
mkdir -p ./root
echo "name=\"test\"
memory=400
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.