Topic: Compile WolfBoot with a custom hardware initialization via CMake
Hello!
I would like to compile with CMake a bootloader that looks as below:
my-wolfboot-project/
├─ CMakeLists.txt
├─ src/
│ ├─ main.c # Your custom entry point
│ └─ hw_init.c # Optional hardware setup
├─ include/
│ └─ hw_init.h
└─ wolfboot/ # WolfBoot source (submodule or copy)
├─ ... (wolfBoot sources)
In main.c, I'll have a main function that performs some specific hardware configuration (GPIO, etc.) to then call "loader_main" and let Wolfboot does its magic.
I cannot find a place in the documentation where this case is described. I do not understant if I need to include Wolfboot sources or link against a static library.
Does anyone has some experience regarding this approach?
Thanks!