....
These libraries are part of the Gnu toolchain distribution and can be found here (obviously computer specific):
Oh, I don't know why I did not look there ! Sorry.
For all the settings I'm using, see the below summary for riscv32-freertos in my fpc.cfg:
Yep, makes sense, I prefer not to edit the fpc.cfg file, I have been building with a script that offers all that content on a fpc command line, easier IMHO to manage.
But I still find myself missing symbols esp_app_get_elf_sha256, esp_partition_main_flash_region_safe, esp_app_get_description
Easy to look them up in the map file you mention and find the .a file they live in. And easy to manually add then to the link file and it all builds. But thats no solution. How can I tell FPC about needing them ? It finds all the other object archives it needs ?
What are your plans with "packaging" this ? Its a labourous process installing IDF and its associated tool, it appears to me it would be legal to just cherry pick all the needed libraries and put them 'somewhere' suitable but how about the assembler and linker ? Oh, and that esptool.py thing ....
And should that process be based on the 5.2.1 stable release ?
Davo