6 ROOTFS=/lava-files/rootfs-${arch}
10 dpkg --add-architecture $arch
13 # Cross-build test deps
14 BAREMETAL_EPHEMERAL=" \
17 crossbuild-essential-$arch \
21 libegl1-mesa-dev:$arch \
26 libgles2-mesa-dev:$arch \
27 libpciaccess-dev:$arch \
30 libpython3-dev:$arch \
36 libxcb-keysyms1-dev:$arch \
37 libxkbcommon-dev:$arch \
44 apt-get install -y --no-remove $BAREMETAL_EPHEMERAL
46 mkdir /var/cache/apt/archives/$arch
48 ############### Create cross-files
50 . .gitlab-ci/container/create-cross-file.sh $arch
52 . .gitlab-ci/container/container_pre_build.sh
54 ############### Create rootfs
55 KERNEL_URL=https://github.com/anholt/linux/archive/mesa-ci-2021-01-27-5.11rc5.tar.gz
57 DEBIAN_ARCH=$arch INCLUDE_VK_CTS=1 . .gitlab-ci/container/lava_build.sh
59 ############### Uninstall the build software
61 apt-get purge -y $BAREMETAL_EPHEMERAL
63 . .gitlab-ci/container/container_post_build.sh