1#------------------------------------------------------------------------------- 2# Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7if (NOT DEFINED TGT) 8 message(FATAL_ERROR "mandatory parameter TGT is not defined.") 9endif() 10 11#------------------------------------------------------------------------------- 12# Depends on the tf-a external component 13#------------------------------------------------------------------------------- 14set(_SEMIHOSTING_LIB_DIR "${TFA_SOURCE_DIR}/lib/semihosting") 15 16target_sources(${TGT} PRIVATE 17 "${_SEMIHOSTING_LIB_DIR}/semihosting.c" 18 "${_SEMIHOSTING_LIB_DIR}/aarch64/semihosting_call.S" 19) 20 21