Per Åstrand | 79929ff | 2021-01-26 14:42:43 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2021 Arm Limited. All rights reserved. |
| 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 | ############################################################################# |
| 20 | # Secure world |
| 21 | ############################################################################# |
| 22 | |
| 23 | set(TRUSTZONE_BUILD ON) |
| 24 | set(TRUSTZONE_PARTITION_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/secure" CACHE FILEPATH "") |
| 25 | |
| 26 | set(SECURE_GATEWAY_LIB "${CMAKE_CURRENT_BINARY_DIR}/secure_gw.o") |
| 27 | |
| 28 | add_subdirectory(secure) |
| 29 | |
| 30 | add_subdirectory(nonsecure) |
| 31 | |
| 32 | add_dependencies(trustzone_nonsecure trustzone_secure) |
| 33 | |
| 34 | add_custom_target(trustzone) |
| 35 | add_dependencies(trustzone trustzone_secure nonsecure_binary) |
| 36 | |
| 37 | ethosu_add_test(trustzone_secure |
| 38 | NAME trustzone |
Kristofer Jonsson | 715c07b | 2021-02-25 09:49:34 +0100 | [diff] [blame] | 39 | COMMAND ${ETHOSU_COMMAND_DEFAULT} -- --data ${CMAKE_CURRENT_BINARY_DIR}/nonsecure/ns_bin@0x7c000) |