TJirsch wrote on June 25, 2019:
Hi, thank you for providing the makefiles.
I have tried that approach and did run into a dead end, partly because of the lack of CMake expertise at that time, partly because some files seemed to be magically interwoven with the demos, etc.
I have just now completed to adapt the changes I made in a different approach to the new releases files:
FreeRTOSRoot/vendors/espressif/boards/esp32/CMakeLists.txt
and
FreeRTOSRoot/tools/cmake/afr.cmake.
I need to adjust my apps CMakeList.txt (The old demos CMaklist.txt) to some new files (networkmanager etc.) and will post the files then.
Basicly I have tweaked the Demo macros and paths to being my apps, on the way removing some of the horrible …/…/…/…/…/ ladders, i.e. AFR_ROOT/demos to AFR_ROOT/…/app.
That takes about 15 mins and maybe 30 lines; if one would change the new path using a variable, after the adjustment you could swap in every single app or demo you like by setting a CMake var.
That would be ok for me, i did not bother using a var because i have to possibly change the CMakefiles with every new FreeRTOS release, also my apps go in a static structure so I am fine with that static situation:
/project
/project/app
/project/freeRTOS
Ill try to fix my apps CMakefile tomorrow and post it.
Also don’t get me wrong: I am only using the ESP32, not one of the other boards.
I really appreciate the work involved to create a build system of that complexity.
regards, Thomas
Edited by: TJirsch on Jun 25, 2019 1:22 PM