Thanks for the tip @ivankravets. It works great.
Now only the linking of the library’s (FreeRTOS and LwIP) sources is left. Tried the -l and -L flags under build_dirs option with no success. What would you recommend?
Do you have archives (*.a) of these libraries?
No, their static-library files aren’t available. Would like to have those libraries shipped with their source-code. Does PlatformIO provide any option to build them first and link them while compiling user application?
Honestly, I don’t understand what are you going to do but you can move 3-rd party libraries/source code to project/lib folder and include them in main project. PIO will find them and build automatically.
Please read project/lib/readme.txt.
Thanks for your response. Have cleaned up the way sources and headers of 3rd party libraries are included by placing them in lib/ and changing _#include_s accordingly. The linking problem that I am facing now has come down to this issue reported here.
How to pass flags to final firmware.elf linkage?.
Fails to pick up hard floating-point flags while linking.
Could you provide full output of pio run -v on https://hastebin.com ?
pio run -v
Sure. Here’s the link : https://hastebin.com/osotijexah.sql
Could you try lib_archive = false?