Julian Hall | 351a072 | 2023-01-12 11:58:42 +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 | # Includes components needed for deploying the fwu update_agent within a |
| 7 | # Posix environment as a command-line application. Can be used to apply an |
| 8 | # update to a disk image file. Uses the same fwu components as a fw deployment |
| 9 | # of the fwu service. |
| 10 | #------------------------------------------------------------------------------- |
| 11 | |
| 12 | #------------------------------------------------------------------------------- |
| 13 | # Common components for fwu posix deployments |
| 14 | # |
| 15 | #------------------------------------------------------------------------------- |
| 16 | add_components(TARGET "fwu" |
| 17 | BASE_DIR ${TS_ROOT} |
| 18 | COMPONENTS |
| 19 | "environments/posix" |
| 20 | "components/common/crc32/native" |
| 21 | "components/common/trace" |
| 22 | "components/common/utils" |
| 23 | "components/service/fwu/app" |
| 24 | ) |
| 25 | |
| 26 | target_sources(fwu PRIVATE |
| 27 | ${CMAKE_CURRENT_LIST_DIR}/fwu_main.cpp |
| 28 | ${CMAKE_CURRENT_LIST_DIR}/cmd_update_image.cpp |
| 29 | ${CMAKE_CURRENT_LIST_DIR}/cmd_print_image_dir.cpp |
| 30 | ${CMAKE_CURRENT_LIST_DIR}/cmd_print_metadata_v1.cpp |
| 31 | ${CMAKE_CURRENT_LIST_DIR}/cmd_print_metadata_v2.cpp |
| 32 | ${CMAKE_CURRENT_LIST_DIR}/print_uuid.cpp |
| 33 | ) |