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
/
30 # Tar up the install dir so that symlinks and hardlinks aren't each
31 # packed separately in the zip file.
32 tar -cf artifacts
/install.
tar install
34 # If the container has LAVA stuff, prepare the artifacts for LAVA jobs
35 if [ -d /lava-files
]; then
36 # Copy kernel and device trees for LAVA
37 cp /lava-files
/*Image artifacts
/.
38 cp /lava-files
/*.dtb artifacts
/.
40 # Pack ramdisk for LAVA
41 mkdir
-p /lava-files
/rootfs-
${CROSS:-arm64}/mesa
42 cp -a install
/* /lava-files
/rootfs-
${CROSS:-arm64}/mesa
/.
44 cp .gitlab-ci
/deqp-runner.sh
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
45 cp .gitlab-ci
/deqp-
*-fails.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
46 cp .gitlab-ci
/deqp-
*-skips.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
47 find /lava-files
/rootfs-
${CROSS:-arm64}/ -type f
-printf "%s\t%i\t%p\n" |
sort -n |
tail -100
49 pushd /lava-files
/rootfs-
${CROSS:-arm64}/
50 find -H |
cpio -H newc
-o |
gzip -c - > $CI_PROJECT_DIR/artifacts
/lava-rootfs-
${CROSS:-arm64}.
cpio.gz
53 # Store job ID so the test stage can build URLs to the artifacts
54 echo $CI_JOB_ID > artifacts
/build_job_id.txt
56 # Pass needed files to the test stage
57 cp $CI_PROJECT_DIR/.gitlab-ci
/generate_lava.py artifacts
/.
58 cp $CI_PROJECT_DIR/.gitlab-ci
/lava-deqp.yml.jinja2 artifacts
/.