Remove Arduino libraries from arduino component in esp-idf

Hello everyone,

I’ve been trying to remove sobre libraries from the arduino component over the menuconfig option ‘Include only specific Arduino libraries’ but it seems to be taking no effect.

The Arduino component is working fine by following the steps detailed here: arduino-esp32/ at mod-idf-v4.2 · summivox/arduino-esp32 · GitHub

When I run the pio run -t menuconfig command, navigate to the Arduino Configuration tab and select to not include the ArduinoOTA library for example, I can see that its source files (ArduinoOTA.o file) are still compiled.

How can I remove the unwanted default libraries to reduce the final build size/remove unused libs?

Thank you.