blob: 4628b7fcb90006d99a428ca946e89331a260ca89 [file] [log] [blame]
Julian Halld635ad72022-09-20 15:50:35 +01001#-------------------------------------------------------------------------------
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"
Balint Dobszay550ce872022-12-15 15:28:40 +010013)
14
15if (TS_ENV STREQUAL "arm-linux")
16 target_sources(${TGT} PRIVATE
17 "${CMAKE_CURRENT_LIST_DIR}/crc32_linux.c"
Julian Halld635ad72022-09-20 15:50:35 +010018 )
Balint Dobszay550ce872022-12-15 15:28:40 +010019endif()
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()