Firmware for lighting central control
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.
 
 
 
 
MG-5 de6f8a5b58 Update to cmake buildsystem 2 months ago
..
chip Update to cmake buildsystem 2 months ago
cmake Update to cmake buildsystem 2 months ago
inc/core Update to cmake buildsystem 2 months ago
mk Update to cmake buildsystem 2 months ago
scripts Update to cmake buildsystem 2 months ago
src Update to cmake buildsystem 2 months ago
templates Update to cmake buildsystem 2 months ago
tests/src Update to cmake buildsystem 2 months ago
CMakeLists.txt Update to cmake buildsystem 2 months ago
README.md Update to cmake buildsystem 2 months ago
requirements.txt Update to cmake buildsystem 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'