blob: 4bf24c15c5d24840d9e4527de8c0213856287f6d [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8ci_root="$(readlink -f "$(dirname "$0")/../..")"
9source "$ci_root/utils.sh"
10
11cd optee
12make PLATFORM=vexpress PLATFORM_FLAVOR="${PLATFORM_FLAVOR:?}" CFG_ARM64_core=y
13
14# Remove header from tee.bin
15aarch64-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
19mkdir -p "$workspace/artefacts"
20cp out/arm-plat-vexpress/core/tee.bin "$workspace/artefacts"