Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | ci_root="$(readlink -f "$(dirname "$0")/../..")" |
| 9 | source "$ci_root/utils.sh" |
| 10 | |
| 11 | cd optee |
| 12 | make PLATFORM=vexpress PLATFORM_FLAVOR="${PLATFORM_FLAVOR:?}" CFG_ARM64_core=y |
| 13 | |
| 14 | # Remove header from tee.bin |
| 15 | aarch64-linux-gnu-objcopy -O binary \ |
| 16 | out/arm-plat-vexpress/core/tee.elf out/arm-plat-vexpress/core/tee.bin |
| 17 | |
| 18 | # Gather files to export in a single directory |
| 19 | mkdir -p "$workspace/artefacts" |
| 20 | cp out/arm-plat-vexpress/core/tee.bin "$workspace/artefacts" |