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

Allow to exclude/include source files from build process using filter #240

ivankravets opened this Issue Jun 19, 2015 · 0 comments


None yet
1 participant

ivankravets commented Jun 19, 2015

Implement new option to build environment in platformio.ini named src_filter. This filter will consist of these templates:

  • +<PATH> include template
  • -<PATH> exclude template

Path MAST BE related from src_dir. All filters will be applied in theirs order.

GLOB patterns are allowed.

By default, src_filter is predefined to +<*> -<.git/> -<svn/> -<examples/>



Need to include ALL(+<*>) source files, then exclude "some/hal"(-<some/hal>) folder, then include specific "some/hal/platform"(+<some/hal/platform>) folder.

platform = ...
board = ...
src_filter = +<*> -<some/hal> +<some/hal/platform>

CC: @smartanthill , @nobugs-hare, @valeros

@ivankravets ivankravets self-assigned this Jun 19, 2015

@ivankravets ivankravets added this to the 2.2.0 milestone Jun 19, 2015

ivankravets added a commit that referenced this issue Jun 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment