Skip to content

boilerplate.cmake parses shield list vs multiple board root locations incorrectly #1488

@Percentnineteen

Description

@Percentnineteen

While building nice_view along with an oled-enabled board that was defined in my user config area, the build process threw an error about having spi and i2c configured simultaneously. I root caused the issue to boilerplate.cmake.

Boilerplate.cmake seems to follow this basic methodology:

  1. foreach board root:
  2. foreach shield:
  3. if shield is found, append a bunch of stuff to a bunch of lists

What happens this way is the dtsi for nice_view_adapter and nice_view are read before the dtsi for the keyboard shield

I locally modified boilerplate.cmake to fix the issue (maybe not optimally). I've attached a patch. I would have issued a pr but wasn't exactly sure how to navigate the hierarchy of git repos for this particular file.
patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions