From b020feb4d14476957baedf98ede5c836a77867b1 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 20 Oct 2020 19:33:07 +0200 Subject: [PATCH] ci/fastboot: exclude either deqp or piglit Keep the generated initramfs image as small as possible. Signed-off-by: Christian Gmeiner Reviewed-by: Eric Anholt Part-of: --- .gitlab-ci/bare-metal/fastboot.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/bare-metal/fastboot.sh b/.gitlab-ci/bare-metal/fastboot.sh index a9c0114584a..e481c8cc6dc 100755 --- a/.gitlab-ci/bare-metal/fastboot.sh +++ b/.gitlab-ci/bare-metal/fastboot.sh @@ -64,11 +64,18 @@ rsync -a --delete $BM_ROOTFS/ rootfs/ # Finally, pack it up into a cpio rootfs. Skip the vulkan CTS since none of # these devices use it and it would take up space in the initrd. + +if [ -n "$PIGLIT_PROFILES" ]; then + EXCLUDE_FILTER="deqp" +else + EXCLUDE_FILTER="piglit|python" +fi + pushd rootfs find -H | \ egrep -v "external/(openglcts|vulkancts|amber|glslang|spirv-tools)" | - egrep -v "traces-db|apitrace|renderdoc|python" | \ - egrep -v "piglit" | \ + egrep -v "traces-db|apitrace|renderdoc" | \ + egrep -v $EXCLUDE_FILTER | \ cpio -H newc -o | \ xz --check=crc32 -T4 - > $CI_PROJECT_DIR/rootfs.cpio.gz popd