6 CROSS_FILE
=/cross_file-
"$CROSS".txt
8 # Delete unused bin and includes from artifacts to save space.
9 rm -rf install
/bin install
/include
11 # Strip the drivers in the artifacts to cut 80% of the artifacts size.
12 if [ -n "$CROSS" ]; then
13 STRIP
=`sed -n -E "s/strip\s*=\s*'(.*)'/\1/p" "$CROSS_FILE"`
14 if [ -z "$STRIP" ]; then
15 echo "Failed to find strip command in cross file"
21 find install -name \
*.so
-exec $STRIP {} \
;
23 # Test runs don't pull down the git tree, so put the dEQP helper
24 # script and associated bits there.
27 cp -Rp .gitlab-ci
/deqp
* artifacts
/
28 cp -Rp .gitlab-ci
/piglit artifacts
/
29 cp -Rp .gitlab-ci
/traces.yml artifacts
/
30 cp -Rp .gitlab-ci
/tracie artifacts
/
31 cp -Rp .gitlab-ci
/tracie-runner.sh artifacts
/
33 # Tar up the install dir so that symlinks and hardlinks aren't each
34 # packed separately in the zip file.
35 tar -cf artifacts
/install.
tar install
37 # If the container has LAVA stuff, prepare the artifacts for LAVA jobs
38 if [ -d /lava-files
]; then
39 # Copy kernel and device trees for LAVA
40 cp /lava-files
/*Image artifacts
/.
41 cp /lava-files
/*.dtb artifacts
/.
43 # Pack ramdisk for LAVA
44 mkdir
-p /lava-files
/rootfs-
${CROSS:-arm64}/mesa
45 cp -a install
/* /lava-files
/rootfs-
${CROSS:-arm64}/mesa
/.
47 cp .gitlab-ci
/deqp-runner.sh
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
48 cp .gitlab-ci
/deqp-
*-fails.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
49 cp .gitlab-ci
/deqp-
*-skips.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
50 find /lava-files
/rootfs-
${CROSS:-arm64}/ -type f
-printf "%s\t%i\t%p\n" |
sort -n |
tail -100
52 pushd /lava-files
/rootfs-
${CROSS:-arm64}/
53 find -H |
cpio -H newc
-o |
gzip -c - > $CI_PROJECT_DIR/artifacts
/lava-rootfs-
${CROSS:-arm64}.
cpio.gz
56 # Store job ID so the test stage can build URLs to the artifacts
57 echo $CI_JOB_ID > artifacts
/build_job_id.txt
59 # Pass needed files to the test stage
60 cp $CI_PROJECT_DIR/.gitlab-ci
/generate_lava.py artifacts
/.
61 cp $CI_PROJECT_DIR/.gitlab-ci
/lava-deqp.yml.jinja2 artifacts
/.