You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 months ago | |
---|---|---|
.. | ||
chip | 2 months ago | |
cmake | 2 months ago | |
inc/core | 2 months ago | |
mk | 2 months ago | |
scripts | 2 months ago | |
src | 2 months ago | |
templates | 2 months ago | |
tests/src | 2 months ago | |
CMakeLists.txt | 2 months ago | |
README.md | 2 months ago | |
requirements.txt | 2 months ago |
README.md
core
TODO DESCRIBE NEW BUILDSYSTEM BASED ON CMAKE
TODO DESCRIBE SETUP OF NEW PROJECT
TODO DESCRIBE BUILDSYSTEMS ASSUMPTIONS ABOUT COMPILER
TODO RECOMMEND NINJA BUILD GENERATOR
TODO DESCRIBE PROJECT SPLITTER
cmake_minimum_required(VERSION 3.15)
include("libraries/core/cmake/compilerSetup.cmake")
project(cmake_splitter VERSION 0.0.1 LANGUAGES CXX C)
if(${isEmbeddedCompiler})
include("src/CMakeLists.txt")
else()
include("test/CMakeLists.txt")
endif()
Core library containing the build system, common functionalities required by all firmwares.
TODO UPDATE, MOVE OVER CUBEMX SETUP OF CORE
CMake setup
Expects isEmbeddedCompiler variable from core/cmake/detectCompilerType.cmake in parent scope.
Requires following libraries:
- freertos
- hal_headers
Exports following libraries:
- core
Core features automatic CMake translation of CubeMX Makefiles when the following is added to the Makefile
export:
@printf 'MakeExport_SOURCES $(C_SOURCES) $(ASM_SOURCES)\n'
@printf 'MakeExport_MCU_Flags $(MCU)\n'
@printf 'MakeExport_DEFS $(AS_DEFS) $(C_DEFS)\n'
@printf 'MakeExport_INCLUDES $(AS_INCLUDES) $(C_INCLUDES)\n'
@printf 'MakeExport_LDSCRIPT $(LDSCRIPT)\n'