Skip to content

Conversation

@danngreen
Copy link
Member

This implements goals 1 and 2 of Issue #1 (allowing the pcb configuration to be selected at build time instead of by un/commenting out source code, and allowing board configurations files to be outside of the source tree).

The command is:

make BOARD_CONF=path/to/conf.hh

The path can be absolute or relative to the Makefile.

Or, instead of a path, one of the example config files can be used like this:

make BOARD_CONF=DK2

make BOARD_CONF=OSD32

This will use src/board_conf/stm32disco_conf.hh or src/board_conf/osd32brk_conf.hh, respectively.

By default, the DK2 board conf is used, but a warning is issued if not conf is specified.

@danngreen danngreen linked an issue Nov 30, 2023 that may be closed by this pull request
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.

Refactor board configurations

2 participants