6 CROSS_FILE
=/cross_file-
"$CROSS".txt
8 # We need to control the version of llvm-config we're using, so we'll
9 # tweak the cross file or generate a native file to do so.
10 if test -n "$LLVM_VERSION"; then
11 LLVM_CONFIG
="llvm-config-${LLVM_VERSION}"
12 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.
file
13 if [ -n "$CROSS" ]; then
14 sed -i -e '/\[binaries\]/a\' -e "llvm-config = '`which $LLVM_CONFIG`'" $CROSS_FILE
16 $LLVM_CONFIG --version
22 # cross-xfail-$CROSS, if it exists, contains a list of tests that are expected
23 # to fail for the $CROSS configuration, one per line. you can then mark those
24 # tests in their meson.build with:
27 # should_fail: meson.get_cross_property('xfail
', '').contains(t),
30 # where t is the name of the test, and the '' is the string to search when
31 # not cross-compiling (which is empty, because for amd64 everything is
33 if [ -n "$CROSS" ]; then
34 CROSS_XFAIL=.gitlab-ci/cross-xfail-"$CROSS"
35 if [ -s "$CROSS_XFAIL" ]; then
37 -e '/\
[properties\
]/a
\' \
38 -e "xfail = '$(tr '\n' , < $CROSS_XFAIL)'" \
44 meson _build
--native-file=native.
file \
45 --wrap-mode=nofallback \
46 ${CROSS+--cross "$CROSS_FILE"} \
47 -D prefix
=`pwd`/install \
49 -D buildtype
=${BUILDTYPE:-debug} \
51 -D libunwind
=${UNWIND} \
53 -D dri-drivers
=${DRI_DRIVERS:-[]} \
55 -D gallium-drivers
=${GALLIUM_DRIVERS:-[]} \
56 -D vulkan-drivers
=${VULKAN_DRIVERS:-[]} \
57 -D I-love-half-baked-turnips
=true \
62 LC_ALL
=C.UTF-8 ninja
test
66 if test -n "$MESON_SHADERDB"; then
67 .
/.gitlab-ci
/run-shader-db.sh
;
70 # Delete 2MB of includes from artifacts.
71 rm -rf install
/include
73 # Strip the drivers in the artifacts to cut 80% of the artifacts size.
74 if [ -n "$CROSS" ]; then
75 STRIP
=`sed -n -E "s/strip\s*=\s*'(.*)'/\1/p" "$CROSS_FILE"`
76 if [ -z "$STRIP" ]; then
77 echo "Failed to find strip command in cross file"
83 find install -name \
*.so
-exec $STRIP {} \
;
85 # Test runs don't pull down the git tree, so put the dEQP helper
86 # script and associated bits there.
88 cp -Rp .gitlab-ci
/deqp
* artifacts
/
89 # cp -Rp src/freedreno/ci/expected* artifacts/