blob: 8818fb45643d1d65beed49c220afc4ae34af1b54 [file] [log] [blame]
#-------------------------------------------------------------------------------
# Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Includes components needed for deploying the fwu update_agent within a
# Posix environment as a command-line application. Can be used to apply an
# update to a disk image file. Uses the same fwu components as a fw deployment
# of the fwu service.
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Common components for fwu posix deployments
#
#-------------------------------------------------------------------------------
add_components(TARGET "fwu"
BASE_DIR ${TS_ROOT}
COMPONENTS
"environments/posix"
"components/common/crc32/native"
"components/common/trace"
"components/common/utils"
"components/service/fwu/app"
)
target_sources(fwu PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fwu_main.cpp
${CMAKE_CURRENT_LIST_DIR}/cmd_update_image.cpp
${CMAKE_CURRENT_LIST_DIR}/cmd_print_image_dir.cpp
${CMAKE_CURRENT_LIST_DIR}/cmd_print_metadata_v1.cpp
${CMAKE_CURRENT_LIST_DIR}/cmd_print_metadata_v2.cpp
${CMAKE_CURRENT_LIST_DIR}/print_uuid.cpp
)