Julian Hall | 07679f2 | 2020-11-23 17:45:16 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #------------------------------------------------------------------------------- |
| 9 | # Environment file for deployments to arm-linux. This is a cross-compiled |
| 10 | # enviroment where built executables or libraries run in Linux userspace |
| 11 | # on Arm devices. |
| 12 | #------------------------------------------------------------------------------- |
| 13 | set(TS_ENV "arm-linux" CACHE STRING "Environment identifier") |
| 14 | |
| 15 | include(${CMAKE_CURRENT_LIST_DIR}/link_options.cmake) |
| 16 | |
| 17 | # Default to using the base toolcahin file for the enviroment |
| 18 | set(TS_BASE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/default_toolchain_file.cmake" CACHE STRING "Base toolchainfile") |
| 19 | |
| 20 | # Replicate in environment variable for access from child cmake contexts |
| 21 | set(ENV{TS_BASE_TOOLCHAIN_FILE} "${TS_BASE_TOOLCHAIN_FILE}") |
| 22 | |
| 23 | # Set toolchain files to use |
| 24 | set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/default_toolchain_file.cmake" CACHE STRING "Toolchain file") |
| 25 | set(TS_EXTERNAL_LIB_TOOLCHAIN_FILE "${TS_ROOT}/tools/cmake/compiler/static_lib_toolchain_file.cmake" CACHE STRING "External lib Toolchain file") |