igrr / mkspiffs

Tool to build and unpack SPIFFS images
MIT License
186 stars 91 forks source link

Add support for excluding files when building images #66

Open brunokc opened 5 years ago

brunokc commented 5 years ago

Hi everyone,

I've put together a change to allow for the exclusion of files duging the creation of SPIFFS images. I wondering if people would find it useful.

My main concern with this change is the introduction of a dependency on the fnmatch function. For MinGW, I found an implementation in libiberty.a (I couldn't find a declaration in any of the header files I have though so I added one manually). However, I don't have easy access to other platforms, so assuming this change is desirable, I'd need help figuring out that dependency on other platforms as well. Due to this, I'm marking this PR as a draft for now.

Let me know what you think.

Thanks.