Davide Grohmann | ffb8ccd | 2022-08-24 11:16:21 +0200 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2020-2022 Arm Limited. |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the License); you may |
| 7 | # not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | |
| 19 | if(NOT BUILD_TEST_MESSAGE_HANDLER OR NOT TARGET freertos_kernel) |
| 20 | message("Skipping test message handler") |
| 21 | return() |
| 22 | endif() |
| 23 | |
| 24 | ethosu_add_executable(test_message_handler |
| 25 | SOURCES |
| 26 | main.cpp |
| 27 | LIBRARIES |
| 28 | message_handler_lib |
| 29 | freertos_kernel) |
| 30 | |
| 31 | target_include_directories(test_message_handler PRIVATE |
| 32 | ../../indexed_networks |
| 33 | ${LINUX_DRIVER_STACK_PATH}/kernel) |
| 34 | |
| 35 | install(FILES $<TARGET_FILE:test_message_handler> |
| 36 | DESTINATION "lib/firmware" |
| 37 | RENAME "arm-test-${ETHOSU_TARGET_NPU_CONFIG}.fw" |
| 38 | ) |