Skip to content

Commit 2776d90

Browse files
RcColesnvlsianpu
authored andcommitted
bootutil: Add cmake build file
In order to allow other projects to include the bootutil files more easily. Allows renaming and moving of bootutil files without breaking external projects' file lists (if they include this cmake file instead of directly listing the files they use). Prevents an issue where moving/renaming bootutil files breaks the FIH CI test. The tfm and tfm-rest-repo versions have been updated not to break CI. Signed-off-by: Raef Coles <[email protected]> Signed-off-by: Salome Thirot <[email protected]> Change-Id: Ic982413c6a26ea2039712437f2d511fbe202e1e4
1 parent 8d08089 commit 2776d90

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

boot/bootutil/CMakeLists.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#------------------------------------------------------------------------------
2+
# Copyright (c) 2020, Arm Limited. All rights reserved.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
#------------------------------------------------------------------------------
7+
8+
add_library(bootutil STATIC)
9+
10+
target_include_directories(bootutil
11+
PUBLIC
12+
include
13+
PRIVATE
14+
src
15+
)
16+
17+
target_sources(bootutil
18+
PRIVATE
19+
src/boot_record.c
20+
src/bootutil_misc.c
21+
src/caps.c
22+
src/encrypted.c
23+
src/fault_injection_hardening.c
24+
src/fault_injection_hardening_delay_rng_mbedtls.c
25+
src/image_ec.c
26+
src/image_ec256.c
27+
src/image_ed25519.c
28+
src/image_rsa.c
29+
src/image_validate.c
30+
src/loader.c
31+
src/swap_misc.c
32+
src/swap_move.c
33+
src/swap_scratch.c
34+
src/tlv.c
35+
)

ci/fih-tests_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -x
22

3-
# Copyright (c) 2020 Arm Limited
3+
# Copyright (c) 2021 Arm Limited
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ set -e
1919
pushd .. &&\
2020
git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git &&\
2121
pushd trusted-firmware-m &&\
22-
git checkout 8501b37db8e038ce39eb7f1039a514edea92c96e &&\
22+
git checkout ed3980e7405599b39cbf19aef2d7dbbc8506f28a &&\
2323
popd
2424

2525
if test -z "$FIH_LEVEL"; then

ci/fih_test_docker/execute_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -x
22

3-
# Copyright (c) 2020 Arm Limited
3+
# Copyright (c) 2021 Arm Limited
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ cmake -B $TFM_BUILD_DIR \
4545
-DTFM_PSA_API=ON \
4646
-DMCUBOOT_PATH=$MCUBOOT_PATH \
4747
-DMCUBOOT_LOG_LEVEL=INFO \
48-
-DTFM_TEST_REPO_VERSION=93ce2f59c0c4a9cba6062834496b5f45deee4010 \
48+
-DTFM_TEST_REPO_VERSION=98adf32da35e93aceefa6cee199350ba27e3a5b8 \
4949
$CMAKE_FIH_LEVEL \
5050
.
5151
cd $TFM_BUILD_DIR

0 commit comments

Comments
 (0)