- # Build Mesa
- - mkdir -p results mesa-build
- - mkdir -p ccache
- - /usr/share/meson/debcrossgen --arch ${DEBIAN_ARCH} -o /tmp/cross_file.txt
- - meson . mesa-build
- --cross-file /tmp/cross_file.txt
- --libdir /artifacts/rootfs/mesa/lib/
- --buildtype debugoptimized
- -D gallium-drivers=kmsro,panfrost,lima
- -D dri-drivers=
- -D prefix=/artifacts/rootfs/mesa
- -D glx=disabled
- -D gbm=false
- -D egl=true
- -D platforms=surfaceless
- -D osmesa=none
- -D dri3=false
- -D gallium-vdpau=false
- -D gallium-xvmc=false
- -D gallium-omx=disabled
- -D gallium-va=false
- -D gallium-xa=false
- -D gallium-nine=false
- -D llvm=false
- - ninja -C mesa-build -j8
- - ninja -C mesa-build install
- - find /artifacts/rootfs/mesa/lib -name \*.so -exec ${GCC_ARCH}-strip {} \;
-
- - du -sh /artifacts/rootfs/mesa/*
- - rm -rf /artifacts/rootfs/mesa/include
-
- # Pack rootfs
- - cp .gitlab-ci/lava-deqp-runner.sh /artifacts/rootfs/deqp/.
- - cp .gitlab-ci/deqp-*-fails.txt /artifacts/rootfs/deqp/.
- - cp .gitlab-ci/deqp-*-skips.txt /artifacts/rootfs/deqp/.
- - du -sh /artifacts/rootfs/deqp/*
- - find /artifacts/rootfs/ -type f -printf "%s\t%p\n" | sort -n
- - pushd /artifacts/rootfs/ ; find -H | cpio -H newc -v -o | gzip -c - > $CI_PROJECT_DIR/results/lava-rootfs-${DEBIAN_ARCH}.cpio.gz; popd
-
- # Copy kernel and DT
- - cp /artifacts/${KERNEL_IMAGE_NAME} /artifacts/*.dtb $CI_PROJECT_DIR/results/.
-
- # Generate LAVA job
- - cd $CI_PROJECT_DIR
- - .gitlab-ci/generate_lava.py
- --template .gitlab-ci/lava-deqp.yml.jinja2
- --arch ${DEBIAN_ARCH}
- --base-artifacts-url $CI_PROJECT_URL/-/jobs/$CI_JOB_ID/artifacts/raw/results
- --device-types ${DEVICE_TYPES}
- --kernel-image-name ${KERNEL_IMAGE_NAME}
- artifacts:
- when: always
- paths:
- - results/