Julian Hall | f31da8e | 2023-01-17 10:10:29 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # A fwu infrastructure where there is a flash device dedicated to holding |
| 7 | # device firmware and FWU metadata. Flash is assumed to be UEFI formated |
| 8 | # (MBR/GPT) with separate partitions for primary/backup metadata and |
| 9 | # A/B banks for firmware storage. The flash is actually realized by a file |
| 10 | # residing on the host machine and is accessed using semihosting. This |
| 11 | # infrastructure is intended for FVP/Qemu based testing. |
| 12 | #------------------------------------------------------------------------------- |
| 13 | |
| 14 | #------------------------------------------------------------------------------- |
| 15 | # External project source-level dependencies |
| 16 | # |
| 17 | #------------------------------------------------------------------------------- |
| 18 | include(${TS_ROOT}/external/tf_a/tf-a.cmake) |
| 19 | add_tfa_dependency(TARGET "fwu") |
| 20 | |
| 21 | #------------------------------------------------------------------------------- |
| 22 | # Infrastructure components |
| 23 | # |
| 24 | #------------------------------------------------------------------------------- |
| 25 | add_components(TARGET "fwu" |
| 26 | BASE_DIR ${TS_ROOT} |
| 27 | COMPONENTS |
| 28 | "components/media/disk" |
| 29 | "components/media/volume" |
| 30 | "components/media/volume/base_io_dev" |
| 31 | "components/media/volume/block_volume" |
| 32 | "components/media/volume/factory/single_flash" |
| 33 | "components/service/block_storage/block_store" |
| 34 | "components/service/block_storage/block_store/device" |
| 35 | "components/service/block_storage/block_store/device/semihosting" |
| 36 | "components/service/block_storage/block_store/partitioned" |
| 37 | "components/service/block_storage/factory/semihosting" |
| 38 | "components/service/block_storage/config/gpt" |
| 39 | ) |