The motivation for this is that we want to make use of the meson cross
files in this script, which have the ccache compiler paths.
We need to remove the ccache directory at the end, it would just waste
space in the image for no benefit.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3643>
automake \
autotools-dev \
bison \
+ ccache \
clang-9 \
cmake \
flex \
libx11-xcb-dev \
libxdamage-dev \
libxext-dev \
+ libxml2-utils \
libxrandr-dev \
libxrender-dev \
libxshmfence-dev \
make -j4
popd
-# Use ccache to speed up builds
-apt-get install -y --no-remove ccache
-
-# We need xmllint to validate the XML files in Mesa
-apt-get install -y --no-remove libxml2-utils
-
# Generate cross build files for Meson
for arch in $CROSS_ARCHITECTURES; do
done
+# Remove ccache directory, useless for the build jobs
+rm -rf $(ccache --get-config=cache_dir)
+
+
############### Uninstall the build software
apt-get purge -y \