Commit 8c0e15d2 authored by Vishal Bhoj's avatar Vishal Bhoj
Browse files

Merge branch 'add_aarch64_distro_boot_test_to_tf_a' into 'main'

add ubuntu distro test to tf-a

See merge request !141
parents 38b4a071 09ff6697
......@@ -3,6 +3,10 @@ workflow:
- if: '$CI_PROJECT_PATH != "morello/morello-ci-pipelines"'
when: always
stages:
- build
- test
build-tf-a:
image: ${CI_REGISTRY}/morello/morello-ci-containers/morello-firmware
variables:
......@@ -17,4 +21,19 @@ build-tf-a:
- "pinned-manifest.xml"
- "tf-bl31.bin"
- "SHA256SUMS.txt"
- "output/fvp/firmware/*.bin"
expire_in: 5 days
reports:
dotenv: build.env
test-ubuntu:
image: ${CI_REGISTRY}/morello/morello-ci-containers/morello-lava
stage: test
script:
- source <(curl -s https://git.morello-project.org/morello/morello-ci-pipelines/-/raw/main/.gitlab-ci/environment.sh)
- time ./.gitlab-ci/${CI_JOB_STAGE}/test.sh
needs:
- job: build-tf-a
tags:
- arm64
......@@ -33,11 +33,19 @@ ln -sf ${HOME}/tools ${CI_PROJECT_DIR}/tools
# Get rid of checksum
sed -i "s|^ \[checksum_url\]=.*| \[checksum_url\]=\"\"|" build-scripts/fetch-tools.sh
# Build TF-A
# Build all fw besides tf-a to test ubuntu boot
time bash -x ./build-scripts/fetch-tools.sh -f none
time bash -x ./build-scripts/build-scp.sh -f none
time bash -x ./build-scripts/build-arm-tf.sh -f none
time bash -x ./build-scripts/build-uefi.sh -f none
time bash -x ./build-scripts/build-firmware-image.sh -f none
cp -a output/fvp/intermediates/* ${CI_PROJECT_DIR}
ln output/fvp/intermediates/morell.dtb morello.dtb
ln output/fvp/intermediates/tf-bl31.bin tf-bl31.bin
# Create SHA256SUMS.txt file
sha256sum morello.dtb tf-bl31.bin > SHA256SUMS.txt
sha256sum morello.dtb tf-bl31.bin outpu/fvp/firmware/*.bin > SHA256SUMS.txt
echo "BUILD_JOB_ID=${CI_JOB_ID}" > ${CI_PROJECT_DIR}/build.env
echo "LAVA_TEMPLATE_NAME=fvp-ubuntu.yaml" >> ${CI_PROJECT_DIR}/build.env
cat ${CI_PROJECT_DIR}/build.env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment