ci: add option to overwrite CPU arch
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 26 Jan 2021 18:13:21 +0000 (19:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 15:47:31 +0000 (15:47 +0000)
commit5d0c96a8c2c5410b330e5389aab43227fafc1b1f
tree2dde9ad2c9088c57a05017c6e648a23ed1f53872
parent3d4c13f3b8e40c3ae1825bcb695bffe49d2ffb70
ci: add option to overwrite CPU arch

When loading Vulkan ICD file, it uses the CPU machine identifier to
load the correct one, in case multiple versions are installed.

This is fine if the machine where Mesa has been built and the machine
where the test is run are exactly the same. But this is not always the
case. As example, for armhf architecture, the machine where Mesa is
built is identified as `arm7hlf`, but the Raspberry Pi 4 is identified
as `armv7l`, so it will fail to load the ICD file, though both are
totally compatible.

This allow to define the architecture instead.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8745>
.gitlab-ci/bare-metal/rootfs-setup.sh
.gitlab-ci/deqp-runner.sh