EDIT 16/08/2023:
Please be aware that this response is now out of date, as PIO now support natively .mbedignore
files. More info here.
If you are looking for a working .mbedignore
for Mbed 6.17, try this one.
Open the spoiler to see the orginal response.
ORIGINAL RESPONSE
Hi all,
Had a similar problem with compile time since PIO MBED6 update, maybe it is my old PC who can’t keep up, but indeed the whole framework is compiled every time (when cleaning or edit pio.ini), especially if you don’t use bare-metal profile (takes me 10 to 15min to build).
A workaround is to use a small script develop by @KKoovalsky , which will apply your .mbedignore
to PIO MBED framework every time you build your project. I don’t know if it is a good process to do that, but it drastically reduces the build time in my case.
A small example of a .mbedignore
file content I use for MBED 6.2 on nucleo_f446re projects:
components/802.15.4_RF
components/wifi
features/cellular
features/lorawan
features/lwipstack
features/nanostack
features/netsocket
features/nfc