Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for excluding files when building images #66

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

brunokc
Copy link

@brunokc brunokc commented Apr 10, 2019

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.

… "*.html")

via the new '-x' switch.

File exclusion is powered by the fnmatch() function. In MinGW, libiberty.a
(under MSYS) has the implementation, but there is no header file that declares
it so the function declaration was added to the top of main.cpp for now.
This is not ideal and it has not been tested in any other platforms yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant