From 6b03d2506345b9efdd54598cefa78c289cb12246 Mon Sep 17 00:00:00 2001 From: "r.tyminski" Date: Mon, 9 Jul 2018 17:12:39 +0200 Subject: [PATCH] Added documentation Added doc directory and CMakeLists.txt file with example unified-ta-devkit usage. Change-Id: I9795b590def1f0c599e29c98699efc29912a61ab --- doc/CMakeLists.txt | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 doc/CMakeLists.txt diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..f6939f4 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,51 @@ +# Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# @file +# @author Rafał Tymiński (r.tyminski@partner.samsung.com) +# @brief CMakeLists for example TA +# + +############# Entry defines ############# + +SET(TARGET_TA 00000000-1234-5678-8765-432123456789.elf) + +SET(TA_SOURCES + src/example.c + ) + +SET(TA_HEADERS + include/example_defines.h + ) + +INCLUDE(FindPkgConfig) + +PKG_CHECK_MODULES(TA_DEPS REQUIRED + unified-ta-devkit + ) + +INCLUDE(UnifiedTADevkit) + +ADD_EXECUTABLE(${TARGET_TA} + ${TA_SOURCES} + ) + +TARGET_LINK_LIBRARIES(${TARGET_TA} + ${TA_DEPS_LIBRARIES} + ${TA_DEPS_STATIC_LIBRARIES} + ) + +GENERATE_TA_IMAGE(SIGNED_TA ${TARGET_TA} ${TA_PATH}/example.xml ${TA_NAME}) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TA_NAME} DESTINATION ${TASTORE_DIR}) +INSTALL(FILES ${TA_HEADERS} DESTINATION ${INCLUDE_DIR}) -- 2.34.1