Julian Hall | d635ad7 | 2022-09-20 15:50:35 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | if (NOT DEFINED TGT) |
| 8 | message(FATAL_ERROR "mandatory parameter TGT is not defined.") |
| 9 | endif() |
| 10 | |
| 11 | target_sources(${TGT} PRIVATE |
| 12 | "${CMAKE_CURRENT_LIST_DIR}/crc32.c" |
Balint Dobszay | 550ce87 | 2022-12-15 15:28:40 +0100 | [diff] [blame^] | 13 | ) |
| 14 | |
| 15 | if (TS_ENV STREQUAL "arm-linux") |
| 16 | target_sources(${TGT} PRIVATE |
| 17 | "${CMAKE_CURRENT_LIST_DIR}/crc32_linux.c" |
Julian Hall | d635ad7 | 2022-09-20 15:50:35 +0100 | [diff] [blame] | 18 | ) |
Balint Dobszay | 550ce87 | 2022-12-15 15:28:40 +0100 | [diff] [blame^] | 19 | endif() |
| 20 | |
| 21 | if ((TS_ENV STREQUAL "opteesp") OR (TS_ENV STREQUAL "sp")) |
| 22 | target_sources(${TGT} PRIVATE |
| 23 | "${CMAKE_CURRENT_LIST_DIR}/crc32_sp.c" |
| 24 | ) |
| 25 | endif() |