Tips for importing an esp-idf project?

Hi,

Espressif has a number of sample projects under the esp-iot-solution umbrella (in fact a GitHub repo by that name). I’m wondering if there is an easy way to import projects in that format. There are dozens of useful drivers there.

One peculiarity is that the esp-idf is imported as a submodule of said project and I’m betting they use some build system magic to isolate it from the system wide IDF.

Hints, tips, pointers?
Thanks!

Could you point to a few projects?

This is a nice starting point as it directly touches a couple drivers (LCD, input) and corresponding adapters. https://github.com/espressif/esp-iot-solution/tree/master/examples/hmi/ugfx_example

Of course the idea is not to just port it but kind of meta-port it in a way not entirely different from what’s available via Kconfig/make menuconfig.