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-gl.sh artifacts
/
32 cp -Rp .gitlab-ci
/tracie-runner-vk.sh artifacts
/
33 cp -Rp .gitlab-ci
/fossils.yml artifacts
/
34 cp -Rp .gitlab-ci
/fossils artifacts
/
35 cp -Rp .gitlab-ci
/fossilize-runner.sh artifacts
/
37 # Tar up the install dir so that symlinks and hardlinks aren't each
38 # packed separately in the zip file.
39 tar -cf artifacts
/install.
tar install
41 # If the container has LAVA stuff, prepare the artifacts for LAVA jobs
42 if [ -d /lava-files
]; then
43 # Copy kernel and device trees for LAVA
44 cp /lava-files
/*Image artifacts
/.
45 cp /lava-files
/*.dtb artifacts
/.
47 # Pack ramdisk for LAVA
48 mkdir
-p /lava-files
/rootfs-
${CROSS:-arm64}/mesa
49 cp -a install
/* /lava-files
/rootfs-
${CROSS:-arm64}/mesa
/.
51 cp .gitlab-ci
/deqp-runner.sh
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
52 cp .gitlab-ci
/deqp-
*-fails.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
53 cp .gitlab-ci
/deqp-
*-skips.txt
/lava-files
/rootfs-
${CROSS:-arm64}/deqp
/.
54 find /lava-files
/rootfs-
${CROSS:-arm64}/ -type f
-printf "%s\t%i\t%p\n" |
sort -n |
tail -100
56 pushd /lava-files
/rootfs-
${CROSS:-arm64}/
57 find -H |
cpio -H newc
-o |
gzip -c - > $CI_PROJECT_DIR/artifacts
/lava-rootfs-
${CROSS:-arm64}.
cpio.gz
60 if [ -z "$CROSS" ]; then
61 gzip -c artifacts
/Image
> Image.gz
62 cat Image.gz artifacts
/apq8016-sbc.dtb
> Image.gz-dtb
64 --create artifacts
/db410c.img \
66 -r artifacts
/lava-rootfs-
${CROSS:-arm64}.
cpio.gz \
67 -c cmdline
="ip=dhcp console=ttyMSM0,115200n8"
68 rm Image.gz Image.gz-dtb
71 # Store job ID so the test stage can build URLs to the artifacts
72 echo $CI_JOB_ID > artifacts
/build_job_id.txt
74 # Pass needed files to the test stage
75 cp $CI_PROJECT_DIR/.gitlab-ci
/generate_lava.py artifacts
/.
76 cp $CI_PROJECT_DIR/.gitlab-ci
/lava-deqp.yml.jinja2 artifacts
/.