TrampolineRTOS / trampoline

Trampoline is a static RTOS for small embedded systems. Its API is aligned with OSEK/VDX OS and AUTOSAR OS 4.2 standards.
GNU General Public License v2.0
600 stars 265 forks source link

Build trampoline using cmake #110

Closed grundmanns closed 2 years ago

grundmanns commented 2 years ago

Hello Jean Luc, we changed our build process of our software that is running on trampoline OS. We are using cmake now. The trampoline build process is based on oil file used to generate the python build files build.py and make.py. make.py is calling build.py as a child process. I understood that depending on the settings in the oil file (e.g. oil file version scalability class selection) the build process is dynamic and modules are added and removed.

To map this dynamic changes in the build to our cmake, we have to change the templates for build.py / make.py to generate a CMakeLIsts file ? Or do we have to create an own CMakeLists template that we enter somewhere and could activate with a oil file setting?

Do you have an idea what would be the best approach for that ?

BR Sven Grundmann

mbriday commented 2 years ago

Hi, CMake support has been added a few months ago. In the .oil file, you have to set SYSTEM=CMAKE, instead of SYSTEM=PYTHON. There is also a VSCode integration for few boards (stm32): SYSTEM=CMAKE{VSCODE=TRUE;}; The CMakelists.txt is generated from a goil template You can have a look to the updated documentation, chapter 15. regards, Mik

grundmanns commented 2 years ago

Hello Mik, thank you very much for the quick answer. This is very good news. I will report it to my team. BR Sven Grundmann