Copying utility headers from optee_os.
Provides an interface for the following common tasks:
- defining functions in assembly
- setting function and variable attributes
- safe integer operations
The files in this commit were forked from optee_os, keeping the
original license header intact:
tag name: v3.10.0
tagged commit: d1c635434c55b7d75eadf471bde04926bd1e50a7
From 'lib/libutils/ext/include/' of optee_os to
'components/common/utils/include/':
asm.S
compiler.h
util.h
Change-Id: I5d83618fa157a4b14f86e522c5def40c74c4ad95
Signed-off-by: Imre Kis <imre.kis@arm.com>
diff --git a/components/common/utils/component.cmake b/components/common/utils/component.cmake
new file mode 100644
index 0000000..363a464
--- /dev/null
+++ b/components/common/utils/component.cmake
@@ -0,0 +1,15 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+ message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+
+target_include_directories(${TGT}
+ PUBLIC
+ "${CMAKE_CURRENT_LIST_DIR}/include"
+ )