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 11target_sources(${TGT} PRIVATE 12 "${CMAKE_CURRENT_LIST_DIR}/crc32.c" 13) 14 15if (TS_ENV STREQUAL "arm-linux") 16 target_sources(${TGT} PRIVATE 17 "${CMAKE_CURRENT_LIST_DIR}/crc32_linux.c" 18 ) 19endif() 20 21if ((TS_ENV STREQUAL "opteesp") OR (TS_ENV STREQUAL "sp")) 22 target_sources(${TGT} PRIVATE 23 "${CMAKE_CURRENT_LIST_DIR}/crc32_sp.c" 24 ) 25endif() 26