ESP-IDF: Override framework components

Hello!

Does anyone know how to override esp-idf components in platformio?
Tried to place ‘components’ folder in ‘src’ but there no reaction.

Thank you!

1 Like

http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#override-package-files

It would be nice to add a note for Windows users: diff and patch utilities can be found, for example, inside Git installation folder.

Alternatively, please elaborate some more on how do I install python-patch script. Do I need to install it into Platformio virtual environment? What about diff - is there a similar “python-diff” script?

Done! Thanks!

Just place it at the same level where extra script and import via import .....

If I understand correctly, overriding will change the components for all PlatformIO projects. I was wondering if it is possible to patch/override package files per project?

https://docs.platformio.org/en/latest/projectconf/sections/env/options/platform/platform_packages.html

1 Like