Commit 23a254eb authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Moved init/config.h to toki/config.h in toki-hal and included the...

[chg] Moved init/config.h to toki/config.h in toki-hal and included the renamed configAPPLICATION_TLS_INDEX as configAPPLICATION_REENT_TLS_INDEX
parent a735fc28
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
option(ENABLE_INSTALL "Enable target installation possibility" ON)
option(WITH_HEADERS "Enable build of separate header library" ON)
project(
toki-init-config-headers
#
VERSION 0.1
LANGUAGES C ASM
)
add_library(
toki-init-config-headers
#
INTERFACE
)
target_include_directories(
toki-init-config-headers
#
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:include>
)
if (ENABLE_INSTALL)
# Configure and install the following files:
# - ${PROJECT_NAME}-config.cmake,
# - ${PROJECT_NAME}-config-version.cmake,
include(CMakePackageConfigHelpers)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION})
# ${PROJECT_NAME}-config.cmake
configure_package_config_file(
${PROJECT_NAME}-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
INSTALL_DESTINATION ${ConfigPackageLocation}
)
# ${PROJECT_NAME}-config-config-version.cmake
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY SameMajorVersion
)
# Install exported CMake target files
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-targets
ARCHIVE DESTINATION lib
)
install(
EXPORT ${PROJECT_NAME}-targets
DESTINATION ${ConfigPackageLocation}
EXPORT_LINK_INTERFACE_LIBRARIES
)
# Install package/module configuration files
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${ConfigPackageLocation}
)
# If desired install all header files of the current project
get_target_property(PROJECT_INCLUDE_DIRECTORIES ${PROJECT_NAME} INTERFACE_INCLUDE_DIRECTORIES)
foreach(DIR ${PROJECT_INCLUDE_DIRECTORIES})
string(REGEX MATCH "^.<BUILD_INTERFACE:(.*)>$" EXTRACTED_DIR ${DIR})
if (CMAKE_MATCH_1)
set(EXTRACTED_DIR "${CMAKE_MATCH_1}")
file(
GLOB_RECURSE
#
HEADER_FILES
#
FOLLOW_SYMLINKS
LIST_DIRECTORIES FALSE
RELATIVE "${EXTRACTED_DIR}"
#
"${EXTRACTED_DIR}/*.h"
"${EXTRACTED_DIR}/*.hpp"
)
foreach(FILE ${HEADER_FILES})
get_filename_component(INSTALL_PATH ${FILE} DIRECTORY)
install(
FILES ${EXTRACTED_DIR}/${FILE}
DESTINATION include/${INSTALL_PATH}
)
endforeach()
endif()
endforeach()
endif()
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-init-config-headers-targets.cmake)
check_required_components(toki-init-config-headers)
#ifndef ELFLOADER_CONFIG_H
#define ELFLOADER_CONFIG_H
#include <stdlib.h>
/*
------------------------------------------------------------
------------ ELF Loader related defines --------------
......@@ -21,14 +19,4 @@
#define configAPPLICATION_TEXT_ALIGN 0x10000
#define configAPPLICATION_HEAP_ALIGN 0x1000
#define configAPPLICATION_HEAP_SIZE 0x400000
#define configAPPLICATION_TLS_INDEX 0
// Needs to be defined to the same type as FreeRTOS BaseType_t
#define ElfLoader_BaseType_t long
#define ELFLOADER_MALLOC malloc
#define ELFLOADER_FREE free
#define configASSERT( x )
#endif /* ELFLOADER_CONFIG_H */
#ifndef TOKI_INIT_CONFIG_H
#define TOKI_INIT_CONFIG_H
#ifndef TOKI_CONFIG_H
#define TOKI_CONFIG_H
/*******************************************************************************
* CoreSight activation configuration
......@@ -17,4 +17,10 @@
******************************************************************************/
#define ENABLE_lwIPStack 0
#endif /* TOKI_INIT_CONFIG_H */
/*******************************************************************************
* toki application specific configuration options
******************************************************************************/
#define configAPPLICATION_HEAP_SIZE 0x400000
#define configAPPLICATION_REENT_TLS_INDEX 0
#endif /* TOKI_CONFIG_H */
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
option(ENABLE_INSTALL "Enable target installation possibility" ON)
option(WITH_HEADERS "Enable build of separate header library" ON)
project(
toki-init-config-headers
#
VERSION 0.1
LANGUAGES C ASM
)
add_library(
toki-init-config-headers
#
INTERFACE
)
target_include_directories(
toki-init-config-headers
#
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:include>
)
if (ENABLE_INSTALL)
# Configure and install the following files:
# - ${PROJECT_NAME}-config.cmake,
# - ${PROJECT_NAME}-config-version.cmake,
include(CMakePackageConfigHelpers)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION})
# ${PROJECT_NAME}-config.cmake
configure_package_config_file(
${PROJECT_NAME}-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
INSTALL_DESTINATION ${ConfigPackageLocation}
)
# ${PROJECT_NAME}-config-config-version.cmake
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY SameMajorVersion
)
# Install exported CMake target files
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-targets
ARCHIVE DESTINATION lib
)
install(
EXPORT ${PROJECT_NAME}-targets
DESTINATION ${ConfigPackageLocation}
EXPORT_LINK_INTERFACE_LIBRARIES
)
# Install package/module configuration files
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${ConfigPackageLocation}
)
# If desired install all header files of the current project
get_target_property(PROJECT_INCLUDE_DIRECTORIES ${PROJECT_NAME} INTERFACE_INCLUDE_DIRECTORIES)
foreach(DIR ${PROJECT_INCLUDE_DIRECTORIES})
string(REGEX MATCH "^.<BUILD_INTERFACE:(.*)>$" EXTRACTED_DIR ${DIR})
if (CMAKE_MATCH_1)
set(EXTRACTED_DIR "${CMAKE_MATCH_1}")
file(
GLOB_RECURSE
#
HEADER_FILES
#
FOLLOW_SYMLINKS
LIST_DIRECTORIES FALSE
RELATIVE "${EXTRACTED_DIR}"
#
"${EXTRACTED_DIR}/*.h"
"${EXTRACTED_DIR}/*.hpp"
)
foreach(FILE ${HEADER_FILES})
get_filename_component(INSTALL_PATH ${FILE} DIRECTORY)
install(
FILES ${EXTRACTED_DIR}/${FILE}
DESTINATION include/${INSTALL_PATH}
)
endforeach()
endif()
endforeach()
endif()
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-init-config-headers-targets.cmake)
check_required_components(toki-init-config-headers)
......@@ -19,14 +19,4 @@
#define configAPPLICATION_TEXT_ALIGN 0x10000
#define configAPPLICATION_HEAP_ALIGN 0x1000
#define configAPPLICATION_HEAP_SIZE 0x400000
#define configAPPLICATION_TLS_INDEX 0
// Needs to be defined to the same type as FreeRTOS BaseType_t
#define ElfLoader_BaseType_t long
#define ELFLOADER_MALLOC fl_malloc
#define ELFLOADER_FREE fl_free
#define configASSERT( x )
#endif /* ELFLOADER_CONFIG_H */
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
option(ENABLE_INSTALL "Enable target installation possibility" ON)
option(WITH_HEADERS "Enable build of separate header library" ON)
project(
toki-init-config-headers
#
VERSION 0.1
LANGUAGES C ASM
)
add_library(
toki-init-config-headers
#
INTERFACE
)
target_include_directories(
toki-init-config-headers
#
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:include>
)
if (ENABLE_INSTALL)
# Configure and install the following files:
# - ${PROJECT_NAME}-config.cmake,
# - ${PROJECT_NAME}-config-version.cmake,
include(CMakePackageConfigHelpers)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION})
# ${PROJECT_NAME}-config.cmake
configure_package_config_file(
${PROJECT_NAME}-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
INSTALL_DESTINATION ${ConfigPackageLocation}
)
# ${PROJECT_NAME}-config-config-version.cmake
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY SameMajorVersion
)
# Install exported CMake target files
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-targets
ARCHIVE DESTINATION lib
)
install(
EXPORT ${PROJECT_NAME}-targets
DESTINATION ${ConfigPackageLocation}
EXPORT_LINK_INTERFACE_LIBRARIES
)
# Install package/module configuration files
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${ConfigPackageLocation}
)
# If desired install all header files of the current project
get_target_property(PROJECT_INCLUDE_DIRECTORIES ${PROJECT_NAME} INTERFACE_INCLUDE_DIRECTORIES)
foreach(DIR ${PROJECT_INCLUDE_DIRECTORIES})
string(REGEX MATCH "^.<BUILD_INTERFACE:(.*)>$" EXTRACTED_DIR ${DIR})
if (CMAKE_MATCH_1)
set(EXTRACTED_DIR "${CMAKE_MATCH_1}")
file(
GLOB_RECURSE
#
HEADER_FILES
#
FOLLOW_SYMLINKS
LIST_DIRECTORIES FALSE
RELATIVE "${EXTRACTED_DIR}"
#
"${EXTRACTED_DIR}/*.h"
"${EXTRACTED_DIR}/*.hpp"
)
foreach(FILE ${HEADER_FILES})
get_filename_component(INSTALL_PATH ${FILE} DIRECTORY)
install(
FILES ${EXTRACTED_DIR}/${FILE}
DESTINATION include/${INSTALL_PATH}
)
endforeach()
endif()
endforeach()
endif()
#ifndef TOKI_INIT_CONFIG_H
#define TOKI_INIT_CONFIG_H
/*******************************************************************************
* CoreSight activation configuration
******************************************************************************/
#define ENABLE_ARM_CoreSight_Timestamping 1
#define ENABLE_ARM_CoreSight_STM_Trace 1
/*******************************************************************************
* Initialize UART
******************************************************************************/
#define ENABLE_UART 1
#endif /* TOKI_INIT_CONFIG_H */
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-init-config-headers-targets.cmake)
check_required_components(toki-init-config-headers)
#ifndef ELFLOADER_CONFIG_H
#define ELFLOADER_CONFIG_H
#include <stdlib.h>
/*
------------------------------------------------------------
------------ ELF Loader related defines --------------
......@@ -21,14 +19,4 @@
#define configAPPLICATION_TEXT_ALIGN 0x10000
#define configAPPLICATION_HEAP_ALIGN 0x1000
#define configAPPLICATION_HEAP_SIZE 0x7000000
#define configAPPLICATION_TLS_INDEX 0
// Needs to be defined to the same type as FreeRTOS BaseType_t
#define ElfLoader_BaseType_t long
#define ELFLOADER_MALLOC malloc
#define ELFLOADER_FREE free
#define configASSERT( x )
#endif /* ELFLOADER_CONFIG_H */
#ifndef TOKI_INIT_CONFIG_H
#define TOKI_INIT_CONFIG_H
#ifndef TOKI_CONFIG_H
#define TOKI_CONFIG_H
/*******************************************************************************
* CoreSight activation configuration
......@@ -17,4 +17,10 @@
******************************************************************************/
#define ENABLE_lwIPStack 0
#endif /* TOKI_INIT_CONFIG_H */
/*******************************************************************************
* toki application specific configuration options
******************************************************************************/
#define configAPPLICATION_HEAP_SIZE 0x400000
#define configAPPLICATION_REENT_TLS_INDEX 0
#endif /* TOKI_CONFIG_H */
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
option(ENABLE_INSTALL "Enable target installation possibility" ON)
option(WITH_HEADERS "Enable build of separate header library" ON)
project(
toki-init-config-headers
#
VERSION 0.1
LANGUAGES C ASM
)
add_library(
toki-init-config-headers
#
INTERFACE
)
target_include_directories(
toki-init-config-headers
#
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:include>
)
if (ENABLE_INSTALL)
# Configure and install the following files:
# - ${PROJECT_NAME}-config.cmake,
# - ${PROJECT_NAME}-config-version.cmake,
include(CMakePackageConfigHelpers)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION})
# ${PROJECT_NAME}-config.cmake
configure_package_config_file(
${PROJECT_NAME}-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
INSTALL_DESTINATION ${ConfigPackageLocation}
)
# ${PROJECT_NAME}-config-config-version.cmake
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY SameMajorVersion
)
# Install exported CMake target files
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-targets
ARCHIVE DESTINATION lib
)
install(
EXPORT ${PROJECT_NAME}-targets
DESTINATION ${ConfigPackageLocation}
EXPORT_LINK_INTERFACE_LIBRARIES
)
# Install package/module configuration files
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${ConfigPackageLocation}
)
# If desired install all header files of the current project
get_target_property(PROJECT_INCLUDE_DIRECTORIES ${PROJECT_NAME} INTERFACE_INCLUDE_DIRECTORIES)
foreach(DIR ${PROJECT_INCLUDE_DIRECTORIES})
string(REGEX MATCH "^.<BUILD_INTERFACE:(.*)>$" EXTRACTED_DIR ${DIR})
if (CMAKE_MATCH_1)
set(EXTRACTED_DIR "${CMAKE_MATCH_1}")
file(
GLOB_RECURSE
#
HEADER_FILES
#
FOLLOW_SYMLINKS
LIST_DIRECTORIES FALSE
RELATIVE "${EXTRACTED_DIR}"
#
"${EXTRACTED_DIR}/*.h"
"${EXTRACTED_DIR}/*.hpp"
)
foreach(FILE ${HEADER_FILES})
get_filename_component(INSTALL_PATH ${FILE} DIRECTORY)
install(
FILES ${EXTRACTED_DIR}/${FILE}
DESTINATION include/${INSTALL_PATH}
)
endforeach()
endif()
endforeach()
endif()
#ifndef TOKI_INIT_CONFIG_H
#define TOKI_INIT_CONFIG_H
/*******************************************************************************
* CoreSight activation configuration
******************************************************************************/
#define ENABLE_ARM_CoreSight_Timestamping 0
#define ENABLE_ARM_CoreSight_STM_Trace 0
/*******************************************************************************
* Initialize UART
******************************************************************************/
#define ENABLE_UART 0
#endif /* TOKI_INIT_CONFIG_H */