Add Linux PC and Arm environments
Adds build system config and toolchain options to enable building for
x86 and Arm AArch64 Linux environments.
Change-Id: Id1cf40842fcdc9648a4e06b5ac82e5385f6b2fa4
Signed-off-by: Julian Hall <julian.hall@arm.com>
diff --git a/environments/arm-linux/env.cmake b/environments/arm-linux/env.cmake
new file mode 100644
index 0000000..fccb28d
--- /dev/null
+++ b/environments/arm-linux/env.cmake
@@ -0,0 +1,25 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+#-------------------------------------------------------------------------------
+# Environment file for deployments to arm-linux. This is a cross-compiled
+# enviroment where built executables or libraries run in Linux userspace
+# on Arm devices.
+#-------------------------------------------------------------------------------
+set(TS_ENV "arm-linux" CACHE STRING "Environment identifier")
+
+include(${CMAKE_CURRENT_LIST_DIR}/link_options.cmake)
+
+# Default to using the base toolcahin file for the enviroment
+set(TS_BASE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/default_toolchain_file.cmake" CACHE STRING "Base toolchainfile")
+
+# Replicate in environment variable for access from child cmake contexts
+set(ENV{TS_BASE_TOOLCHAIN_FILE} "${TS_BASE_TOOLCHAIN_FILE}")
+
+# Set toolchain files to use
+set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/default_toolchain_file.cmake" CACHE STRING "Toolchain file")
+set(TS_EXTERNAL_LIB_TOOLCHAIN_FILE "${TS_ROOT}/tools/cmake/compiler/static_lib_toolchain_file.cmake" CACHE STRING "External lib Toolchain file")
\ No newline at end of file