aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci/container
diff options
context:
space:
mode:
authorRohan Garg <[email protected]>2020-01-28 15:19:53 +0100
committerMarge Bot <[email protected]>2020-06-25 17:33:28 +0000
commit7406d627c8864a8754efed14d0ad9d6a853325ac (patch)
tree5c46fcde6ff4da52e1cafd40095ca6d812a70a8e /.gitlab-ci/container
parentacf9d8b75d9ae39c812b9b2ed41ff0078bd35c42 (diff)
ci: Include trace replay support in ARM rootfses.
Builds the renderdoc and apitrace programs so we can replay GL traces on DUTs. [Separated out from 5472's commit that also enabled the jobs in LAVA, dropped unnecessary python packages from arm_build, fixed up arm64_test build, traces-db in baremetal, new commit message by anholt] Signed-off-by: Rohan Garg <[email protected]> Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
Diffstat (limited to '.gitlab-ci/container')
-rw-r--r--.gitlab-ci/container/arm_build.sh19
-rw-r--r--.gitlab-ci/container/baremetal_build.sh30
-rw-r--r--.gitlab-ci/container/lava_arm.sh19
3 files changed, 67 insertions, 1 deletions
diff --git a/.gitlab-ci/container/arm_build.sh b/.gitlab-ci/container/arm_build.sh
index 6facab31e73..4266aee2ba8 100644
--- a/.gitlab-ci/container/arm_build.sh
+++ b/.gitlab-ci/container/arm_build.sh
@@ -12,6 +12,8 @@ apt-get update
apt-get -y install \
abootimg \
android-sdk-ext4-utils \
+ autoconf \
+ automake \
bc \
bison \
ccache \
@@ -24,28 +26,45 @@ apt-get -y install \
g++ \
git \
lavacli \
+ libboost-dev:armhf \
+ libboost-dev \
libdrm-dev:armhf \
+ libdrm-dev \
libegl1-mesa-dev \
libegl1-mesa-dev:armhf \
libelf-dev \
libelf-dev:armhf \
libexpat1-dev \
libexpat1-dev:armhf \
+ libgbm-dev \
+ libgbm-dev:armhf \
libgles2-mesa-dev \
libgles2-mesa-dev:armhf \
+ libpcre3-dev \
+ libpcre3-dev:armhf \
libpng-dev \
libpng-dev:armhf \
+ libpython3-dev \
+ libpython3-dev:armhf \
libssl-dev \
libvulkan-dev \
+ libvulkan-dev \
libvulkan-dev:armhf \
+ libxcb-keysyms1-dev \
+ libxcb-keysyms1-dev:armhf \
llvm-7-dev:armhf \
llvm-8-dev \
pkg-config \
python \
+ python3-dev \
python3-distutils \
python3-setuptools \
python3-mako \
python3-serial \
+ qt5-default \
+ qt5-qmake \
+ qtbase5-dev \
+ qtbase5-dev:armhf \
unzip \
wget \
xz-utils \
diff --git a/.gitlab-ci/container/baremetal_build.sh b/.gitlab-ci/container/baremetal_build.sh
index b84608f87e9..6024138f8ab 100644
--- a/.gitlab-ci/container/baremetal_build.sh
+++ b/.gitlab-ci/container/baremetal_build.sh
@@ -3,24 +3,38 @@
set -e
set -o xtrace
+ROOTFS=/lava-files/rootfs-${arch}
+
dpkg --add-architecture $arch
apt-get update
# Cross-build test deps
BAREMETAL_EPHEMERAL=" \
+ autoconf \
+ automake \
crossbuild-essential-$arch \
+ git-lfs \
libdrm-dev:$arch \
+ libboost-dev:$arch \
libegl1-mesa-dev:$arch \
libelf-dev:$arch \
libexpat1-dev:$arch \
libffi-dev:$arch \
libgbm-dev:$arch \
libgles2-mesa-dev:$arch \
+ libpcre3-dev:$arch \
libpng-dev:$arch \
+ libpython3-dev:$arch \
libstdc++6:$arch \
libtinfo-dev:$arch \
libegl1-mesa-dev:$arch \
- libvulkan-dev:$arch
+ libvulkan-dev:$arch \
+ libxcb-keysyms1-dev:$arch \
+ libpython3-dev:$arch \
+ python3-dev \
+ qt5-default \
+ qt5-qmake \
+ qtbase5-dev:$arch \
"
apt-get install -y --no-remove $BAREMETAL_EPHEMERAL
@@ -37,6 +51,20 @@ mkdir /var/cache/apt/archives/$arch
DEBIAN_ARCH=$arch INCLUDE_VK_CTS=1 . .gitlab-ci/container/lava_arm.sh
+############### Store traces
+# Clone the traces-db at container build time so we don't have to pull traces
+# per run (too much egress cost for fd.o).
+git clone \
+ --depth 1 \
+ -b mesa-ci-2020-06-08 \
+ https://gitlab.freedesktop.org/gfx-ci/tracie/traces-db.git \
+ $ROOTFS/traces-db
+rm -rf $ROOTFS/traces-db/.git
+find $ROOTFS/traces-db -type f \
+ -a -not -name '*.trace' \
+ -a -not -name '*.rdc' \
+ -delete
+
ccache --show-stats
. .gitlab-ci/container/container_post_build.sh
diff --git a/.gitlab-ci/container/lava_arm.sh b/.gitlab-ci/container/lava_arm.sh
index 05bc602aa6f..ed1a10eaec5 100644
--- a/.gitlab-ci/container/lava_arm.sh
+++ b/.gitlab-ci/container/lava_arm.sh
@@ -43,6 +43,25 @@ fi
mv /deqp /lava-files/rootfs-${DEBIAN_ARCH}/.
+############### Build apitrace
+. .gitlab-ci/build-apitrace.sh
+mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/apitrace
+mv /apitrace/build /lava-files/rootfs-${DEBIAN_ARCH}/apitrace
+rm -rf /apitrace
+
+mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/waffle
+mv /waffle/build /lava-files/rootfs-${DEBIAN_ARCH}/waffle
+rm -rf /waffle
+
+
+############### Build renderdoc
+EXTRA_CMAKE_ARGS+=" -DENABLE_XCB=false"
+. .gitlab-ci/build-renderdoc.sh
+mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/renderdoc
+mv /renderdoc/build /lava-files/rootfs-${DEBIAN_ARCH}/renderdoc
+rm -rf /renderdoc
+
+
############### Cross-build kernel
KERNEL_URL="https://gitlab.freedesktop.org/tomeu/linux/-/archive/v5.5-panfrost-fixes/linux-v5.5-panfrost-fixes.tar.gz"